mirror of https://github.com/apache/lucene.git
LUCENE-5949: add addresses child to binary fieldcacheimpl, add some missing unmodifiable()
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1625357 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
21bb022d62
commit
ae6213c05c
|
@ -32,6 +32,7 @@ import org.apache.lucene.util.PagedBytes;
|
|||
import org.apache.lucene.util.packed.MonotonicBlockPackedReader;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
|
@ -283,7 +284,7 @@ public class FixedGapTermsIndexReader extends TermsIndexReaderBase {
|
|||
if (termsDictOffsets != null) {
|
||||
resources.add(Accountables.namedAccountable("offsets", termsDictOffsets));
|
||||
}
|
||||
return resources;
|
||||
return Collections.unmodifiableList(resources);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -757,7 +757,8 @@ class FieldCacheImpl implements FieldCache {
|
|||
public Iterable<? extends Accountable> getChildResources() {
|
||||
List<Accountable> resources = new ArrayList<>();
|
||||
resources.add(Accountables.namedAccountable("term bytes", bytes));
|
||||
return resources;
|
||||
resources.add(Accountables.namedAccountable("addresses", docToOffset));
|
||||
return Collections.unmodifiableList(resources);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue