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
Attribute s 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()
AttributeDescriptor
String
- the name of this AttributeDescriptor
boolean isMultiValued()
Attribute
s described by this AttributeDescriptor
are
multivalued, that is, Attribute.getValue()
returns a List
.AttributeType<?> getType()
AttributeType
- the type of values of Attribute
s described by this
AttributeDescriptor
boolean isIndexed()
Attribute
should be indexed by Source
implementations, therefore part of Query
evaluation. Attribute
s may only want to be stored, not indexed.Attribute
isStored()
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 Attribute
s with an AttributeType.AttributeFormat
of AttributeType.AttributeFormat.STRING
Some Attribute
s may only
need to be stored, not indexed (or vice versa).
Attribute
sisStored()
boolean isStored()
Source
implementations must store the value
of this Attribute
. Some Attribute
s may only need to be indexed, not stored (or
vice versa).Attribute
isIndexed()
This work is licensed under a Creative Commons Attribution 4.0 International License.