Class OrderedChunkUtils

java.lang.Object
io.deephaven.chunk.OrderedChunkUtils

public class OrderedChunkUtils extends Object
  • Constructor Details

    • OrderedChunkUtils

      public OrderedChunkUtils()
  • Method Details

    • findInChunk

      public static <ATTR extends Any> int findInChunk(LongChunk<ATTR> chunk, long value)
      Finds the insertion point in chunk for value.
      Parameters:
      chunk - to search through
      value - the value to find
      Returns:
      The insertion point in [0, chunk.size()).
    • findInChunk

      public static <ATTR extends Any> int findInChunk(LongChunk<ATTR> chunk, long value, int startOffset, int endOffsetExclusive)
      Finds the insertion point in chunk for value.
      Parameters:
      chunk - to search through
      value - the value to find
      startOffset - the minimum offset allowed
      endOffsetExclusive - the offset just beyond the maximum allowed
      Returns:
      The insertion point in [startOffset, endOffsetExclusive).