Class JavaUDF
- java.lang.Object
-
- org.apache.cassandra.cql3.functions.JavaUDF
-
public abstract class JavaUDF extends java.lang.ObjectBase class for all Java UDFs. Used to separate internal classes likeUDFunctionfrom user provided code. Only references to this class (and generated implementations) are allowed - references from this class back to C* code are not allowed (except argument/return type information).
-
-
Field Summary
Fields Modifier and Type Field Description protected UDFContextudfContext
-
Constructor Summary
Constructors Modifier Constructor Description protectedJavaUDF(UDFDataType returnType, UDFContext udfContext)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.nio.ByteBufferdecompose(ProtocolVersion protocolVersion, byte value)protected java.nio.ByteBufferdecompose(ProtocolVersion protocolVersion, double value)protected java.nio.ByteBufferdecompose(ProtocolVersion protocolVersion, float value)protected java.nio.ByteBufferdecompose(ProtocolVersion protocolVersion, int value)protected java.nio.ByteBufferdecompose(ProtocolVersion protocolVersion, long value)protected java.nio.ByteBufferdecompose(ProtocolVersion protocolVersion, short value)protected java.nio.ByteBufferdecompose(ProtocolVersion protocolVersion, java.lang.Object value)protected abstract java.lang.ObjectexecuteAggregateImpl(java.lang.Object state, Arguments arguments)protected abstract java.nio.ByteBufferexecuteImpl(Arguments arguments)
-
-
-
Field Detail
-
udfContext
protected final UDFContext udfContext
-
-
Constructor Detail
-
JavaUDF
protected JavaUDF(UDFDataType returnType, UDFContext udfContext)
-
-
Method Detail
-
executeImpl
protected abstract java.nio.ByteBuffer executeImpl(Arguments arguments)
-
executeAggregateImpl
protected abstract java.lang.Object executeAggregateImpl(java.lang.Object state, Arguments arguments)
-
decompose
protected final java.nio.ByteBuffer decompose(ProtocolVersion protocolVersion, java.lang.Object value)
-
decompose
protected final java.nio.ByteBuffer decompose(ProtocolVersion protocolVersion, byte value)
-
decompose
protected final java.nio.ByteBuffer decompose(ProtocolVersion protocolVersion, short value)
-
decompose
protected final java.nio.ByteBuffer decompose(ProtocolVersion protocolVersion, int value)
-
decompose
protected final java.nio.ByteBuffer decompose(ProtocolVersion protocolVersion, long value)
-
decompose
protected final java.nio.ByteBuffer decompose(ProtocolVersion protocolVersion, float value)
-
decompose
protected final java.nio.ByteBuffer decompose(ProtocolVersion protocolVersion, double value)
-
-