Package com.attivio.sdk.search.fields
Class DateExtract
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.UnaryFieldExpression
-
- com.attivio.sdk.search.fields.DateExtract
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public final class DateExtract extends UnaryFieldExpression
Field expression to extract 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.UnaryFieldExpression
expression
-
Fields inherited from class com.attivio.sdk.search.fields.FieldExpression
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description DateExtract(CalendarField field, FieldExpression expression)Construct a new CalendarField to apply to aFieldExpression.DateExtract(CalendarField field, java.lang.String fieldName)Construct a new DateExtract to apply to a field.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DateExtractclone()protected FieldExpressionclone(FieldExpression e)Create a new instance of this FieldExpression, with a different argument.booleanequals(java.lang.Object other)CalendarFieldgetCalendarField()Get the field requested.SchemaField.TypegetType(Schema schema)Resolve the type for this expression.inthashCode()protected voidtoString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)Writes the string representation of this field expression tobuffer.static DateExtractvalueOf(CalendarField field, StringParser parser)-
Methods inherited from class com.attivio.sdk.search.fields.UnaryFieldExpression
forEachField, getExpression, getFieldName, hasChildren, isConstant, rewrite, setExpression
-
Methods inherited from class com.attivio.sdk.search.fields.FieldExpression
apply, copyOf, forEachPhrase, forEachQuery, getDefaultName, isConstant, parse, quote, rewrite, rewriteChildren, toString, toString, valueOf
-
-
-
-
Constructor Detail
-
DateExtract
public DateExtract(CalendarField field, java.lang.String fieldName)
Construct a new DateExtract to apply to a field.
-
DateExtract
public DateExtract(CalendarField field, FieldExpression expression)
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:
getTypein classFieldExpression
-
getCalendarField
public CalendarField getCalendarField()
Get the field requested.
-
toString
protected void toString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)Writes the string representation of this field expression tobuffer.- Specified by:
toStringin classFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classUnaryFieldExpression
-
hashCode
public int hashCode()
- Overrides:
hashCodein classUnaryFieldExpression
-
clone
public DateExtract clone()
- Overrides:
clonein classUnaryFieldExpression
-
clone
protected FieldExpression clone(FieldExpression e)
Create a new instance of this FieldExpression, with a different argument.- Overrides:
clonein classUnaryFieldExpression
-
valueOf
public static DateExtract valueOf(CalendarField field, StringParser parser)
-
-