Package com.attivio.sdk.search.fields
Class DateAdd
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.BinaryFieldExpression
-
- com.attivio.sdk.search.fields.DateAdd
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public final class DateAdd extends BinaryFieldExpression
Field expression to add a value to a calendar field for a date.- 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.BinaryFieldExpression
arg0, arg1
-
Fields inherited from class com.attivio.sdk.search.fields.FieldExpression
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description DateAdd(CalendarField field, FieldExpression expression, FieldExpression amount)
Construct a new CalendarField to apply to aFieldExpression
.DateAdd(CalendarField field, java.lang.String fieldName, int amount)
Construct a new DateAdd to apply to a field.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DateAdd
clone()
protected FieldExpression
clone(FieldExpression x, FieldExpression y)
Create a new instance of this FieldExpression, with different arguments.boolean
equals(java.lang.Object other)
CalendarField
getCalendarField()
Get the date field to use for addition.SchemaField.Type
getType(Schema schema)
Resolve the type for this expression.int
hashCode()
protected void
toString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)
Writes the string representation of this field expression tobuffer
.static DateAdd
valueOf(StringParser reader)
-
Methods inherited from class com.attivio.sdk.search.fields.BinaryFieldExpression
forEachField, getFirstArgument, getSecondArgument, hasChildren, isConstant, rewrite, setFirstArgument, setSecondArgument
-
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
-
DateAdd
public DateAdd(CalendarField field, java.lang.String fieldName, int amount)
Construct a new DateAdd to apply to a field.
-
DateAdd
public DateAdd(CalendarField field, FieldExpression expression, FieldExpression amount)
Construct a new CalendarField to apply to aFieldExpression
.
-
-
Method Detail
-
getType
public SchemaField.Type getType(Schema schema)
Resolve the type for this expression.- Specified by:
getType
in classFieldExpression
-
getCalendarField
public CalendarField getCalendarField()
Get the date field to use for addition.
-
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
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classBinaryFieldExpression
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBinaryFieldExpression
-
clone
public DateAdd clone()
- Overrides:
clone
in classBinaryFieldExpression
-
clone
protected FieldExpression clone(FieldExpression x, FieldExpression y)
Create a new instance of this FieldExpression, with different arguments.- Specified by:
clone
in classBinaryFieldExpression
-
valueOf
public static DateAdd valueOf(StringParser reader)
-
-