Class OrderedChunkUtils
java.lang.Object
com.illumon.iris.db.v2.sources.chunk.OrderedChunkUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <ATTR extends Attributes.Any>
intfindInChunk(LongChunk<ATTR> chunk, long value) Finds the insertion point inchunkforvalue.static <ATTR extends Attributes.Any>
intfindInChunk(LongChunk<ATTR> chunk, long value, int startOffset, int endOffsetExclusive) Finds the insertion point inchunkforvalue.
-
Constructor Details
-
OrderedChunkUtils
public OrderedChunkUtils()
-
-
Method Details
-
findInChunk
Finds the insertion point inchunkforvalue.- Parameters:
chunk- to search throughvalue- the value to find- Returns:
- The insertion point in
[0, chunk.size()).
-
findInChunk
public static <ATTR extends Attributes.Any> int findInChunk(LongChunk<ATTR> chunk, long value, int startOffset, int endOffsetExclusive) Finds the insertion point inchunkforvalue.- 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).
-