Class: ApacheCrunch::DerivationRule

Inherits:
Object
  • Object
show all
Defined in:
lib/derivation.rb

Overview

Abstract for classes that define how to obtain a given element from the value of another.

Direct Known Subclasses

TimeDerivationRule

Instance Method Summary collapse

Instance Method Details

#derive(name, source_value) ⇒ Object

Derives the given derivable element from the given element value

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/derivation.rb', line 10

def derive(name, source_value)
    raise NotImplementedError
end

#source_nameObject

Returns the name of the element from which this rule derives values

Raises:

  • (NotImplementedError)


5
6
7
# File 'lib/derivation.rb', line 5

def source_name
    raise NotImplementedError
end