public abstract class StatisticalDigestType extends AbstractVariableWidthType
| Constructor and Description |
|---|
StatisticalDigestType(String name,
Type type) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(Block block,
int position,
BlockBuilder blockBuilder)
Append the value at
position in block to blockBuilder. |
Object |
getObjectValue(SqlFunctionProperties properties,
Block block,
int position)
Gets an object representation of the type value in the
block
position. |
io.airlift.slice.Slice |
getSlice(Block block,
int position)
Gets the value at the
block position as a Slice. |
List<Type> |
getTypeParameters()
For parameterized types returns the list of parameters.
|
void |
writeSlice(BlockBuilder blockBuilder,
io.airlift.slice.Slice value)
Writes the Slice value into the
BlockBuilder. |
void |
writeSlice(BlockBuilder blockBuilder,
io.airlift.slice.Slice value,
int offset,
int length)
Writes the Slice value into the
BlockBuilder. |
createBlockBuilder, createBlockBuildergetTypeSignaturecompareTo, equals, equalTo, getBlockUnchecked, getBoolean, getBooleanUnchecked, getDisplayName, getDouble, getDoubleUnchecked, getJavaType, getLong, getLongUnchecked, getObject, getSliceUnchecked, hash, hashCode, isComparable, isOrderable, toString, writeBoolean, writeDouble, writeLong, writeObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, equalTo, getBlockUnchecked, getBoolean, getBooleanUnchecked, getDisplayName, getDouble, getDoubleUnchecked, getJavaType, getLong, getLongUnchecked, getObject, getSliceUnchecked, getTypeSignature, hash, isComparable, isOrderable, writeBoolean, writeDouble, writeLong, writeObjectpublic void appendTo(Block block, int position, BlockBuilder blockBuilder)
Typeposition in block to blockBuilder.public io.airlift.slice.Slice getSlice(Block block, int position)
Typeblock position as a Slice.getSlice in interface TypegetSlice in class AbstractTypepublic void writeSlice(BlockBuilder blockBuilder, io.airlift.slice.Slice value)
TypeBlockBuilder.writeSlice in interface TypewriteSlice in class AbstractTypepublic void writeSlice(BlockBuilder blockBuilder, io.airlift.slice.Slice value, int offset, int length)
TypeBlockBuilder.writeSlice in interface TypewriteSlice in class AbstractTypepublic Object getObjectValue(SqlFunctionProperties properties, Block block, int position)
Typeblock
position. This is the value returned to the user via the
REST endpoint and therefore must be JSON serializable.public List<Type> getTypeParameters()
TypegetTypeParameters in interface TypegetTypeParameters in class AbstractTypeCopyright © 2012–2022. All rights reserved.