public class Row extends Object implements MapWriter
MapWriter.EntryWriter| 限定符和类型 | 字段和说明 |
|---|---|
static Map<String,org.apache.solr.client.solrj.cloud.autoscaling.Row.CacheEntry> |
cacheStats |
Map<String,Map<String,List<ReplicaInfo>>> |
collectionVsShardVsReplicas |
String |
node |
| 构造器和说明 |
|---|
Row(String node,
Cell[] cells,
boolean anyValueMissing,
Map<String,Map<String,List<ReplicaInfo>>> collectionVsShardVsReplicas,
boolean isLive,
Policy.Session session,
Map perRowCache,
Map globalCache) |
Row(String node,
List<Pair<String,Variable.Type>> params,
List<String> perReplicaAttributes,
Policy.Session session) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _sizepublic final String node
public Map<String,Map<String,List<ReplicaInfo>>> collectionVsShardVsReplicas
public Row(String node, List<Pair<String,Variable.Type>> params, List<String> perReplicaAttributes, Policy.Session session)
public void forEachShard(String collection, BiConsumer<String,List<ReplicaInfo>> consumer)
public <R> R computeCacheIfAbsent(String cacheName, Function<Object,R> supplier)
public <R> R computeCacheIfAbsent(String coll, String shard, String cacheName, Object key, Function<Object,R> supplier)
public void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap 在接口中 MapWriterIOExceptionpublic Row addReplica(String coll, String shard, Replica.Type type)
public Row addReplica(String coll, String shard, Replica.Type type, boolean strictMode)
public ReplicaInfo getReplica(String coll, String shard, Replica.Type type)
public Row removeReplica(String coll, String shard, Replica.Type type)
public Row removeReplica(String coll, String shard, Replica.Type type, int recursionCount)
public Cell[] getCells()
public boolean isLive()
public void forEachReplica(Consumer<ReplicaInfo> consumer)
public void forEachReplica(String coll, Consumer<ReplicaInfo> consumer)
public static void forEachReplica(Map<String,Map<String,List<ReplicaInfo>>> collectionVsShardVsReplicas, Consumer<ReplicaInfo> consumer)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.