public class TextPatternTerm extends TextPattern
Modifier and Type | Field and Description |
---|---|
protected String |
value |
MAX_UNLIMITED
Constructor and Description |
---|
TextPatternTerm(String value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
org.apache.lucene.index.Term |
getTerm(String fieldName) |
String |
getValue() |
int |
hashCode() |
String |
toString() |
BLSpanQuery |
translate(QueryExecutionContext context)
Translate this TextPattern into a BLSpanQuery.
|
clausesToString
protected String value
public TextPatternTerm(String value)
public String getValue()
public org.apache.lucene.index.Term getTerm(String fieldName)
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 int hashCode()
hashCode
in class TextPattern
public String toString()
toString
in class TextPattern
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.