Package io.trino.operator
Class GroupByIdBlock
- java.lang.Object
-
- io.trino.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 intbytesCompare(int position, int offset, int length, io.airlift.slice.Slice otherSlice, int otherOffset, int otherLength)booleanbytesEqual(int position, int offset, io.airlift.slice.Slice otherSlice, int otherOffset, int length)intcompareTo(int leftPosition, int leftOffset, int leftLength, Block rightBlock, int rightPosition, int rightOffset, int rightLength)BlockcopyPositions(int[] positions, int offset, int length)BlockcopyRegion(int positionOffset, int length)booleanequals(int position, int offset, Block otherBlock, int otherPosition, int otherOffset, int length)bytegetByte(int position, int offset)List<Block>getChildren()StringgetEncodingName()longgetEstimatedDataSizeForStats(int position)longgetGroupCount()longgetGroupId(int position)intgetInt(int position, int offset)BlockgetLoadedBlock()longgetLong(int position, int offset)<T> TgetObject(int position, Class<T> clazz)intgetPositionCount()longgetPositionsSizeInBytes(boolean[] positions)BlockgetRegion(int positionOffset, int length)longgetRegionSizeInBytes(int positionOffset, int length)longgetRetainedSizeInBytes()shortgetShort(int position, int offset)BlockgetSingleValueBlock(int position)longgetSizeInBytes()io.airlift.slice.SlicegetSlice(int position, int offset, int length)intgetSliceLength(int position)longhash(int position, int offset, int length)booleanisLoaded()booleanisNull(int position)booleanmayHaveNull()voidretainedBytesForEachPart(BiConsumer<Object,Long> consumer)StringtoString()voidwriteBytesTo(int position, int offset, int length, BlockBuilder blockBuilder)voidwritePositionTo(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.trino.spi.block.Block
getLogicalSizeInBytes, getPositions, getPositionsSizeInBytes
-
-
-
-
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:
getRegionSizeInBytesin interfaceBlock
-
getPositionsSizeInBytes
public long getPositionsSizeInBytes(boolean[] positions)
- Specified by:
getPositionsSizeInBytesin interfaceBlock
-
copyRegion
public Block copyRegion(int positionOffset, int length)
- Specified by:
copyRegionin interfaceBlock
-
getSliceLength
public int getSliceLength(int position)
- Specified by:
getSliceLengthin 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:
bytesEqualin interfaceBlock
-
bytesCompare
public int bytesCompare(int position, int offset, int length, io.airlift.slice.Slice otherSlice, int otherOffset, int otherLength)- Specified by:
bytesComparein interfaceBlock
-
writeBytesTo
public void writeBytesTo(int position, int offset, int length, BlockBuilder blockBuilder)- Specified by:
writeBytesToin interfaceBlock
-
writePositionTo
public void writePositionTo(int position, BlockBuilder blockBuilder)- Specified by:
writePositionToin 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:
getSingleValueBlockin interfaceBlock
-
mayHaveNull
public boolean mayHaveNull()
- Specified by:
mayHaveNullin interfaceBlock
-
getPositionCount
public int getPositionCount()
- Specified by:
getPositionCountin interfaceBlock
-
getSizeInBytes
public long getSizeInBytes()
- Specified by:
getSizeInBytesin interfaceBlock
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes()
- Specified by:
getRetainedSizeInBytesin interfaceBlock
-
getEstimatedDataSizeForStats
public long getEstimatedDataSizeForStats(int position)
- Specified by:
getEstimatedDataSizeForStatsin interfaceBlock
-
retainedBytesForEachPart
public void retainedBytesForEachPart(BiConsumer<Object,Long> consumer)
- Specified by:
retainedBytesForEachPartin interfaceBlock
-
getEncodingName
public String getEncodingName()
- Specified by:
getEncodingNamein interfaceBlock
-
copyPositions
public Block copyPositions(int[] positions, int offset, int length)
- Specified by:
copyPositionsin interfaceBlock
-
getLoadedBlock
public Block getLoadedBlock()
- Specified by:
getLoadedBlockin interfaceBlock
-
getChildren
public final List<Block> getChildren()
- Specified by:
getChildrenin interfaceBlock
-
-