public class TextPatternFilterNGrams extends TextPattern
Modifier and Type | Field and Description |
---|---|
protected TextPattern |
clause |
protected int |
max |
protected int |
min |
protected SpanQueryPositionFilter.Operation |
op |
MAX_UNLIMITED
Constructor and Description |
---|
TextPatternFilterNGrams(TextPattern clause,
SpanQueryPositionFilter.Operation op,
int min,
int max) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
TextPattern |
getClause() |
SpanQueryPositionFilter.Operation |
getOperation() |
int |
hashCode() |
String |
toString() |
BLSpanQuery |
translate(QueryExecutionContext context)
Translate this TextPattern into a BLSpanQuery.
|
clausesToString
protected TextPattern clause
protected SpanQueryPositionFilter.Operation op
protected int min
protected int max
public TextPatternFilterNGrams(TextPattern clause, SpanQueryPositionFilter.Operation op, int min, int max)
public BLSpanQuery translate(QueryExecutionContext context) throws InvalidQuery
TextPattern
translate
in class TextPattern
context
- query execution context to useRegexpTooLarge
- if a regular expression was too largeInvalidQuery
- if something else was wrong about the query (e.g. error in regex expression)public boolean equals(Object obj)
equals
in class TextPattern
public SpanQueryPositionFilter.Operation getOperation()
public TextPattern getClause()
public int hashCode()
hashCode
in class TextPattern
public String toString()
toString
in class TextPattern
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.