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(TypeCodec<java.lang.Object> returnCodec, TypeCodec<java.lang.Object>[] argCodecs, UDFContext udfContext)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.lang.Objectcompose(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)protected booleancompose_boolean(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)protected bytecompose_byte(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)protected doublecompose_double(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)protected floatcompose_float(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)protected intcompose_int(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)protected longcompose_long(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)protected shortcompose_short(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)protected java.nio.ByteBufferdecompose(ProtocolVersion protocolVersion, java.lang.Object value)protected abstract java.lang.ObjectexecuteAggregateImpl(ProtocolVersion protocolVersion, java.lang.Object firstParam, java.util.List<java.nio.ByteBuffer> params)protected abstract java.nio.ByteBufferexecuteImpl(ProtocolVersion protocolVersion, java.util.List<java.nio.ByteBuffer> params)
-
-
-
Field Detail
-
udfContext
protected final UDFContext udfContext
-
-
Constructor Detail
-
JavaUDF
protected JavaUDF(TypeCodec<java.lang.Object> returnCodec, TypeCodec<java.lang.Object>[] argCodecs, UDFContext udfContext)
-
-
Method Detail
-
executeImpl
protected abstract java.nio.ByteBuffer executeImpl(ProtocolVersion protocolVersion, java.util.List<java.nio.ByteBuffer> params)
-
executeAggregateImpl
protected abstract java.lang.Object executeAggregateImpl(ProtocolVersion protocolVersion, java.lang.Object firstParam, java.util.List<java.nio.ByteBuffer> params)
-
compose
protected java.lang.Object compose(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)
-
decompose
protected java.nio.ByteBuffer decompose(ProtocolVersion protocolVersion, java.lang.Object value)
-
compose_float
protected float compose_float(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)
-
compose_double
protected double compose_double(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)
-
compose_byte
protected byte compose_byte(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)
-
compose_short
protected short compose_short(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)
-
compose_int
protected int compose_int(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)
-
compose_long
protected long compose_long(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)
-
compose_boolean
protected boolean compose_boolean(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)
-
-