mirror of https://github.com/apache/lucene.git
LUCENE-9026: Add getters to DocValuesTermsQuery
This commit is contained in:
parent
7a207a9353
commit
174cc63bad
|
@ -167,6 +167,20 @@ public class DocValuesTermsQuery extends Query implements Accountable {
|
|||
return builder.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the name of the field searched by this query.
|
||||
*/
|
||||
public String getField() {
|
||||
return field;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the terms looked up by this query, prefix-encoded.
|
||||
*/
|
||||
public PrefixCodedTerms getTerms() {
|
||||
return termData;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long ramBytesUsed() {
|
||||
return BASE_RAM_BYTES +
|
||||
|
|
Loading…
Reference in New Issue