public class ParallelSlidingResultsAssembler extends DefaultResultsAssembler implements ResultsAssembler
futures before returning
results, the graphs being assembled by individual
GraphAssemblerCallable instances rather than by reusing the same
assembler.
Determines whether results can be ignored under the current context then "slides" past results not within the given range, avoiding the overhead of assembling a graph. When a graph recognizer is present for the current context, no result can be bypassed as the recognizer requires an assembled graph to evaluate and make its determination.
GraphAssemblerCallable,
HBaseGraphAssembler,
Expr,
GraphRecognizerContext,
GraphAssemblerFactory,
FutureendRange, ignoredResults, ignoredResultsPreceedingRange, orderingComparator, range, resultEndRangeReached, rootTableReader, startRange, unrecognizedResults, whereContext, whereSyntaxTree| Constructor and Description |
|---|
ParallelSlidingResultsAssembler(Expr graphRecognizerRootExpr,
Comparator<org.plasma.sdo.PlasmaDataGraph> orderingComparator,
TableReader rootTableReader,
GraphAssemblerFactory assemblerFactory,
Integer startRange,
Integer endRange,
ThreadPoolMappingProps poolProps) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
collect(org.apache.hadoop.hbase.client.Result resultRow)
Determines whether the given row is to be added to the underlying
collection returning true if the given row is added and false if the given
row is not added.
|
org.plasma.sdo.PlasmaDataGraph |
getCurrentResult() |
org.plasma.sdo.PlasmaDataGraph[] |
getResults()
Returns results
|
int |
size()
Returns the current size of the collection
|
canIgnoreResults, currentResultIgnored, getIgnoredResults, getUnrecognizedResults, hasRange, isResultEndRangeReached, serializeGraphclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanIgnoreResults, currentResultIgnored, getIgnoredResults, getUnrecognizedResults, isResultEndRangeReachedpublic ParallelSlidingResultsAssembler(Expr graphRecognizerRootExpr, Comparator<org.plasma.sdo.PlasmaDataGraph> orderingComparator, TableReader rootTableReader, GraphAssemblerFactory assemblerFactory, Integer startRange, Integer endRange, ThreadPoolMappingProps poolProps)
public boolean collect(org.apache.hadoop.hbase.client.Result resultRow)
throws IOException
ResultsAssemblercollect in interface ResultsAssemblerresultRow - the rowIOExceptionpublic int size()
ResultsAssemblersize in interface ResultsAssemblerpublic org.plasma.sdo.PlasmaDataGraph[] getResults()
ResultsAssemblergetResults in interface ResultsAssemblerpublic org.plasma.sdo.PlasmaDataGraph getCurrentResult()
getCurrentResult in interface ResultsAssemblerCopyright © 2021. All Rights Reserved.