LUCENE-9026: Add getters to DocValuesTermsQuery

This commit is contained in:
Jason Gerlowski 2019-11-11 15:17:55 -05:00
parent 7a207a9353
commit 174cc63bad
1 changed files with 14 additions and 0 deletions

View File

@ -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 +