Class: ElasticGraph::SchemaDefinition::Indexing::JSONSchemaFieldMetadata Private
- Inherits:
-
Data
- Object
- Data
- ElasticGraph::SchemaDefinition::Indexing::JSONSchemaFieldMetadata
- Defined in:
- elasticgraph-schema_definition/lib/elastic_graph/schema_definition/indexing/json_schema_field_metadata.rb,
elasticgraph-schema_definition/lib/elastic_graph/schema_definition/indexing/json_schema_field_metadata.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Metadata about an ElasticGraph field that needs to be stored in our versioned JSON schemas alongside the JSON schema fields.
Instance Attribute Summary collapse
-
#name_in_index ⇒ String
readonly
Name of the field in the index.
-
#type ⇒ String
readonly
Name of the ElasticGraph type for this field.
Instance Method Summary collapse
-
#to_dumpable_hash ⇒ Hash<String, String>
private
Hash form of the metadata that can be dumped in JSON schema.
Instance Attribute Details
#name_in_index ⇒ String (readonly)
Returns name of the field in the index.
24 25 26 27 28 29 30 31 |
# File 'elasticgraph-schema_definition/lib/elastic_graph/schema_definition/indexing/json_schema_field_metadata.rb', line 24 class JSONSchemaFieldMetadata < ::Data # @return [Hash<String, String>] hash form of the metadata that can be dumped in JSON schema def to_dumpable_hash {"type" => type, "nameInIndex" => name_in_index} end # @dynamic initialize, type, name_in_index end |
#type ⇒ String (readonly)
Returns name of the ElasticGraph type for this field.
24 25 26 27 28 29 30 31 |
# File 'elasticgraph-schema_definition/lib/elastic_graph/schema_definition/indexing/json_schema_field_metadata.rb', line 24 class JSONSchemaFieldMetadata < ::Data # @return [Hash<String, String>] hash form of the metadata that can be dumped in JSON schema def to_dumpable_hash {"type" => type, "nameInIndex" => name_in_index} end # @dynamic initialize, type, name_in_index end |
Instance Method Details
#to_dumpable_hash ⇒ Hash<String, String>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns hash form of the metadata that can be dumped in JSON schema.
26 27 28 |
# File 'elasticgraph-schema_definition/lib/elastic_graph/schema_definition/indexing/json_schema_field_metadata.rb', line 26 def to_dumpable_hash {"type" => type, "nameInIndex" => name_in_index} end |