protected abstract static class ScanningQueryEngine.RowFilterSupplier extends Object implements NodeSequence.RowFilter
NodeSequence.RowFilter
implementation that lazily initializes the real RowFilter implementation the first time it's needed and
thereafter will simply delegate to the implementation.Modifier | Constructor and Description |
---|---|
protected |
RowFilterSupplier() |
Modifier and Type | Method and Description |
---|---|
protected abstract NodeSequence.RowFilter |
createFilter()
Instantiate the RowFilter that will be used.
|
protected NodeSequence.RowFilter |
delegate() |
boolean |
isCurrentRowValid(NodeSequence.Batch batch)
Determine if the current row in the given batch satisfies the filter and should be included in the results.
|
String |
toString() |
public final boolean isCurrentRowValid(NodeSequence.Batch batch)
NodeSequence.RowFilter
Implementations should never call NodeSequence.Batch.hasNext()
or NodeSequence.Batch.nextRow()
.
isCurrentRowValid
in interface NodeSequence.RowFilter
batch
- the batch that is at a valid rowprotected final NodeSequence.RowFilter delegate()
protected abstract NodeSequence.RowFilter createFilter()
isCurrentRowValid(NodeSequence.Batch)
is called from multiple threads.Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.