assert sub == LeafBucketCollector.NO_OP_COLLECTOR; final SortedDocValues singleValues = DocValues.unwrapSingleton(segmentOrds); mapping = valuesSource.globalOrdinalsMapping(ctx); if (singleValues != null) { return new LeafBucketCollectorBase(sub, segmentOrds) {
assert sub == LeafBucketCollector.NO_OP_COLLECTOR; final SortedDocValues singleValues = DocValues.unwrapSingleton(segmentOrds); mapping = valuesSource.globalOrdinalsMapping(ctx); if (singleValues != null) { return new LeafBucketCollectorBase(sub, segmentOrds) {
@Override public LongUnaryOperator globalOrdinalsMapping(LeafReaderContext context) throws IOException { return getGlobalMapping(valuesSource.ordinalsValues(context), valuesSource.globalOrdinalsValues(context), valuesSource.globalOrdinalsMapping(context), missing); } };
@Override public LongUnaryOperator globalOrdinalsMapping(LeafReaderContext context) throws IOException { return getGlobalMapping(valuesSource.ordinalsValues(context), valuesSource.globalOrdinalsValues(context), valuesSource.globalOrdinalsMapping(context), missing); } };
assert sub == LeafBucketCollector.NO_OP_COLLECTOR; final SortedDocValues singleValues = DocValues.unwrapSingleton(segmentOrds); mapping = valuesSource.globalOrdinalsMapping(ctx); if (singleValues != null) { return new LeafBucketCollectorBase(sub, segmentOrds) {
@Override public LongUnaryOperator globalOrdinalsMapping(LeafReaderContext context) throws IOException { return getGlobalMapping(valuesSource.ordinalsValues(context), valuesSource.globalOrdinalsValues(context), valuesSource.globalOrdinalsMapping(context), missing); } };