public interface Block
| Modifier and Type | Method and Description |
|---|---|
void |
assureLoaded()
Assures that all data for the block is in memory.
|
int |
bytesCompare(int position,
int offset,
int length,
io.airlift.slice.Slice otherSlice,
int otherOffset,
int otherLength)
Compares the byte sequences at
offset in the value at position
to the byte sequence at otherOffset in otherSlice. |
boolean |
bytesEqual(int position,
int offset,
io.airlift.slice.Slice otherSlice,
int otherOffset,
int length)
Is the byte sequences at
offset in the value at position equal
to the byte sequence at otherOffset in otherSlice. |
int |
compareTo(int leftPosition,
int leftOffset,
int leftLength,
Block rightBlock,
int rightPosition,
int rightOffset,
int rightLength)
Compares the byte sequences at
offset in the value at position
to the byte sequence at otherOffset in the value at otherPosition
in otherBlock. |
boolean |
equals(int position,
int offset,
Block otherBlock,
int otherPosition,
int otherOffset,
int length)
Is the byte sequences at
offset in the value at position equal
to the byte sequence at otherOffset in the value at otherPosition
in otherBlock. |
byte |
getByte(int position,
int offset)
Gets a byte at
offset in the value at position. |
double |
getDouble(int position,
int offset)
Gets a little endian double at
offset in the value at position. |
BlockEncoding |
getEncoding()
Get the encoding for this block.
|
float |
getFloat(int position,
int offset)
Gets a little endian float at
offset in the value at position. |
int |
getInt(int position,
int offset)
Gets a little endian int at
offset in the value at position. |
int |
getLength(int position)
Gets the length of the value at the
position. |
long |
getLong(int position,
int offset)
Gets a little endian long at
offset in the value at position. |
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.
|
short |
getShort(int position,
int offset)
Gets a little endian short at
offset in the value at position. |
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,
int offset,
int length)
Gets a slice at
offset in the value at position. |
int |
hash(int position,
int offset,
int length)
Calculates the hash code the byte sequences at
offset in the
value at position. |
boolean |
isNull(int position)
Is the specified position null?
|
void |
writeBytesTo(int position,
int offset,
int length,
BlockBuilder blockBuilder)
Appends the byte sequences at
offset in the value at position
to blockBuilder. |
int getLength(int position)
position.byte getByte(int position,
int offset)
offset in the value at position.short getShort(int position,
int offset)
offset in the value at position.int getInt(int position,
int offset)
offset in the value at position.long getLong(int position,
int offset)
offset in the value at position.float getFloat(int position,
int offset)
offset in the value at position.double getDouble(int position,
int offset)
offset in the value at position.io.airlift.slice.Slice getSlice(int position,
int offset,
int length)
offset in the value at position.boolean bytesEqual(int position,
int offset,
io.airlift.slice.Slice otherSlice,
int otherOffset,
int length)
offset in the value at position equal
to the byte sequence at otherOffset in otherSlice.int bytesCompare(int position,
int offset,
int length,
io.airlift.slice.Slice otherSlice,
int otherOffset,
int otherLength)
offset in the value at position
to the byte sequence at otherOffset in otherSlice.void writeBytesTo(int position,
int offset,
int length,
BlockBuilder blockBuilder)
offset in the value at position
to blockBuilder.boolean equals(int position,
int offset,
Block otherBlock,
int otherPosition,
int otherOffset,
int length)
offset in the value at position equal
to the byte sequence at otherOffset in the value at otherPosition
in otherBlock.int hash(int position,
int offset,
int length)
offset in the
value at position.int compareTo(int leftPosition,
int leftOffset,
int leftLength,
Block rightBlock,
int rightPosition,
int rightOffset,
int rightLength)
offset in the value at position
to the byte sequence at otherOffset in the value at otherPosition
in otherBlock.Block getSingleValueBlock(int position)
IllegalArgumentException - if this position is not validint getPositionCount()
int getSizeInBytes()
BlockEncoding getEncoding()
Block getRegion(int positionOffset, int length)
boolean isNull(int position)
IllegalArgumentException - if this position is not validvoid assureLoaded()
Copyright © 2012-2014. All Rights Reserved.