Package io.trino.operator
Class TopNPeerGroupLookup
java.lang.Object
io.trino.operator.TopNPeerGroupLookup
Optimized hash table for streaming Top N peer group lookup operations.
-
Constructor Summary
ConstructorsConstructorDescriptionTopNPeerGroupLookup(long expected, float fillFactor, RowIdHashStrategy strategy, long unmappedGroupId, long defaultReturnValue) Standard hash table parameters are expected.TopNPeerGroupLookup(long expected, RowIdHashStrategy strategy, long unmappedGroupId, long defaultReturnValue) -
Method Summary
-
Constructor Details
-
TopNPeerGroupLookup
public TopNPeerGroupLookup(long expected, float fillFactor, RowIdHashStrategy strategy, long unmappedGroupId, long defaultReturnValue) Standard hash table parameters are expected.unmappedGroupIdspecifies the internal marker value for unmapped group IDs. -
TopNPeerGroupLookup
public TopNPeerGroupLookup(long expected, RowIdHashStrategy strategy, long unmappedGroupId, long defaultReturnValue)
-
-
Method Details
-
sizeOf
public long sizeOf()Returns the size of this hash map in bytes. -
size
public long size() -
isEmpty
public boolean isEmpty() -
get
public long get(long groupId, long rowId) -
get
-
put
public long put(long groupId, long rowId, long value) -
remove
public long remove(long groupId, long rowId)
-