Java 类org.apache.lucene.util.Accountables 实例源码

项目:elasticsearch_my    文件:MultiOrdinals.java   
@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);
}
项目:elasticsearch_my    文件:PagedBytesAtomicFieldData.java   
@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);
}
项目:elasticsearch_my    文件:Segment.java   
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);
}
项目:Elasticsearch    文件:Completion090PostingsFormat.java   
@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);
}
项目:Elasticsearch    文件:AnalyzingCompletionLookupProvider.java   
@Override
public Collection<Accountable> getChildResources() {
    if (fst != null) {
        return Collections.singleton(Accountables.namedAccountable("fst", fst));
    } else {
        return Collections.emptyList();
    }
}
项目:Elasticsearch    文件:MultiOrdinals.java   
@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);
}
项目:Elasticsearch    文件:PagedBytesAtomicFieldData.java   
@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);
}
项目:Elasticsearch    文件:GeoPointArrayAtomicFieldData.java   
@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);
}
项目:Elasticsearch    文件:GeoPointArrayLegacyAtomicFieldData.java   
@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);
}
项目:Elasticsearch    文件:GeoPointArrayLegacyAtomicFieldData.java   
@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);
}
项目:Elasticsearch    文件:Segment.java   
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);
}
项目:elasticsearch_my    文件:MockBigArrays.java   
@Override
public Collection<Accountable> getChildResources() {
    return Collections.singleton(Accountables.namedAccountable("delegate", in));
}
项目:elasticsearch_my    文件:MockBigArrays.java   
@Override
public Collection<Accountable> getChildResources() {
    return Collections.singleton(Accountables.namedAccountable("delegate", in));
}
项目:elasticsearch_my    文件:MockBigArrays.java   
@Override
public Collection<Accountable> getChildResources() {
    return Collections.singleton(Accountables.namedAccountable("delegate", in));
}
项目:elasticsearch_my    文件:MockBigArrays.java   
@Override
public Collection<Accountable> getChildResources() {
    return Collections.singleton(Accountables.namedAccountable("delegate", in));
}
项目:elasticsearch_my    文件:MockBigArrays.java   
@Override
public Collection<Accountable> getChildResources() {
    return Collections.singleton(Accountables.namedAccountable("delegate", in));
}
项目:elasticsearch_my    文件:MockBigArrays.java   
@Override
public Collection<Accountable> getChildResources() {
    return Collections.singleton(Accountables.namedAccountable("delegate", in));
}
项目:elasticsearch_my    文件:SinglePackedOrdinals.java   
@Override
public Collection<Accountable> getChildResources() {
    return Collections.singleton(Accountables.namedAccountable("reader", reader));
}
项目:Elasticsearch    文件:SinglePackedOrdinals.java   
@Override
public Collection<Accountable> getChildResources() {
    return Collections.singleton(Accountables.namedAccountable("reader", reader));
}
项目:Elasticsearch    文件:GeoPointArrayAtomicFieldData.java   
@Override
public Collection<Accountable> getChildResources() {
    List<Accountable> resources = new ArrayList<>();
    resources.add(Accountables.namedAccountable("indexedPoints", indexedPoints));
    return Collections.unmodifiableList(resources);
}
项目:lucene-hazelcast    文件:HOutputStream.java   
@Override
public Collection<Accountable> getChildResources() {
    return Collections.singleton(Accountables.namedAccountable("file", file));
}
项目:lucene-hazelcast    文件:HazelcastDirectory.java   
@Override
public Collection<Accountable> getChildResources() {
    return Accountables.namedAccountables("file", fileMap);
}
项目:ignite    文件:GridLuceneOutputStream.java   
/** {@inheritDoc} */
@Override public Collection<Accountable> getChildResources() {
    return Collections.singleton(Accountables.namedAccountable("file", file));
}
项目:ignite    文件:GridLuceneDirectory.java   
/** {@inheritDoc} */
@Override public synchronized Collection<Accountable> getChildResources() {
    return Accountables.namedAccountables("file", new HashMap<>(fileMap));
}