public class Trim extends UnaryFieldExpression
| Modifier and Type | Class and Description |
|---|---|
static class |
Trim.Mode |
FieldExpression.StringModeexpressionalias, EMPTY_ARRAY| Constructor and Description |
|---|
Trim(FieldExpression input) |
Trim(Trim.Mode mode,
FieldExpression input,
String remstr) |
Trim(Trim.Mode mode,
FieldExpression input,
String remstr,
String alias) |
| Modifier and Type | Method and Description |
|---|---|
Trim |
clone() |
protected Trim |
clone(FieldExpression input)
Create a new instance of this FieldExpression, with a different argument.
|
Trim.Mode |
getMode()
Get the mode for the trim function.
|
String |
getRemoveString()
Get the string to remove.
|
SchemaField.Type |
getType(Schema schema)
Resolve the type for this expression.
|
int |
hashCode() |
protected boolean |
parametersEqual(FieldExpression other)
Returns
true if other's parameters are the same as this. |
void |
setMode(Trim.Mode value)
Set the mode for the trim function.
|
void |
setRemoveString(String value)
Set the string to remove.
|
protected void |
toString(StringBuilder buffer,
FieldExpression.StringMode strmode)
Writes the string representation of this field expression to
buffer. |
equalsIgnoreAlias, getExpression, getFieldName, hasChildren, isConstant, rewrite, rewriteChildren, setExpressionas, containsAlias, copyOf, equals, equalsIgnoreAlias, getAlias, getDefaultAlias, handleFieldExpression, isConstant, quote, rewrite, setAlias, toString, toStringpublic Trim(FieldExpression input)
public Trim(Trim.Mode mode, FieldExpression input, String remstr)
public Trim(Trim.Mode mode, FieldExpression input, String remstr, String alias)
public SchemaField.Type getType(Schema schema)
getType in class FieldExpressionpublic Trim.Mode getMode()
public void setMode(Trim.Mode value)
public String getRemoveString()
public void setRemoveString(String value)
protected void toString(StringBuilder buffer, FieldExpression.StringMode strmode)
buffer.
NOTE: the alias will not be written to buffer by this function.
toString in class FieldExpressionpublic int hashCode()
hashCode in class UnaryFieldExpressionprotected boolean parametersEqual(FieldExpression other)
true if other's parameters are the same as this.parametersEqual in class UnaryFieldExpressionpublic Trim clone()
clone in class UnaryFieldExpressionprotected Trim clone(FieldExpression input)
clone in class UnaryFieldExpressionCopyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.