Class SimpleZkMap

  • All Implemented Interfaces:
    org.apache.solr.cluster.api.SimpleMap<org.apache.solr.cluster.api.Resource>, org.apache.solr.common.MapSerializable, org.apache.solr.common.MapWriter, org.apache.solr.common.NavigableObject

    public class SimpleZkMap
    extends Object
    implements org.apache.solr.cluster.api.SimpleMap<org.apache.solr.cluster.api.Resource>
    A view of ZK as a SimpleMap impl. This gives a flat view of all paths instead of a tree view eg: a, b, c , a/a1, a/a2, a/a1/aa1 etc If possible, use the abortableForEach(BiFunction) to traverse DO not use the size() method. It always return 0 because it is very expensive to compute that
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter

        org.apache.solr.common.MapWriter.EntryWriter
    • Field Summary

      • Fields inherited from interface org.apache.solr.common.MapWriter

        EMPTY
    • Method Detail

      • get

        public org.apache.solr.cluster.api.Resource get​(String key)
        Specified by:
        get in interface org.apache.solr.cluster.api.SimpleMap<org.apache.solr.cluster.api.Resource>
      • abortableForEach

        public void abortableForEach​(BiFunction<String,​? super org.apache.solr.cluster.api.Resource,​Boolean> fun)
        Specified by:
        abortableForEach in interface org.apache.solr.cluster.api.SimpleMap<org.apache.solr.cluster.api.Resource>
      • forEachEntry

        public void forEachEntry​(BiConsumer<String,​? super org.apache.solr.cluster.api.Resource> fun)
        Specified by:
        forEachEntry in interface org.apache.solr.cluster.api.SimpleMap<org.apache.solr.cluster.api.Resource>
      • size

        public int size()
        Specified by:
        size in interface org.apache.solr.cluster.api.SimpleMap<org.apache.solr.cluster.api.Resource>