public class ResultsAggregator extends DefaultResultsAssembler implements ResultsAssembler
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.
FunctionPath,
Expr,
GraphRecognizerContext| Modifier and Type | Field and Description |
|---|---|
protected org.plasma.sdo.PlasmaDataGraph |
current |
protected Collection<org.plasma.query.collector.FunctionPath> |
funcPaths |
protected HBaseGraphAssembler |
graphAssembler |
protected Map<org.plasma.sdo.PlasmaDataGraph,org.plasma.sdo.PlasmaDataGraph> |
graphs |
protected ResultsComparator |
groupingComparator |
protected GraphRecognizerContext |
havingContext |
protected Expr |
havingSyntaxTree |
protected List<org.plasma.sdo.PlasmaDataGraph> |
result |
protected org.plasma.query.collector.Selection |
selection |
endRange, ignoredResults, ignoredResultsPreceedingRange, orderingComparator, range, resultEndRangeReached, rootTableReader, startRange, unrecognizedResults, whereContext, whereSyntaxTree| Constructor and Description |
|---|
ResultsAggregator(org.plasma.query.collector.Selection selection,
Expr whereSyntaxTree,
ResultsComparator orderingComparator,
ResultsComparator groupingComparator,
Expr havingSyntaxTree,
TableReader rootTableReader,
HBaseGraphAssembler graphAssembler,
Integer startRange,
Integer endRange) |
| 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, isResultEndRangeReachedprotected HBaseGraphAssembler graphAssembler
protected Map<org.plasma.sdo.PlasmaDataGraph,org.plasma.sdo.PlasmaDataGraph> graphs
protected org.plasma.sdo.PlasmaDataGraph current
protected org.plasma.query.collector.Selection selection
protected Collection<org.plasma.query.collector.FunctionPath> funcPaths
protected Expr havingSyntaxTree
protected GraphRecognizerContext havingContext
protected ResultsComparator groupingComparator
protected List<org.plasma.sdo.PlasmaDataGraph> result
public ResultsAggregator(org.plasma.query.collector.Selection selection,
Expr whereSyntaxTree,
ResultsComparator orderingComparator,
ResultsComparator groupingComparator,
Expr havingSyntaxTree,
TableReader rootTableReader,
HBaseGraphAssembler graphAssembler,
Integer startRange,
Integer endRange)
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.