Package com.attivio.sdk.search.fields
Class Locate
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.Locate
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class Locate extends FieldExpression
- 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 Locate(FieldExpression search, FieldExpression string)Locate(FieldExpression search, FieldExpression string, FieldExpression startPosition)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Locateclone()booleanequals(java.lang.Object other)FieldExpressionforEachField(java.util.function.Function<FieldExpression,FieldExpression> handler)Applieshandlerfor eachFieldExpressionargument.FieldExpressiongetSearch()Get the search string.FieldExpressiongetStartPosition()Get the starting position to begin the search.FieldExpressiongetString()Get the string to be searched.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.voidrewrite(QueryHandler handler, boolean recursive)Rewrite any query objects in this FieldExpression usinghandler.voidsetSearch(FieldExpression value)Set the search string.voidsetStartPosition(FieldExpression value)Set the starting position to begin the search.voidsetString(FieldExpression value)Set the string to be searched.protected voidtoString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)Writes the string representation of this field expression tobuffer.static LocatevalueOf(StringParser reader)-
Methods inherited from class com.attivio.sdk.search.fields.FieldExpression
apply, copyOf, forEachPhrase, forEachQuery, getDefaultName, getFieldName, isConstant, parse, quote, rewrite, rewriteChildren, toString, toString, valueOf
-
-
-
-
Constructor Detail
-
Locate
public Locate(FieldExpression search, FieldExpression string)
-
Locate
public Locate(FieldExpression search, FieldExpression string, FieldExpression startPosition)
-
-
Method Detail
-
getSearch
public FieldExpression getSearch()
Get the search string.
-
setSearch
public void setSearch(FieldExpression value)
Set the search string.
-
getString
public FieldExpression getString()
Get the string to be searched.
-
setString
public void setString(FieldExpression value)
Set the string to be searched.
-
getStartPosition
public FieldExpression getStartPosition()
Get the starting position to begin the search.
-
setStartPosition
public void setStartPosition(FieldExpression value)
Set the starting position to begin the search.
-
getType
public SchemaField.Type getType(Schema schema)
Resolve the type for this expression.- Specified by:
getTypein classFieldExpression
-
isConstant
public boolean isConstant()
Returnstrueif this field expression evaluates to a constant value.- Specified by:
isConstantin classFieldExpression
-
hasChildren
public boolean hasChildren()
Returnstrueif this field expression has any sub FieldExpressions.- Specified by:
hasChildrenin classFieldExpression
-
rewrite
public void rewrite(QueryHandler handler, boolean recursive)
Rewrite any query objects in this FieldExpression usinghandler.- Overrides:
rewritein classFieldExpression
-
forEachField
public FieldExpression forEachField(java.util.function.Function<FieldExpression,FieldExpression> handler)
- Overrides:
forEachFieldin classFieldExpression
-
equals
public final boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classFieldExpression
-
clone
public Locate clone()
- Overrides:
clonein classFieldExpression
-
toString
protected void toString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)Writes the string representation of this field expression tobuffer.- Specified by:
toStringin classFieldExpression
-
valueOf
public static Locate valueOf(StringParser reader)
-
-