Class FlatHash

java.lang.Object
io.trino.operator.FlatHash

public final class FlatHash extends Object
  • Constructor Details

    • FlatHash

      public FlatHash(FlatHashStrategy flatHashStrategy, boolean hasPrecomputedHash, int expectedSize, UpdateMemory checkMemoryReservation)
  • Method Details

    • getEstimatedSize

      public long getEstimatedSize()
    • size

      public int size()
    • getCapacity

      public int getCapacity()
    • hashPosition

      public long hashPosition(int groupId)
    • appendTo

      public void appendTo(int groupId, BlockBuilder[] blockBuilders)
    • contains

      public boolean contains(Block[] blocks, int position)
    • contains

      public boolean contains(Block[] blocks, int position, long hash)
    • computeHashes

      public void computeHashes(Block[] blocks, long[] hashes, int offset, int length)
    • putIfAbsent

      public int putIfAbsent(Block[] blocks, int position, long hash)
    • putIfAbsent

      public int putIfAbsent(Block[] blocks, int position)
    • ensureAvailableCapacity

      public boolean ensureAvailableCapacity(int batchSize)
    • getPhysicalPosition

      public int getPhysicalPosition(int groupId)
    • sumExact

      public static long sumExact(long... values)