public final class IntervalDayTimeType extends Object implements FixedWidthType
| Modifier and Type | Field and Description |
|---|---|
static BlockEncodingFactory<?> |
BLOCK_ENCODING_FACTORY |
static IntervalDayTimeType |
INTERVAL_DAY_TIME |
| 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.
|
BlockBuilder |
createFixedSizeBlockBuilder(int positionCount)
Creates a block builder for this type sized to hold the specified number
of positions.
|
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?
|
boolean |
getBoolean(io.airlift.slice.Slice slice,
int offset)
Gets the value at the specified offset in the specified slice as a boolean.
|
double |
getDouble(io.airlift.slice.Slice slice,
int offset)
Gets the value at the specified offset in the specified slice as a double.
|
int |
getFixedSize()
Gets the size of a value of this type is bytes.
|
static IntervalDayTimeType |
getInstance() |
Class<?> |
getJavaType()
Gets the Java class type used to represent this value on the stack during
expression execution.
|
long |
getLong(io.airlift.slice.Slice slice,
int offset)
Gets the value at the specified offset in the specified slice as a long.
|
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.
|
String |
toString() |
void |
writeBoolean(io.airlift.slice.SliceOutput sliceOutput,
boolean value)
Writes the boolean value into the specified slice output.
|
void |
writeDouble(io.airlift.slice.SliceOutput sliceOutput,
double value)
Writes the double value into the specified slice output.
|
void |
writeLong(io.airlift.slice.SliceOutput sliceOutput,
long value)
Writes the long value into the specified slice output.
|
void |
writeSlice(io.airlift.slice.SliceOutput sliceOutput,
io.airlift.slice.Slice value,
int offset)
Writes the Slice value into the specified slice output.
|
public static final IntervalDayTimeType INTERVAL_DAY_TIME
public static final BlockEncodingFactory<?> BLOCK_ENCODING_FACTORY
public static IntervalDayTimeType getInstance()
public String getName()
Typepublic Class<?> getJavaType()
TypegetJavaType in interface Typepublic int getFixedSize()
FixedWidthTypegetFixedSize in interface FixedWidthTypepublic Object getObjectValue(ConnectorSession session, io.airlift.slice.Slice slice, int offset)
FixedWidthTypegetObjectValue in interface FixedWidthTypepublic BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus)
TypecreateBlockBuilder in interface Typepublic BlockBuilder createFixedSizeBlockBuilder(int positionCount)
FixedWidthTypecreateFixedSizeBlockBuilder in interface FixedWidthTypepublic boolean getBoolean(io.airlift.slice.Slice slice,
int offset)
FixedWidthTypegetBoolean in interface FixedWidthTypepublic void writeBoolean(io.airlift.slice.SliceOutput sliceOutput,
boolean value)
FixedWidthTypewriteBoolean in interface FixedWidthTypepublic long getLong(io.airlift.slice.Slice slice,
int offset)
FixedWidthTypegetLong in interface FixedWidthTypepublic void writeLong(io.airlift.slice.SliceOutput sliceOutput,
long value)
FixedWidthTypewriteLong in interface FixedWidthTypepublic double getDouble(io.airlift.slice.Slice slice,
int offset)
FixedWidthTypegetDouble in interface FixedWidthTypepublic void writeDouble(io.airlift.slice.SliceOutput sliceOutput,
double value)
FixedWidthTypewriteDouble in interface FixedWidthTypepublic io.airlift.slice.Slice getSlice(io.airlift.slice.Slice slice,
int offset)
FixedWidthTypegetSlice in interface FixedWidthTypepublic void writeSlice(io.airlift.slice.SliceOutput sliceOutput,
io.airlift.slice.Slice value,
int offset)
FixedWidthTypewriteSlice in interface FixedWidthTypepublic boolean equalTo(io.airlift.slice.Slice leftSlice,
int leftOffset,
io.airlift.slice.Slice rightSlice,
int rightOffset)
FixedWidthTypeequalTo in interface FixedWidthTypepublic boolean equalTo(io.airlift.slice.Slice leftSlice,
int leftOffset,
BlockCursor rightCursor)
FixedWidthTypeequalTo in interface FixedWidthTypepublic int hash(io.airlift.slice.Slice slice,
int offset)
FixedWidthTypehash in interface FixedWidthTypepublic int compareTo(io.airlift.slice.Slice leftSlice,
int leftOffset,
io.airlift.slice.Slice rightSlice,
int rightOffset)
FixedWidthTypecompareTo in interface FixedWidthTypepublic void appendTo(io.airlift.slice.Slice slice,
int offset,
BlockBuilder blockBuilder)
FixedWidthTypeoffset in slice to blockBuilder.appendTo in interface FixedWidthTypepublic void appendTo(io.airlift.slice.Slice slice,
int offset,
io.airlift.slice.SliceOutput sliceOutput)
FixedWidthTypeoffset in slice to sliceOutput.appendTo in interface FixedWidthTypeCopyright © 2012-2014. All Rights Reserved.