Skip to content

Commit

Permalink
Minor refactoring - reverting making a field public
Browse files Browse the repository at this point in the history
Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
  • Loading branch information
sandeshkr419 committed Jan 24, 2024
1 parent a5b3baa commit e4e0b3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public GlobalOrdinalsStringTermsAggregator(
return new DenseGlobalOrds();
});
}
this.fieldName = ((ValuesSource.Bytes.WithOrdinals.FieldData) valuesSource).indexFieldData.getFieldName();
this.fieldName = ((ValuesSource.Bytes.WithOrdinals.FieldData) valuesSource).getIndexFieldName();
}

String descriptCollectionStrategy() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,16 @@ public long globalMaxOrd(IndexSearcher indexSearcher) throws IOException {
*/
public static class FieldData extends WithOrdinals {

public final IndexOrdinalsFieldData indexFieldData;
protected final IndexOrdinalsFieldData indexFieldData;

public FieldData(IndexOrdinalsFieldData indexFieldData) {
this.indexFieldData = indexFieldData;
}

public String getIndexFieldName() {
return this.indexFieldData.getFieldName();
}

@Override
public SortedBinaryDocValues bytesValues(LeafReaderContext context) {
final LeafOrdinalsFieldData atomicFieldData = indexFieldData.load(context);
Expand Down

0 comments on commit e4e0b3c

Please sign in to comment.