Package com.yahoo.searchlib.expression
Class TimeStampFunctionNode
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.searchlib.expression.ExpressionNode
com.yahoo.searchlib.expression.FunctionNode
com.yahoo.searchlib.expression.MultiArgFunctionNode
com.yahoo.searchlib.expression.UnaryFunctionNode
com.yahoo.searchlib.expression.TimeStampFunctionNode
- All Implemented Interfaces:
Serializable,Cloneable
This function assign a fixed width bucket to each input value.
- Author:
- Haavard Pettersen, Simon Thoresen Hult
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTimeStampFunctionNode(ExpressionNode arg, TimeStampFunctionNode.TimePart part, boolean gmt) Create a bucket expression with the given width and the given subexpression. -
Method Summary
Modifier and TypeMethodDescriptionclone()protected booleanbooleanisGmt()booleanisLocal()protected voidonDeserialize(com.yahoo.vespa.objects.Deserializer buf) protected intprotected voidonSerialize(com.yahoo.vespa.objects.Serializer buf) voidvisitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) Methods inherited from class com.yahoo.searchlib.expression.UnaryFunctionNode
equalsMultiArgFunction, getArg, onPrepare, onPrepareResultMethods inherited from class com.yahoo.searchlib.expression.MultiArgFunctionNode
addArg, equalsFunction, getArg, getNumArgs, hashCode, onCalculate, onExecute, selectMembersMethods inherited from class com.yahoo.searchlib.expression.FunctionNode
equalsExpression, getResult, setResultMethods inherited from class com.yahoo.searchlib.expression.ExpressionNode
equals, execute, executeIterative, onArgument, prepareMethods inherited from class com.yahoo.vespa.objects.Identifiable
create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, putUtf8, registerClass, serialize, serializeOptional, serializeWithId, toStringMethods inherited from class com.yahoo.vespa.objects.Selectable
select, select
-
Field Details
-
classId
public static final int classId
-
-
Constructor Details
-
TimeStampFunctionNode
public TimeStampFunctionNode() -
TimeStampFunctionNode
Create a bucket expression with the given width and the given subexpression.
- Parameters:
arg- The argument for this function.part- The part of time to retrieve.gmt- Whether or not to treat time as GMT.
-
-
Method Details
-
getTimePart
-
isGmt
public boolean isGmt() -
isLocal
public boolean isLocal() -
onGetClassId
protected int onGetClassId()- Overrides:
onGetClassIdin classUnaryFunctionNode
-
onSerialize
protected void onSerialize(com.yahoo.vespa.objects.Serializer buf) - Overrides:
onSerializein classMultiArgFunctionNode
-
onDeserialize
protected void onDeserialize(com.yahoo.vespa.objects.Deserializer buf) - Overrides:
onDeserializein classMultiArgFunctionNode
-
equalsUnaryFunction
- Specified by:
equalsUnaryFunctionin classUnaryFunctionNode
-
clone
- Overrides:
clonein classMultiArgFunctionNode
-
visitMembers
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) - Overrides:
visitMembersin classMultiArgFunctionNode
-