Package org.apache.solr.common.cloud
Class ClusterState.CollectionRef
- java.lang.Object
-
- org.apache.solr.common.cloud.ClusterState.CollectionRef
-
- Enclosing class:
- ClusterState
public static class ClusterState.CollectionRef extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected AtomicInteger
gets
-
Constructor Summary
Constructors Constructor Description CollectionRef(DocCollection coll)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocCollection
get()
Return the DocCollection, always refetching if lazy.DocCollection
get(boolean allowCached)
Return the DocCollectionint
getCount()
boolean
isLazilyLoaded()
String
toString()
-
-
-
Field Detail
-
gets
protected final AtomicInteger gets
-
-
Constructor Detail
-
CollectionRef
public CollectionRef(DocCollection coll)
-
-
Method Detail
-
getCount
public int getCount()
-
get
public DocCollection get()
Return the DocCollection, always refetching if lazy. Equivalent to get(false)- Returns:
- The collection state modeled in zookeeper
-
get
public DocCollection get(boolean allowCached)
Return the DocCollection- Parameters:
allowCached
- Determines if cached value can be used. Applies only to LazyCollectionRef.- Returns:
- The collection state modeled in zookeeper
-
isLazilyLoaded
public boolean isLazilyLoaded()
-
-