public interface AttributeDescriptor extends Serializable
Attribute and associates it with a AttributeType| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of this
AttributeDescriptor |
AttributeType<?> |
getType()
|
boolean |
isIndexed()
|
boolean |
isMultiValued()
Returns whether or not
Attributes described by this AttributeDescriptor are
multivalued, that is, Attribute.getValue() returns a List. |
boolean |
isStored()
|
boolean |
isTokenized()
If the
AttributeType.AttributeFormat of this Attribute is
AttributeType.AttributeFormat.STRING, returns whether or not Source implementations should tokenize it; removing stopwords, etc. |
String getName()
AttributeDescriptorString - the name of this AttributeDescriptorboolean isMultiValued()
Attributes described by this AttributeDescriptor are
multivalued, that is, Attribute.getValue() returns a List.AttributeType<?> getType()
AttributeType - the type of values of Attributes described by this
AttributeDescriptorboolean isIndexed()
Attribute should be indexed by Source
implementations, therefore part of Query evaluation. Attributes may only want to be stored, not indexed.AttributeisStored()boolean isTokenized()
AttributeType.AttributeFormat of this Attribute is
AttributeType.AttributeFormat.STRING, returns whether or not Source implementations should tokenize it; removing stopwords, etc.
This method is only relevant to Attributes with an AttributeType.AttributeFormat of AttributeType.AttributeFormat.STRING Some Attributes may only
need to be stored, not indexed (or vice versa).
AttributesisStored()boolean isStored()
Source implementations must store the value
of this Attribute. Some Attributes may only need to be indexed, not stored (or
vice versa).AttributeisIndexed()This work is licensed under a Creative Commons Attribution 4.0 International License.