JavaScript is disabled on your browser.
All Superinterfaces:
LongSizedDataStructure
All Known Implementing Classes:
ByteReverseSegmentedSortedArray , ByteSegmentedSortedArray , CharReverseSegmentedSortedArray , CharSegmentedSortedArray , DoubleReverseSegmentedSortedArray , DoubleSegmentedSortedArray , FloatReverseSegmentedSortedArray , FloatSegmentedSortedArray , IntReverseSegmentedSortedArray , IntSegmentedSortedArray , LongReverseSegmentedSortedArray , LongSegmentedSortedArray , NullAwareCharReverseSegmentedSortedArray , NullAwareCharSegmentedSortedArray , ObjectReverseSegmentedSortedArray , ObjectSegmentedSortedArray , ShortReverseSegmentedSortedArray , ShortSegmentedSortedArray
Method Summary
All Methods Static Methods Instance Methods Abstract Methods
void
void
void
Call the longConsumer for each of the long row keys in this SegmentedSortedArray.
long
long
int
void
Insert new valuesToInsert into this SSA.
boolean
void
Remove valuesToRemove from this SSA.
void
Remove the values and indices referenced in stampChunk and indicesToRemove.
Field Details
SEGMENTED_SORTED_ARRAY_VALIDATION
static final boolean SEGMENTED_SORTED_ARRAY_VALIDATION
Method Details
insert
Insert new valuesToInsert into this SSA. The valuesToInsert to insert must be sorted.
Parameters:
valuesToInsert - the valuesToInsert to insert
indicesToInsert - the corresponding indicesToInsert
remove
Remove valuesToRemove from this SSA. The valuesToRemove to remove must be sorted.
Parameters:
valuesToRemove - the valuesToRemove to remove
indicesToRemove - the corresponding indices
removeAndGetPrior
Remove the values and indices referenced in stampChunk and indicesToRemove. Fill priorRedirections with the
redirection value immediately preceding the removed value.
Parameters:
stampChunk - the values to remove
indicesToRemove - the indices (parallel to the values)
priorRedirections - the output prior redirections (parallel to valeus/indices)
getNodeSize
int getNodeSize ()
forAllKeys
Call the longConsumer for each of the long row keys in this SegmentedSortedArray.
Parameters:
longConsumer - the long consumer to call
isReversed
boolean isReversed ()
getFirst
long getFirst ()
Returns:
the first row key in this SSA, RowSet.NULL_ROW_KEY when empty.
getLast
long getLast ()
Returns:
the last row key in this SSA, RowSet.NULL_ROW_KEY when empty.