Class CopyKernel.Utils
java.lang.Object
io.deephaven.engine.table.impl.util.copy.CopyKernel.Utils
- Enclosing interface:
- CopyKernel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
nextSetBit
(long[] words, int fromIndex, int endIndex, boolean flipWords) Returns the index of the first bit that is set totrue
that occurs on or after the specified starting index and up to but not including the specified word rowSet.
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
nextSetBit
public static int nextSetBit(long[] words, int fromIndex, int endIndex, boolean flipWords) Returns the index of the first bit that is set totrue
that occurs on or after the specified starting index and up to but not including the specified word rowSet.If no such bit exists then
endIndex
is returned.- Parameters:
words
- the bitset data arrayfromIndex
- the index to start checking from (inclusive)endIndex
- the index to stop checking from (exclusive)flipWords
- if true return first false bit set instead of the first true bit set- Returns:
- the index of the next set bit, any value
>= endIndex
is returned if no such bit exists
-