Package ddf.catalog.data
Interface AttributeDescriptor
- All Superinterfaces:
Serializable
AttributeDescriptor describes an
Attribute and associates it with a AttributeType-
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of thisAttributeDescriptorgetType()booleanbooleanReturns whether or notAttributes described by thisAttributeDescriptorare multivalued, that is,Attribute.getValue()returns aList.booleanisStored()booleanIf theAttributeType.AttributeFormatof thisAttributeisAttributeType.AttributeFormat.STRING, returns whether or notSourceimplementations should tokenize it; removing stopwords, etc.
-
Method Details
-
getName
String getName()Returns the name of thisAttributeDescriptor- Returns:
String- the name of thisAttributeDescriptor
-
isMultiValued
boolean isMultiValued()Returns whether or notAttributes described by thisAttributeDescriptorare multivalued, that is,Attribute.getValue()returns aList.- Returns:
- whether or not it is multivalued
-
getType
AttributeType<?> getType()- Returns:
AttributeType- the type of values ofAttributes described by thisAttributeDescriptor
-
isIndexed
boolean isIndexed()Whether or not thisAttributeshould be indexed bySourceimplementations, therefore part ofQueryevaluation.
SomeAttributes may only want to be stored, not indexed.- Returns:
- boolean - whether or not to index the associated
Attribute - See Also:
-
isTokenized
boolean isTokenized()If theAttributeType.AttributeFormatof thisAttributeisAttributeType.AttributeFormat.STRING, returns whether or notSourceimplementations should tokenize it; removing stopwords, etc.This method is only relevant to
Attributes with anAttributeType.AttributeFormatofAttributeType.AttributeFormat.STRINGSomeAttributes may only need to be stored, not indexed (or vice versa).- Returns:
- boolean - whether or not to tokenize values of associated
Attributes - See Also:
-
isStored
boolean isStored()Returns whether or notSourceimplementations must store the value of thisAttribute. SomeAttributes may only need to be indexed, not stored (or vice versa).- Returns:
- boolean - whether or not to store this
Attribute - See Also:
-