public interface Block
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(int position,
BlockBuilder blockBuilder)
Appends the value at the specified position to the block builder.
|
int |
compareTo(int position,
io.airlift.slice.Slice otherSlice,
int otherOffset)
Compares the value at the specified position to the value at the other offset
in the other slice.
|
int |
compareTo(SortOrder sortOrder,
int position,
BlockCursor cursor)
Compares the value at the specified position to the value at the cursor.
|
int |
compareTo(SortOrder sortOrder,
int position,
Block otherBlock,
int otherPosition)
Compares the value at the specified position to the value at the other position
in the other block.
|
BlockCursor |
cursor()
Gets a cursor over the block.
|
boolean |
equalTo(int position,
BlockCursor cursor)
Is the value at the specified position equal to the value at the cursor?
|
boolean |
equalTo(int position,
Block otherBlock,
int otherPosition)
Is the value at the specified position equal to the value at the other position
in the other block?
|
boolean |
equalTo(int position,
io.airlift.slice.Slice otherSlice,
int otherOffset)
Is the value at the specified position equal to the value at the other offset
in the other slice?
|
boolean |
getBoolean(int position)
Gets the value at the specified position as a boolean.
|
double |
getDouble(int position)
Gets the value at the specified position as a double.
|
BlockEncoding |
getEncoding()
Get the encoding for this block.
|
long |
getLong(int position)
Gets the value at the specified position as a long.
|
Object |
getObjectValue(ConnectorSession session,
int position)
Gets the value at the specified position as an Object.
|
int |
getPositionCount()
Returns the number of positions in this block.
|
Block |
getRegion(int positionOffset,
int length)
Returns a block starting at the specified position and extends for the
specified length.
|
Block |
getSingleValueBlock(int position)
Gets the value at the specified position as a single element block.
|
int |
getSizeInBytes()
Returns the size of this block in memory.
|
io.airlift.slice.Slice |
getSlice(int position)
Gets the value at the specified position as a Slice.
|
Type |
getType()
Gets the type of this block.
|
int |
hash(int position)
Calculates the hash code of the value at the specified position.
|
boolean |
isNull(int position)
Is the specified position null?
|
void appendTo(int position,
BlockBuilder blockBuilder)
int compareTo(SortOrder sortOrder, int position, Block otherBlock, int otherPosition)
int compareTo(SortOrder sortOrder, int position, BlockCursor cursor)
int compareTo(int position,
io.airlift.slice.Slice otherSlice,
int otherOffset)
boolean equalTo(int position,
Block otherBlock,
int otherPosition)
boolean equalTo(int position,
BlockCursor cursor)
boolean equalTo(int position,
io.airlift.slice.Slice otherSlice,
int otherOffset)
boolean getBoolean(int position)
IllegalArgumentException - if this position is not validdouble getDouble(int position)
IllegalArgumentException - if this position is not validlong getLong(int position)
IllegalArgumentException - if this position is not validObject getObjectValue(ConnectorSession session, int position)
IllegalArgumentException - if this position is not validBlock getSingleValueBlock(int position)
IllegalStateException - if this cursor is not at a valid positionio.airlift.slice.Slice getSlice(int position)
IllegalArgumentException - if this position is not validType getType()
int getPositionCount()
int getSizeInBytes()
BlockCursor cursor()
BlockEncoding getEncoding()
Block getRegion(int positionOffset, int length)
int hash(int position)
boolean isNull(int position)
IllegalArgumentException - if this position is not validCopyright © 2012-2014. All Rights Reserved.