Class AttributeFields
- java.lang.Object
-
- com.yahoo.searchdefinition.derived.Derived
-
- com.yahoo.searchdefinition.derived.AttributeFields
-
- All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer
,Exportable
,com.yahoo.vespa.config.search.AttributesConfig.Producer
public class AttributeFields extends Derived implements com.yahoo.vespa.config.search.AttributesConfig.Producer
The set of all attribute fields defined by a search definition- Author:
- bratseth
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AttributeFields.FieldSet
-
Field Summary
Fields Modifier and Type Field Description static AttributeFields
empty
-
Constructor Summary
Constructors Constructor Description AttributeFields(Search search)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator
attributeIterator()
Returns a read only attribute iteratorjava.util.Collection<Attribute>
attributes()
boolean
containsAttribute(java.lang.String attributeName)
protected void
derive(ImmutableSDField field, Search search)
Derives everything from a fieldAttribute
getAttribute(java.lang.String attributeName)
Returns an attribute by name, or null if it doesn't existvoid
getConfig(com.yahoo.vespa.config.search.AttributesConfig.Builder builder)
void
getConfig(com.yahoo.vespa.config.search.AttributesConfig.Builder builder, AttributeFields.FieldSet fs)
protected java.lang.String
getDerivedName()
java.util.Collection<Attribute>
structFieldAttributes(java.lang.String baseFieldName)
java.lang.String
toString()
-
-
-
Field Detail
-
empty
public static final AttributeFields empty
-
-
Constructor Detail
-
AttributeFields
public AttributeFields(Search search)
-
-
Method Detail
-
derive
protected void derive(ImmutableSDField field, Search search)
Derives everything from a field
-
getAttribute
public Attribute getAttribute(java.lang.String attributeName)
Returns an attribute by name, or null if it doesn't exist
-
containsAttribute
public boolean containsAttribute(java.lang.String attributeName)
-
attributeIterator
public java.util.Iterator attributeIterator()
Returns a read only attribute iterator
-
attributes
public java.util.Collection<Attribute> attributes()
-
structFieldAttributes
public java.util.Collection<Attribute> structFieldAttributes(java.lang.String baseFieldName)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getDerivedName
protected java.lang.String getDerivedName()
- Specified by:
getDerivedName
in classDerived
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.AttributesConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.vespa.config.search.AttributesConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.AttributesConfig.Builder builder, AttributeFields.FieldSet fs)
-
-