Class: ElasticGraph::SchemaDefinition::Indexing::FieldReference Private
- Inherits:
-
Data
- Object
- Data
- ElasticGraph::SchemaDefinition::Indexing::FieldReference
- Defined in:
- lib/elastic_graph/schema_definition/indexing/field_reference.rb,
lib/elastic_graph/schema_definition/indexing/field_reference.rb,
lib/elastic_graph/schema_definition/indexing/field_reference.rb
Overview
Instance Attribute Summary collapse
-
#accuracy_confidence ⇒ Object
readonly
Returns the value of attribute accuracy_confidence.
-
#json_schema_options ⇒ Object
readonly
Returns the value of attribute json_schema_options.
-
#mapping_options ⇒ Object
readonly
Returns the value of attribute mapping_options.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#name_in_index ⇒ Object
readonly
Returns the value of attribute name_in_index.
-
#runtime_field_script ⇒ Object
readonly
Returns the value of attribute runtime_field_script.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#resolve ⇒ Field?
private
The Field this reference resolves to (if it can be resolved).
Instance Attribute Details
#accuracy_confidence ⇒ Object (readonly)
Returns the value of attribute accuracy_confidence
13 14 15 |
# File 'lib/elastic_graph/schema_definition/indexing/field_reference.rb', line 13 def accuracy_confidence @accuracy_confidence end |
#json_schema_options ⇒ Object (readonly)
Returns the value of attribute json_schema_options
13 14 15 |
# File 'lib/elastic_graph/schema_definition/indexing/field_reference.rb', line 13 def end |
#mapping_options ⇒ Object (readonly)
Returns the value of attribute mapping_options
13 14 15 |
# File 'lib/elastic_graph/schema_definition/indexing/field_reference.rb', line 13 def end |
#name ⇒ Object (readonly)
Returns the value of attribute name
13 14 15 |
# File 'lib/elastic_graph/schema_definition/indexing/field_reference.rb', line 13 def name @name end |
#name_in_index ⇒ Object (readonly)
Returns the value of attribute name_in_index
13 14 15 |
# File 'lib/elastic_graph/schema_definition/indexing/field_reference.rb', line 13 def name_in_index @name_in_index end |
#runtime_field_script ⇒ Object (readonly)
Returns the value of attribute runtime_field_script
13 14 15 |
# File 'lib/elastic_graph/schema_definition/indexing/field_reference.rb', line 13 def runtime_field_script @runtime_field_script end |
#source ⇒ Object (readonly)
Returns the value of attribute source
13 14 15 |
# File 'lib/elastic_graph/schema_definition/indexing/field_reference.rb', line 13 def source @source end |
#type ⇒ Object (readonly)
Returns the value of attribute type
13 14 15 |
# File 'lib/elastic_graph/schema_definition/indexing/field_reference.rb', line 13 def type @type end |
Instance Method Details
#resolve ⇒ Field?
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 the ElasticGraph::SchemaDefinition::Indexing::Field this reference resolves to (if it can be resolved).
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/elastic_graph/schema_definition/indexing/field_reference.rb', line 30 def resolve return nil unless (resolved_type = type.fully_unwrapped.resolved) Indexing::Field.new( name: name, name_in_index: name_in_index, type: type, json_schema_layers: type.json_schema_layers, indexing_field_type: resolved_type.to_indexing_field_type, accuracy_confidence: accuracy_confidence, json_schema_customizations: , mapping_customizations: , source: source, runtime_field_script: runtime_field_script ) end |