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 Locate
clone()
boolean
equals(java.lang.Object other)
FieldExpression
forEachField(java.util.function.Function<FieldExpression,FieldExpression> handler)
Applieshandler
for eachFieldExpression
argument.FieldExpression
getSearch()
Get the search string.FieldExpression
getStartPosition()
Get the starting position to begin the search.FieldExpression
getString()
Get the string to be searched.SchemaField.Type
getType(Schema schema)
Resolve the type for this expression.boolean
hasChildren()
Returnstrue
if this field expression has any sub FieldExpressions.int
hashCode()
boolean
isConstant()
Returnstrue
if this field expression evaluates to a constant value.void
rewrite(QueryHandler handler, boolean recursive)
Rewrite any query objects in this FieldExpression usinghandler
.void
setSearch(FieldExpression value)
Set the search string.void
setStartPosition(FieldExpression value)
Set the starting position to begin the search.void
setString(FieldExpression value)
Set the string to be searched.protected void
toString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)
Writes the string representation of this field expression tobuffer
.static Locate
valueOf(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:
getType
in classFieldExpression
-
isConstant
public boolean isConstant()
Returnstrue
if this field expression evaluates to a constant value.- Specified by:
isConstant
in classFieldExpression
-
hasChildren
public boolean hasChildren()
Returnstrue
if this field expression has any sub FieldExpressions.- Specified by:
hasChildren
in classFieldExpression
-
rewrite
public void rewrite(QueryHandler handler, boolean recursive)
Rewrite any query objects in this FieldExpression usinghandler
.- Overrides:
rewrite
in classFieldExpression
-
forEachField
public FieldExpression forEachField(java.util.function.Function<FieldExpression,FieldExpression> handler)
- Overrides:
forEachField
in classFieldExpression
-
equals
public final boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classFieldExpression
-
clone
public Locate clone()
- Overrides:
clone
in classFieldExpression
-
toString
protected void toString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)
Writes the string representation of this field expression tobuffer
.- Specified by:
toString
in classFieldExpression
-
valueOf
public static Locate valueOf(StringParser reader)
-
-