Class: Es::SnapshotField
Constant Summary
Constants inherited from Field
Field::ATTRIBUTE_TYPE, Field::AUTOINCREMENT_TYPE, Field::DATE_TYPE, Field::DURATION_TYPE, Field::FACT_TYPE, Field::FIELD_TYPES, Field::HID_TYPE, Field::HISTORIC_TYPE, Field::IS_DELETED_TYPE, Field::RECORDID_TYPE, Field::SNAPSHOT_TYPE, Field::TIMEATTRIBUTE_TYPE, Field::TIMESTAMP_TYPE, Field::TIME_TYPE, Field::VELOCITY_TYPE
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Methods inherited from Field
#==, #initialize, #is_attribute?, #is_autoincrement?, #is_date?, #is_duration?, #is_fact?, #is_hid?, #is_recordid?, #is_timestamp?, #is_velocity?, parse, #to_config_generator, #to_config_generator_extract, #to_load_config, #to_load_fragment
Constructor Details
This class inherits a constructor from Es::Field
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
730 731 732 |
# File 'lib/es.rb', line 730 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
730 731 732 |
# File 'lib/es.rb', line 730 def type @type end |
Instance Method Details
#is_snapshot? ⇒ Boolean
732 733 734 |
# File 'lib/es.rb', line 732 def is_snapshot? true end |
#to_extract_fragment(pid, fields, options = {}) ⇒ Object
736 737 738 739 740 741 742 743 744 745 |
# File 'lib/es.rb', line 736 def to_extract_fragment(pid, fields, = {}) { :name => name, :preferred => name, :definition => { :type => "snapshot", :data => "date" } } end |