Package com.attivio.sdk.search.fields
Class TermVector
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.TermVector
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class TermVector extends FieldExpression
FieldExpression for returning the tokens for a specified field.NOTE: this field expression is currently only supported when used in a
com.attivio.sdk.search.facet.FacetReqeust.Each token will be returned as a separate value.
If the field specified is not tokenized, no values will be returned.
Performance Note: if the requested field is not optimized for highlighting, this expression will be time consuming to compute.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.attivio.sdk.search.fields.FieldExpression
FieldExpression.StringMode
-
-
Field Summary
-
Fields inherited from class com.attivio.sdk.search.fields.FieldExpression
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description TermVector(java.lang.String fieldName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)java.lang.StringgetFieldName()Get the name of the field to return values for.SchemaField.TypegetType(Schema schema)Resolve the type for this expression.booleanhasChildren()Returnstrueif this field expression has any sub FieldExpressions.inthashCode()booleanisConstant()Returnstrueif this field expression evaluates to a constant value.voidsetFieldName(java.lang.String value)Set the name of the field to return.voidtoString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)Writes the string representation of this field expression tobuffer.static TermVectorvalueOf(StringParser parser)-
Methods inherited from class com.attivio.sdk.search.fields.FieldExpression
apply, clone, copyOf, forEachField, forEachPhrase, forEachQuery, getDefaultName, isConstant, parse, quote, rewrite, rewrite, rewriteChildren, toString, toString, valueOf
-
-
-
-
Method Detail
-
isConstant
public boolean isConstant()
Returnstrueif this field expression evaluates to a constant value.- Specified by:
isConstantin classFieldExpression
-
getType
public SchemaField.Type getType(Schema schema)
Resolve the type for this expression.- Specified by:
getTypein classFieldExpression
-
getFieldName
public java.lang.String getFieldName()
Get the name of the field to return values for.- Overrides:
getFieldNamein classFieldExpression
-
hasChildren
public boolean hasChildren()
Returnstrueif this field expression has any sub FieldExpressions.- Specified by:
hasChildrenin classFieldExpression
-
setFieldName
public void setFieldName(java.lang.String value)
Set the name of the field to return.
-
toString
public void toString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)Writes the string representation of this field expression tobuffer.- Specified by:
toStringin classFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classFieldExpression
-
valueOf
public static TermVector valueOf(StringParser parser)
-
-