Skip to content

Commit 9e62494

Browse files
committed
Fielddata: Move getTermsEnum from AtomicFieldData to BytesValues.WithOrdinals.
Similarly to `SortedSetDocValues.termsEnum()`. Relates to elastic#6524
1 parent 9b02b50 commit 9e62494

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@
3434
* A general {@link org.apache.lucene.index.TermsEnum} to iterate over terms from a {@link AtomicFieldData.WithOrdinals}
3535
* instance.
3636
*/
37-
public class AtomicFieldDataWithOrdinalsTermsEnum extends TermsEnum {
37+
public class BytesValuesWithOrdinalsTermsEnum extends TermsEnum {
3838

3939
private final BytesValues.WithOrdinals bytesValues;
4040
private final long maxOrd;
4141

4242
private long currentOrd = BytesValues.WithOrdinals.MISSING_ORDINAL;
4343
private BytesRef currentTerm;
4444

45-
public AtomicFieldDataWithOrdinalsTermsEnum(AtomicFieldData.WithOrdinals afd) {
46-
this.bytesValues = afd.getBytesValues();
45+
public BytesValuesWithOrdinalsTermsEnum(BytesValues.WithOrdinals bytesValues) {
46+
this.bytesValues = bytesValues;
4747
this.maxOrd = bytesValues.getMaxOrd();
4848
}
4949

0 commit comments

Comments
 (0)