public abstract class BLSpans
extends org.apache.lucene.search.spans.Spans
Modifier and Type | Field and Description |
---|---|
protected boolean |
childClausesCaptureGroups
Should we ask our clauses for captured groups? If the clauses don't capture
any groups, this will be set to false to improve performance.
|
static int |
MAX_UNLIMITED |
Constructor and Description |
---|
BLSpans() |
Modifier and Type | Method and Description |
---|---|
int |
advanceStartPosition(int target)
Advance the start position in the current doc to target or beyond.
|
long |
cost() |
abstract void |
getCapturedGroups(Span[] capturedGroups)
Get the start and end position for the captured groups contained in this
BLSpans (sub)tree.
|
static BLSpans |
optSortUniq(BLSpans spans,
boolean sort,
boolean removeDuplicates) |
protected abstract void |
passHitQueryContextToClauses(HitQueryContext context)
Called by setHitQueryContext() to pass the context to child clauses.
|
void |
setHitQueryContext(HitQueryContext context)
Give the BLSpans tree a way to access captured groups, and the capture groups
themselves a way to register themselves..
|
asTwoPhaseIterator, collect, doCurrentSpans, doStartCurrentDoc, endPosition, nextStartPosition, positionsCost, startPosition, toString, width
public static final int MAX_UNLIMITED
protected boolean childClausesCaptureGroups
public void setHitQueryContext(HitQueryContext context)
context
- the hit query context, that e.g. keeps track of captured
groupsprotected abstract void passHitQueryContextToClauses(HitQueryContext context)
context
- the hit query context, that e.g. keeps track of captured
groupspublic abstract void getCapturedGroups(Span[] capturedGroups)
capturedGroups
- an array the size of the total number of groups in the
query; the start and end positions for the groups in this subtree
will be placed in here.public int advanceStartPosition(int target) throws IOException
target
- target start position to advance toIOException
- on errorpublic long cost()
cost
in class org.apache.lucene.search.DocIdSetIterator
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.