Package io.trino.operator
Class GroupByIdBlock
java.lang.Object
io.trino.operator.GroupByIdBlock
- All Implemented Interfaces:
Block
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbytesCompare(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) copyPositions(int[] positions, int offset, int length) copyRegion(int positionOffset, int length) booleanbytegetByte(int position, int offset) longgetEstimatedDataSizeForStats(int position) longlonggetGroupId(int position) intgetInt(int position, int offset) longgetLong(int position, int offset) <T> TintlonggetPositionsSizeInBytes(boolean[] positions, int selectedPositionCount) getRegion(int positionOffset, int length) longgetRegionSizeInBytes(int positionOffset, int length) longshortgetShort(int position, int offset) getSingleValueBlock(int position) longio.airlift.slice.SlicegetSlice(int position, int offset, int length) intgetSliceLength(int position) longhash(int position, int offset, int length) booleanisLoaded()booleanisNull(int position) booleanvoidretainedBytesForEachPart(ObjLongConsumer<Object> consumer) toString()voidwriteBytesTo(int position, int offset, int length, BlockBuilder blockBuilder) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.trino.spi.block.Block
getLogicalSizeInBytes, getPositions
-
Constructor Details
-
GroupByIdBlock
-
-
Method Details
-
getGroupCount
public long getGroupCount() -
getGroupId
public long getGroupId(int position) -
getRegion
-
getRegionSizeInBytes
public long getRegionSizeInBytes(int positionOffset, int length) - Specified by:
getRegionSizeInBytesin interfaceBlock
-
fixedSizeInBytesPerPosition
- Specified by:
fixedSizeInBytesPerPositionin interfaceBlock
-
getPositionsSizeInBytes
public long getPositionsSizeInBytes(boolean[] positions, int selectedPositionCount) - Specified by:
getPositionsSizeInBytesin interfaceBlock
-
copyRegion
- Specified by:
copyRegionin interfaceBlock
-
getSliceLength
public int getSliceLength(int position) - Specified by:
getSliceLengthin interfaceBlock
-
getByte
public byte getByte(int position, int offset) -
getShort
public short getShort(int position, int offset) -
getInt
public int getInt(int position, int offset) -
getLong
public long getLong(int position, int offset) -
getSlice
public io.airlift.slice.Slice getSlice(int position, int offset, int length) -
getObject
-
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
- Specified by:
writeBytesToin interfaceBlock
-
equals
public boolean equals(int position, int offset, Block otherBlock, int otherPosition, int otherOffset, int length) -
hash
public long hash(int position, int offset, int length) -
compareTo
public int compareTo(int leftPosition, int leftOffset, int leftLength, Block rightBlock, int rightPosition, int rightOffset, int rightLength) -
getSingleValueBlock
- Specified by:
getSingleValueBlockin interfaceBlock
-
mayHaveNull
public boolean mayHaveNull()- Specified by:
mayHaveNullin interfaceBlock
-
isNull
public boolean isNull(int position) -
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
- Specified by:
retainedBytesForEachPartin interfaceBlock
-
getEncodingName
- Specified by:
getEncodingNamein interfaceBlock
-
copyPositions
- Specified by:
copyPositionsin interfaceBlock
-
copyWithAppendedNull
- Specified by:
copyWithAppendedNullin interfaceBlock
-
toString
-
isLoaded
public boolean isLoaded() -
getLoadedBlock
- Specified by:
getLoadedBlockin interfaceBlock
-
getChildren
- Specified by:
getChildrenin interfaceBlock
-