Package io.deephaven.chunk
Class OrderedChunkUtils
java.lang.Object
io.deephaven.chunk.OrderedChunkUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <ATTR extends Any>
intfindInChunk
(LongChunk<ATTR> chunk, long value) Finds the insertion point inchunk
forvalue
.static <ATTR extends Any>
intfindInChunk
(LongChunk<ATTR> chunk, long value, int startOffset, int endOffsetExclusive) Finds the insertion point inchunk
forvalue
.
-
Constructor Details
-
OrderedChunkUtils
public OrderedChunkUtils()
-
-
Method Details
-
findInChunk
Finds the insertion point inchunk
forvalue
.- Parameters:
chunk
- to search throughvalue
- 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 inchunk
forvalue
.- Parameters:
chunk
- to search throughvalue
- the value to findstartOffset
- the minimum offset allowedendOffsetExclusive
- the offset just beyond the maximum allowed- Returns:
- The insertion point in
[startOffset, endOffsetExclusive)
.
-