public final class PossibleRowsHolder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.concurrent.atomic.AtomicBoolean |
ALL_ASSERTS
turn on ALL asserts ( slower)
|
static PossibleRowsHolder |
EMPTY
no rows
|
boolean |
sorted
known to be sorted
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkValid()
Throws an exception if not valid
|
boolean |
contains(long rowUID)
find the position.
|
static PossibleRowsHolder |
create(HashLongMap data)
Create from a hash long map
|
static PossibleRowsHolder |
create(LargeLongArray data) |
static PossibleRowsHolder |
create(long rowId) |
static PossibleRowsHolder |
create(long[][] data,
boolean knownAsSorted) |
static PossibleRowsHolder |
create(long[] rows,
boolean knownAsSorted) |
long[][] |
getData()
All the rows segmented.
|
long[] |
getRows()
Deprecated.
use getData()
|
boolean |
hasRows()
Do we have ANY rows?
|
PossibleRowsHolder |
intersect(PossibleRowsHolder otherRows)
intersect one set with another
|
int |
size()
the size of the rows
|
PossibleRowsHolder |
sort()
Sort the rows.
|
java.lang.String |
toString() |
PossibleRowsHolder |
union(HashLongMap otherMap)
The union of the two possible row sets
|
PossibleRowsHolder |
union(long rowUID)
The union of the two possible row sets
|
PossibleRowsHolder |
union(PossibleRowsHolder otherRows)
The union of the two possible row sets
|
public static final java.util.concurrent.atomic.AtomicBoolean ALL_ASSERTS
public static final PossibleRowsHolder EMPTY
public final boolean sorted
@CheckReturnValue public boolean hasRows()
@CheckReturnValue @Nonnull public long[][] getData()
@Nonnull @CheckReturnValue public java.lang.String toString()
toString
in class java.lang.Object
@CheckReturnValue @Nullable public long[] getRows()
@CheckReturnValue @Nonnegative public int size()
@CheckReturnValue @Nonnull public PossibleRowsHolder union(long rowUID)
rowUID
- another row@CheckReturnValue @Nonnull public PossibleRowsHolder union(@Nullable HashLongMap otherMap)
otherMap
- the other row set map@CheckReturnValue @Nonnull public PossibleRowsHolder union(@Nullable PossibleRowsHolder otherRows)
otherRows
- the other row set@CheckReturnValue @Nonnull public PossibleRowsHolder intersect(@Nonnull PossibleRowsHolder otherRows)
otherRows
- the other row set@CheckReturnValue @Nonnull public PossibleRowsHolder sort()
@CheckReturnValue @Nonnull public static PossibleRowsHolder create(long rowId)
rowId
- the row id@CheckReturnValue @Nonnull public static PossibleRowsHolder create(@Nullable long[] rows, boolean knownAsSorted)
rows
- the rowsknownAsSorted
- true if sorted@CheckReturnValue @Nonnull public static PossibleRowsHolder create(@Nonnull LargeLongArray data)
@CheckReturnValue @Nonnull public static PossibleRowsHolder create(@Nonnull HashLongMap data)
data
- @CheckReturnValue @Nonnull public static PossibleRowsHolder create(@Nullable long[][] data, boolean knownAsSorted)
@CheckReturnValue public boolean contains(long rowUID)
rowUID
- the row to find.public boolean checkValid()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.