public class HyperLogLogType extends Object implements VariableWidthType
| Modifier and Type | Field and Description |
|---|---|
static BlockEncodingFactory<?> |
BLOCK_ENCODING_FACTORY |
static HyperLogLogType |
HYPER_LOG_LOG |
| Constructor and Description |
|---|
HyperLogLogType() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(io.airlift.slice.Slice slice,
int offset,
BlockBuilder blockBuilder)
Append the value at
offset in slice to blockBuilder. |
void |
appendTo(io.airlift.slice.Slice slice,
int offset,
io.airlift.slice.SliceOutput sliceOutput)
Append the value at
offset in slice to sliceOutput. |
int |
compareTo(io.airlift.slice.Slice leftSlice,
int leftOffset,
io.airlift.slice.Slice rightSlice,
int rightOffset)
Compare the values in the specified slices at the specified offsets equal.
|
BlockBuilder |
createBlockBuilder(BlockBuilderStatus blockBuilderStatus)
Creates a block builder for this type.
|
boolean |
equals(Object o) |
boolean |
equalTo(io.airlift.slice.Slice leftSlice,
int leftOffset,
BlockCursor rightCursor)
Is the value at the specified offset in the specified slice equal value
at the specified cursor?
|
boolean |
equalTo(io.airlift.slice.Slice leftSlice,
int leftOffset,
io.airlift.slice.Slice rightSlice,
int rightOffset)
Are the values in the specified slices at the specified offsets equal?
|
static HyperLogLogType |
getInstance() |
Class<?> |
getJavaType()
Gets the Java class type used to represent this value on the stack during
expression execution.
|
int |
getLength(io.airlift.slice.Slice slice,
int offset)
Gets the length of the value at the specified offset in the specified slice.
|
String |
getName()
Gets the name of this type which must be case insensitive globally unique.
|
Object |
getObjectValue(ConnectorSession session,
io.airlift.slice.Slice slice,
int offset)
Gets an object representation of the type encoded in the specified slice
at the specified offset.
|
io.airlift.slice.Slice |
getSlice(io.airlift.slice.Slice slice,
int offset)
Gets the value at the specified offset in the specified slice as a Slice.
|
int |
hash(io.airlift.slice.Slice slice,
int offset)
Calculates the hash code of the value at the specified offset in the
specified slice.
|
int |
hashCode() |
String |
toString() |
int |
writeSlice(io.airlift.slice.SliceOutput sliceOutput,
io.airlift.slice.Slice value,
int offset,
int length)
Writes the Slice value into the specified slice output.
|
public static final HyperLogLogType HYPER_LOG_LOG
public static final BlockEncodingFactory<?> BLOCK_ENCODING_FACTORY
public static HyperLogLogType getInstance()
public String getName()
Typepublic Class<?> getJavaType()
TypegetJavaType in interface Typepublic int getLength(io.airlift.slice.Slice slice,
int offset)
VariableWidthTypegetLength in interface VariableWidthTypepublic io.airlift.slice.Slice getSlice(io.airlift.slice.Slice slice,
int offset)
VariableWidthTypegetSlice in interface VariableWidthTypepublic int writeSlice(io.airlift.slice.SliceOutput sliceOutput,
io.airlift.slice.Slice value,
int offset,
int length)
VariableWidthTypewriteSlice in interface VariableWidthTypepublic boolean equalTo(io.airlift.slice.Slice leftSlice,
int leftOffset,
io.airlift.slice.Slice rightSlice,
int rightOffset)
VariableWidthTypeequalTo in interface VariableWidthTypepublic boolean equalTo(io.airlift.slice.Slice leftSlice,
int leftOffset,
BlockCursor rightCursor)
VariableWidthTypeequalTo in interface VariableWidthTypepublic int hash(io.airlift.slice.Slice slice,
int offset)
VariableWidthTypehash in interface VariableWidthTypepublic int compareTo(io.airlift.slice.Slice leftSlice,
int leftOffset,
io.airlift.slice.Slice rightSlice,
int rightOffset)
VariableWidthTypecompareTo in interface VariableWidthTypepublic void appendTo(io.airlift.slice.Slice slice,
int offset,
BlockBuilder blockBuilder)
VariableWidthTypeoffset in slice to blockBuilder.appendTo in interface VariableWidthTypepublic void appendTo(io.airlift.slice.Slice slice,
int offset,
io.airlift.slice.SliceOutput sliceOutput)
VariableWidthTypeoffset in slice to sliceOutput.appendTo in interface VariableWidthTypepublic Object getObjectValue(ConnectorSession session, io.airlift.slice.Slice slice, int offset)
VariableWidthTypegetObjectValue in interface VariableWidthTypepublic BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus)
TypecreateBlockBuilder in interface TypeCopyright © 2012-2014. All Rights Reserved.