public interface FixedWidthType extends Type
| 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 |
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.
|
long |
getLong(io.airlift.slice.Slice slice,
int offset)
Gets the value at the specified offset in the specified slice as a long.
|
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.
|
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.
|
createBlockBuilder, getJavaType, getNameint getFixedSize()
BlockBuilder createFixedSizeBlockBuilder(int positionCount)
Object getObjectValue(ConnectorSession session, io.airlift.slice.Slice slice, int offset)
boolean getBoolean(io.airlift.slice.Slice slice,
int offset)
void writeBoolean(io.airlift.slice.SliceOutput sliceOutput,
boolean value)
long getLong(io.airlift.slice.Slice slice,
int offset)
void writeLong(io.airlift.slice.SliceOutput sliceOutput,
long value)
double getDouble(io.airlift.slice.Slice slice,
int offset)
void writeDouble(io.airlift.slice.SliceOutput sliceOutput,
double value)
io.airlift.slice.Slice getSlice(io.airlift.slice.Slice slice,
int offset)
void writeSlice(io.airlift.slice.SliceOutput sliceOutput,
io.airlift.slice.Slice value,
int offset)
boolean equalTo(io.airlift.slice.Slice leftSlice,
int leftOffset,
io.airlift.slice.Slice rightSlice,
int rightOffset)
boolean equalTo(io.airlift.slice.Slice leftSlice,
int leftOffset,
BlockCursor rightCursor)
int hash(io.airlift.slice.Slice slice,
int offset)
int compareTo(io.airlift.slice.Slice leftSlice,
int leftOffset,
io.airlift.slice.Slice rightSlice,
int rightOffset)
void appendTo(io.airlift.slice.Slice slice,
int offset,
BlockBuilder blockBuilder)
offset in slice to blockBuilder.void appendTo(io.airlift.slice.Slice slice,
int offset,
io.airlift.slice.SliceOutput sliceOutput)
offset in slice to sliceOutput.Copyright © 2012-2014. All Rights Reserved.