Class IndexSchema
- java.lang.Object
-
- com.yahoo.searchdefinition.derived.Derived
-
- com.yahoo.searchdefinition.derived.IndexSchema
-
- All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer
,Exportable
,com.yahoo.vespa.config.search.IndexschemaConfig.Producer
public class IndexSchema extends Derived implements com.yahoo.vespa.config.search.IndexschemaConfig.Producer
Deriver of indexschema config containing information of all text index fields with name and data type.- Author:
- geirst
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IndexSchema.IndexField
Representation of an index field with name and data type.
-
Constructor Summary
Constructors Constructor Description IndexSchema(Schema schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsField(String fieldName)
protected void
derive(ImmutableSDField field, Schema schema)
Derives the content of this configuration.protected void
derive(Schema schema)
Derives the content of this configuration.void
getConfig(com.yahoo.vespa.config.search.IndexschemaConfig.Builder icB)
protected String
getDerivedName()
List<IndexSchema.IndexField>
getFields()
-
-
-
Constructor Detail
-
IndexSchema
public IndexSchema(Schema schema)
-
-
Method Detail
-
containsField
public boolean containsField(String fieldName)
-
derive
protected void derive(Schema schema)
Description copied from class:Derived
Derives the content of this configuration. This default calls derive(Document) for each document and derive(SDField) for each search definition level field AND sets the name of this to the name of the input search definition
-
derive
protected void derive(ImmutableSDField field, Schema schema)
Description copied from class:Derived
Derives the content of this configuration. This default does nothing.
-
getDerivedName
protected String getDerivedName()
- Specified by:
getDerivedName
in classDerived
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.IndexschemaConfig.Builder icB)
- Specified by:
getConfig
in interfacecom.yahoo.vespa.config.search.IndexschemaConfig.Producer
-
getFields
public List<IndexSchema.IndexField> getFields()
-
-