public class GroupByIdBlock extends Object implements Block
| Constructor and Description |
|---|
GroupByIdBlock(long groupCount,
Block block) |
| Modifier and Type | Method and Description |
|---|---|
Block |
appendNull() |
int |
bytesCompare(int position,
int offset,
int length,
io.airlift.slice.Slice otherSlice,
int otherOffset,
int otherLength) |
boolean |
bytesEqual(int position,
int offset,
io.airlift.slice.Slice otherSlice,
int otherOffset,
int length) |
int |
compareTo(int leftPosition,
int leftOffset,
int leftLength,
Block rightBlock,
int rightPosition,
int rightOffset,
int rightLength) |
Block |
copyPositions(int[] positions,
int offset,
int length) |
Block |
copyRegion(int positionOffset,
int length) |
boolean |
equals(int position,
int offset,
Block otherBlock,
int otherPosition,
int otherOffset,
int length) |
OptionalInt |
fixedSizeInBytesPerPosition() |
Block |
getBlock(int position) |
Block |
getBlockUnchecked(int internalPosition) |
byte |
getByte(int position) |
byte |
getByteUnchecked(int internalPosition) |
String |
getEncodingName() |
long |
getEstimatedDataSizeForStats(int position) |
long |
getGroupCount() |
long |
getGroupId(int position) |
int |
getInt(int position) |
int |
getIntUnchecked(int internalPosition) |
Block |
getLoadedBlock() |
long |
getLong(int position) |
long |
getLong(int position,
int offset) |
long |
getLongUnchecked(int internalPosition) |
long |
getLongUnchecked(int internalPosition,
int offset) |
int |
getOffsetBase() |
int |
getPositionCount() |
long |
getPositionsSizeInBytes(boolean[] positions,
int usedPositionCount) |
Block |
getRegion(int positionOffset,
int length) |
long |
getRegionSizeInBytes(int positionOffset,
int length) |
long |
getRetainedSizeInBytes() |
short |
getShort(int position) |
short |
getShortUnchecked(int internalPosition) |
Block |
getSingleValueBlock(int position) |
long |
getSizeInBytes() |
io.airlift.slice.Slice |
getSlice(int position,
int offset,
int length) |
int |
getSliceLength(int position) |
int |
getSliceLengthUnchecked(int internalPosition) |
io.airlift.slice.Slice |
getSliceUnchecked(int internalPosition,
int offset,
int length) |
long |
hash(int position,
int offset,
int length) |
boolean |
isNull(int position) |
boolean |
isNullUnchecked(int internalPosition) |
boolean |
mayHaveNull() |
void |
retainedBytesForEachPart(ObjLongConsumer<Object> consumer) |
String |
toString() |
void |
writeBytesTo(int position,
int offset,
int length,
BlockBuilder blockBuilder) |
void |
writeBytesTo(int position,
int offset,
int length,
io.airlift.slice.SliceOutput sliceOutput) |
void |
writePositionTo(int position,
BlockBuilder blockBuilder) |
void |
writePositionTo(int position,
io.airlift.slice.SliceOutput output) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetApproximateRegionLogicalSizeInBytes, getLogicalSizeInBytes, getPositions, getRegionLogicalSizeInBytespublic GroupByIdBlock(long groupCount,
Block block)
public long getGroupCount()
public long getGroupId(int position)
public Block getRegion(int positionOffset, int length)
public long getRegionSizeInBytes(int positionOffset,
int length)
getRegionSizeInBytes in interface Blockpublic long getPositionsSizeInBytes(boolean[] positions,
int usedPositionCount)
getPositionsSizeInBytes in interface Blockpublic Block copyRegion(int positionOffset, int length)
copyRegion in interface Blockpublic int getSliceLength(int position)
getSliceLength in interface Blockpublic io.airlift.slice.Slice getSlice(int position,
int offset,
int length)
public boolean bytesEqual(int position,
int offset,
io.airlift.slice.Slice otherSlice,
int otherOffset,
int length)
bytesEqual in interface Blockpublic int bytesCompare(int position,
int offset,
int length,
io.airlift.slice.Slice otherSlice,
int otherOffset,
int otherLength)
bytesCompare in interface Blockpublic void writeBytesTo(int position,
int offset,
int length,
BlockBuilder blockBuilder)
writeBytesTo in interface Blockpublic void writeBytesTo(int position,
int offset,
int length,
io.airlift.slice.SliceOutput sliceOutput)
writeBytesTo in interface Blockpublic void writePositionTo(int position,
BlockBuilder blockBuilder)
writePositionTo in interface Blockpublic void writePositionTo(int position,
io.airlift.slice.SliceOutput output)
writePositionTo in interface Blockpublic boolean equals(int position,
int offset,
Block otherBlock,
int otherPosition,
int otherOffset,
int length)
public int compareTo(int leftPosition,
int leftOffset,
int leftLength,
Block rightBlock,
int rightPosition,
int rightOffset,
int rightLength)
public Block getSingleValueBlock(int position)
getSingleValueBlock in interface Blockpublic boolean mayHaveNull()
mayHaveNull in interface Blockpublic int getPositionCount()
getPositionCount in interface Blockpublic long getSizeInBytes()
getSizeInBytes in interface Blockpublic OptionalInt fixedSizeInBytesPerPosition()
fixedSizeInBytesPerPosition in interface Blockpublic long getRetainedSizeInBytes()
getRetainedSizeInBytes in interface Blockpublic long getEstimatedDataSizeForStats(int position)
getEstimatedDataSizeForStats in interface Blockpublic void retainedBytesForEachPart(ObjLongConsumer<Object> consumer)
retainedBytesForEachPart in interface Blockpublic String getEncodingName()
getEncodingName in interface Blockpublic Block copyPositions(int[] positions, int offset, int length)
copyPositions in interface Blockpublic Block getLoadedBlock()
getLoadedBlock in interface Blockpublic byte getByteUnchecked(int internalPosition)
getByteUnchecked in interface UncheckedBlockpublic short getShortUnchecked(int internalPosition)
getShortUnchecked in interface UncheckedBlockpublic int getIntUnchecked(int internalPosition)
getIntUnchecked in interface UncheckedBlockpublic long getLongUnchecked(int internalPosition)
getLongUnchecked in interface UncheckedBlockpublic long getLongUnchecked(int internalPosition,
int offset)
getLongUnchecked in interface UncheckedBlockpublic io.airlift.slice.Slice getSliceUnchecked(int internalPosition,
int offset,
int length)
getSliceUnchecked in interface UncheckedBlockpublic int getSliceLengthUnchecked(int internalPosition)
getSliceLengthUnchecked in interface UncheckedBlockpublic Block getBlockUnchecked(int internalPosition)
getBlockUnchecked in interface UncheckedBlockpublic int getOffsetBase()
getOffsetBase in interface UncheckedBlockpublic boolean isNullUnchecked(int internalPosition)
isNullUnchecked in interface UncheckedBlockpublic Block appendNull()
appendNull in interface BlockCopyright © 2012–2022. All rights reserved.