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 DateExtract
clone()
protected FieldExpression
clone(FieldExpression e)
Create a new instance of this FieldExpression, with a different argument.boolean
equals(java.lang.Object other)
CalendarField
getCalendarField()
Get the field requested.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 DateExtract
valueOf(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:
getType
in 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:
toString
in classFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classUnaryFieldExpression
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classUnaryFieldExpression
-
clone
public DateExtract clone()
- Overrides:
clone
in classUnaryFieldExpression
-
clone
protected FieldExpression clone(FieldExpression e)
Create a new instance of this FieldExpression, with a different argument.- Overrides:
clone
in classUnaryFieldExpression
-
valueOf
public static DateExtract valueOf(CalendarField field, StringParser parser)
-
-