public abstract class JavaUDF
extends java.lang.Object
UDFunction
from 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).Modifier and Type | Field and Description |
---|---|
protected UDFContext |
udfContext |
Modifier | Constructor and Description |
---|---|
protected |
JavaUDF(TypeCodec<java.lang.Object> returnCodec,
TypeCodec<java.lang.Object>[] argCodecs,
UDFContext udfContext) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
compose_boolean(ProtocolVersion protocolVersion,
int argIndex,
java.nio.ByteBuffer value) |
protected byte |
compose_byte(ProtocolVersion protocolVersion,
int argIndex,
java.nio.ByteBuffer value) |
protected double |
compose_double(ProtocolVersion protocolVersion,
int argIndex,
java.nio.ByteBuffer value) |
protected float |
compose_float(ProtocolVersion protocolVersion,
int argIndex,
java.nio.ByteBuffer value) |
protected int |
compose_int(ProtocolVersion protocolVersion,
int argIndex,
java.nio.ByteBuffer value) |
protected long |
compose_long(ProtocolVersion protocolVersion,
int argIndex,
java.nio.ByteBuffer value) |
protected short |
compose_short(ProtocolVersion protocolVersion,
int argIndex,
java.nio.ByteBuffer value) |
protected java.lang.Object |
compose(ProtocolVersion protocolVersion,
int argIndex,
java.nio.ByteBuffer value) |
protected java.nio.ByteBuffer |
decompose(ProtocolVersion protocolVersion,
java.lang.Object value) |
protected abstract java.lang.Object |
executeAggregateImpl(ProtocolVersion protocolVersion,
java.lang.Object firstParam,
java.util.List<java.nio.ByteBuffer> params) |
protected abstract java.nio.ByteBuffer |
executeImpl(ProtocolVersion protocolVersion,
java.util.List<java.nio.ByteBuffer> params) |
protected final UDFContext udfContext
protected JavaUDF(TypeCodec<java.lang.Object> returnCodec, TypeCodec<java.lang.Object>[] argCodecs, UDFContext udfContext)
protected abstract java.nio.ByteBuffer executeImpl(ProtocolVersion protocolVersion, java.util.List<java.nio.ByteBuffer> params)
protected abstract java.lang.Object executeAggregateImpl(ProtocolVersion protocolVersion, java.lang.Object firstParam, java.util.List<java.nio.ByteBuffer> params)
protected java.lang.Object compose(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)
protected java.nio.ByteBuffer decompose(ProtocolVersion protocolVersion, java.lang.Object value)
protected float compose_float(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)
protected double compose_double(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)
protected byte compose_byte(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)
protected short compose_short(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)
protected int compose_int(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)
protected long compose_long(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)
protected boolean compose_boolean(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)
Copyright © 2009-2021 The Apache Software Foundation