Interface FactsHolder
public interface FactsHolder
IncrementalIndexRow storage interface, a mutable data structure for building up a set or rows to eventually
persist into an immutable segment- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear all rows present in the facts holderlongGet maximumIncrementalIndexRow.getTimestamp()present in the facts holderlongGet minimumIncrementalIndexRow.getTimestamp()present in the facts holderintiterator(boolean descending) Get allIncrementalIndex, depending on the implementation, these rows may or may not be ordered in the same order they will be persisted in.keySet()Get all rowIncrementalIndexRow'keys', which is distinct groups if this is an aggregating facts holder or just every row present if notGet allIncrementalIndexRowto persist, ordered withintputIfAbsent(IncrementalIndexRow key, int rowIndex) timeRangeIterable(boolean descending, long timeStart, long timeEnd) Get allIncrementalIndexRowwithIncrementalIndexRow.getTimestamp()between the start and end timestamps specified
-
Method Details
-
getPriorIndex
- Returns:
- the previous rowIndex associated with the specified key, or
IncrementalIndexRow.EMPTY_ROW_INDEXif there was no mapping for the key.
-
getMinTimeMillis
long getMinTimeMillis()Get minimumIncrementalIndexRow.getTimestamp()present in the facts holder -
getMaxTimeMillis
long getMaxTimeMillis()Get maximumIncrementalIndexRow.getTimestamp()present in the facts holder -
iterator
Get allIncrementalIndex, depending on the implementation, these rows may or may not be ordered in the same order they will be persisted in. UsepersistIterable()if this is required. -
timeRangeIterable
Get allIncrementalIndexRowwithIncrementalIndexRow.getTimestamp()between the start and end timestamps specified -
keySet
Iterable<IncrementalIndexRow> keySet()Get all rowIncrementalIndexRow'keys', which is distinct groups if this is an aggregating facts holder or just every row present if not -
persistIterable
Iterable<IncrementalIndexRow> persistIterable()Get allIncrementalIndexRowto persist, ordered with -
putIfAbsent
- Returns:
- the previous rowIndex associated with the specified key, or
IncrementalIndexRow.EMPTY_ROW_INDEXif there was no mapping for the key.
-
clear
void clear()Clear all rows present in the facts holder
-