@Override public Collection<Accountable> getChildResources() { List<Accountable> resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("offsets", endOffsets)); resources.add(Accountables.namedAccountable("ordinals", ords)); return Collections.unmodifiableCollection(resources); }
@Override public Collection<Accountable> getChildResources() { List<Accountable> resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("ordinals", ordinals)); resources.add(Accountables.namedAccountable("term bytes", bytes)); resources.add(Accountables.namedAccountable("term offsets", termOrdToBytesOffset)); return Collections.unmodifiableList(resources); }
Accountable readRamTree(StreamInput in) throws IOException { final String name = in.readString(); final long bytes = in.readVLong(); int numChildren = in.readVInt(); if (numChildren == 0) { return Accountables.namedAccountable(name, bytes); } List<Accountable> children = new ArrayList(numChildren); while (numChildren-- > 0) { children.add(readRamTree(in)); } return Accountables.namedAccountable(name, children, bytes); }
@Override public Collection<Accountable> getChildResources() { List<Accountable> resources = new ArrayList<>(); if (lookupFactory != null) { resources.add(Accountables.namedAccountable("lookup", lookupFactory)); } resources.add(Accountables.namedAccountable("delegate", delegateProducer)); return Collections.unmodifiableList(resources); }
@Override public Collection<Accountable> getChildResources() { if (fst != null) { return Collections.singleton(Accountables.namedAccountable("fst", fst)); } else { return Collections.emptyList(); } }
@Override public Collection<Accountable> getChildResources() { List<Accountable> resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("indexedPoints", indexedPoint)); if (set != null) { resources.add(Accountables.namedAccountable("missing bitset", set)); } return Collections.unmodifiableList(resources); }
@Override public Collection<Accountable> getChildResources() { List<Accountable> resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("latitude", lat)); resources.add(Accountables.namedAccountable("longitude", lon)); return Collections.unmodifiableList(resources); }
@Override public Collection<Accountable> getChildResources() { List<Accountable> resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("latitude", lat)); resources.add(Accountables.namedAccountable("longitude", lon)); if (set != null) { resources.add(Accountables.namedAccountable("missing bitset", set)); } return Collections.unmodifiableList(resources); }
@Override public Collection<Accountable> getChildResources() { return Collections.singleton(Accountables.namedAccountable("delegate", in)); }
@Override public Collection<Accountable> getChildResources() { return Collections.singleton(Accountables.namedAccountable("reader", reader)); }
@Override public Collection<Accountable> getChildResources() { List<Accountable> resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("indexedPoints", indexedPoints)); return Collections.unmodifiableList(resources); }
@Override public Collection<Accountable> getChildResources() { return Collections.singleton(Accountables.namedAccountable("file", file)); }
@Override public Collection<Accountable> getChildResources() { return Accountables.namedAccountables("file", fileMap); }
/** {@inheritDoc} */ @Override public Collection<Accountable> getChildResources() { return Collections.singleton(Accountables.namedAccountable("file", file)); }
/** {@inheritDoc} */ @Override public synchronized Collection<Accountable> getChildResources() { return Accountables.namedAccountables("file", new HashMap<>(fileMap)); }