Class 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
    • Constructor Detail

      • TermVector

        public TermVector​(java.lang.String fieldName)
    • Method Detail

      • isConstant

        public boolean isConstant()
        Returns true if this field expression evaluates to a constant value.
        Specified by:
        isConstant in class FieldExpression
      • getFieldName

        public java.lang.String getFieldName()
        Get the name of the field to return values for.
        Overrides:
        getFieldName in class FieldExpression
      • hasChildren

        public boolean hasChildren()
        Returns true if this field expression has any sub FieldExpressions.
        Specified by:
        hasChildren in class FieldExpression
      • setFieldName

        public void setFieldName​(java.lang.String value)
        Set the name of the field to return.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object