Package io.prestosql.operator
Class GroupByIdBlock
- java.lang.Object
-
- io.prestosql.operator.GroupByIdBlock
-
-
Constructor Summary
Constructors Constructor Description GroupByIdBlock(long groupCount, Block block)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
byte
getByte(int position, int offset)
List<Block>
getChildren()
String
getEncodingName()
long
getEstimatedDataSizeForStats(int position)
long
getGroupCount()
long
getGroupId(int position)
int
getInt(int position, int offset)
Block
getLoadedBlock()
long
getLong(int position, int offset)
<T> T
getObject(int position, Class<T> clazz)
int
getPositionCount()
long
getPositionsSizeInBytes(boolean[] positions)
Block
getRegion(int positionOffset, int length)
long
getRegionSizeInBytes(int positionOffset, int length)
long
getRetainedSizeInBytes()
short
getShort(int position, int offset)
Block
getSingleValueBlock(int position)
long
getSizeInBytes()
io.airlift.slice.Slice
getSlice(int position, int offset, int length)
int
getSliceLength(int position)
long
hash(int position, int offset, int length)
boolean
isLoaded()
boolean
isNull(int position)
void
retainedBytesForEachPart(BiConsumer<Object,Long> consumer)
String
toString()
void
writeBytesTo(int position, int offset, int length, BlockBuilder blockBuilder)
void
writePositionTo(int position, BlockBuilder blockBuilder)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.prestosql.spi.block.Block
getLogicalSizeInBytes, getPositions, mayHaveNull
-
-
-
-
Constructor Detail
-
GroupByIdBlock
public GroupByIdBlock(long groupCount, Block block)
-
-
Method Detail
-
getGroupCount
public long getGroupCount()
-
getGroupId
public long getGroupId(int position)
-
getRegion
public Block getRegion(int positionOffset, int length)
-
getRegionSizeInBytes
public long getRegionSizeInBytes(int positionOffset, int length)
- Specified by:
getRegionSizeInBytes
in interfaceBlock
-
getPositionsSizeInBytes
public long getPositionsSizeInBytes(boolean[] positions)
- Specified by:
getPositionsSizeInBytes
in interfaceBlock
-
copyRegion
public Block copyRegion(int positionOffset, int length)
- Specified by:
copyRegion
in interfaceBlock
-
getSliceLength
public int getSliceLength(int position)
- Specified by:
getSliceLength
in interfaceBlock
-
getSlice
public io.airlift.slice.Slice getSlice(int position, int offset, int length)
-
getObject
public <T> T getObject(int position, Class<T> clazz)
-
bytesEqual
public boolean bytesEqual(int position, int offset, io.airlift.slice.Slice otherSlice, int otherOffset, int length)
- Specified by:
bytesEqual
in interfaceBlock
-
bytesCompare
public int bytesCompare(int position, int offset, int length, io.airlift.slice.Slice otherSlice, int otherOffset, int otherLength)
- Specified by:
bytesCompare
in interfaceBlock
-
writeBytesTo
public void writeBytesTo(int position, int offset, int length, BlockBuilder blockBuilder)
- Specified by:
writeBytesTo
in interfaceBlock
-
writePositionTo
public void writePositionTo(int position, BlockBuilder blockBuilder)
- Specified by:
writePositionTo
in interfaceBlock
-
equals
public boolean equals(int position, int offset, Block otherBlock, int otherPosition, int otherOffset, int length)
-
compareTo
public int compareTo(int leftPosition, int leftOffset, int leftLength, Block rightBlock, int rightPosition, int rightOffset, int rightLength)
-
getSingleValueBlock
public Block getSingleValueBlock(int position)
- Specified by:
getSingleValueBlock
in interfaceBlock
-
getPositionCount
public int getPositionCount()
- Specified by:
getPositionCount
in interfaceBlock
-
getSizeInBytes
public long getSizeInBytes()
- Specified by:
getSizeInBytes
in interfaceBlock
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes()
- Specified by:
getRetainedSizeInBytes
in interfaceBlock
-
getEstimatedDataSizeForStats
public long getEstimatedDataSizeForStats(int position)
- Specified by:
getEstimatedDataSizeForStats
in interfaceBlock
-
retainedBytesForEachPart
public void retainedBytesForEachPart(BiConsumer<Object,Long> consumer)
- Specified by:
retainedBytesForEachPart
in interfaceBlock
-
getEncodingName
public String getEncodingName()
- Specified by:
getEncodingName
in interfaceBlock
-
copyPositions
public Block copyPositions(int[] positions, int offset, int length)
- Specified by:
copyPositions
in interfaceBlock
-
getLoadedBlock
public Block getLoadedBlock()
- Specified by:
getLoadedBlock
in interfaceBlock
-
getChildren
public final List<Block> getChildren()
- Specified by:
getChildren
in interfaceBlock
-
-