Uses of Class
org.apache.solr.common.cloud.DocCollection
-
Packages that use DocCollection Package Description org.apache.solr.client.solrj.cloud Common classes for SolrCloud.org.apache.solr.client.solrj.impl Concrete implementations of client API classes.org.apache.solr.client.solrj.request Convenience classes for dealing with various types of Solr requests.org.apache.solr.common.cloud Common Solr Cloud and ZooKeeper related classes reused on both clients & server. -
-
Uses of DocCollection in org.apache.solr.client.solrj.cloud
Methods in org.apache.solr.client.solrj.cloud that return DocCollection Modifier and Type Method Description DocCollectionDelegatingClusterStateProvider. getCollection(String name) -
Uses of DocCollection in org.apache.solr.client.solrj.impl
Methods in org.apache.solr.client.solrj.impl that return DocCollection Modifier and Type Method Description default DocCollectionClusterStateProvider. getCollection(String name)protected DocCollectionCloudSolrClient. getDocCollection(String collection, Integer expectedVersion)Methods in org.apache.solr.client.solrj.impl with parameters of type DocCollection Modifier and Type Method Description protected Map<String,LBSolrClient.Req>CloudLegacySolrClient. createRoutes(UpdateRequest updateRequest, ModifiableSolrParams routableParams, DocCollection col, DocRouter router, Map<String,List<String>> urlMap, String idField)Deprecated.protected Map<String,? extends LBSolrClient.Req>CloudSolrClient. createRoutes(UpdateRequest updateRequest, ModifiableSolrParams routableParams, DocCollection col, DocRouter router, Map<String,List<String>> urlMap, String routeField)Method parameters in org.apache.solr.client.solrj.impl with type arguments of type DocCollection Modifier and Type Method Description voidCloudSolrClient. waitForState(String collection, long wait, TimeUnit unit, Predicate<DocCollection> predicate)Block until a Predicate returns true, or the wait times out -
Uses of DocCollection in org.apache.solr.client.solrj.request
Methods in org.apache.solr.client.solrj.request with parameters of type DocCollection Modifier and Type Method Description Map<String,LBSolrClient.Req>UpdateRequest. getRoutesToCollection(DocRouter router, DocCollection col, Map<String,List<String>> urlMap, ModifiableSolrParams params, String idField) -
Uses of DocCollection in org.apache.solr.common.cloud
Methods in org.apache.solr.common.cloud that return DocCollection Modifier and Type Method Description DocCollectionDocCollection. copyWith(PerReplicaStates newPerReplicaStates)Update our state with a state of aReplicaUsed to create a new Collection State when only a replica is updatedDocCollectionDocCollection. copyWithSlices(Map<String,Slice> slices)Use this to make an exact copy of DocCollection with a new set of Slices and every other property as isDocCollectionClusterState.CollectionRef. get()Return the DocCollection, always refetching if lazy.DocCollectionClusterState.CollectionRef. get(boolean allowCached)Return the DocCollectionDocCollectionClusterState. getCollection(String collection)Get the named DocCollection object, or throw an exception if it doesn't exist.DocCollectionZkStateReader. getCollection(String collection)DocCollectionZkStateReader. getCollectionLive(String coll)DocCollectionClusterState. getCollectionOrNull(String collectionName)Returns the correspondingDocCollectionobject for the given collection name if such a collection exists.DocCollectionClusterState. getCollectionOrNull(String collectionName, boolean allowCached)Returns the correspondingDocCollectionobject for the given collection name if such a collection exists.DocCollectionZkStateReader. waitForState(String collection, long wait, TimeUnit unit, Predicate<DocCollection> predicate)Block until a Predicate returns true, or the wait times outMethods in org.apache.solr.common.cloud that return types with arguments of type DocCollection Modifier and Type Method Description Map<String,DocCollection>ClusterState. getCollectionsMap()Get a map of collection name vs DocCollection objectsMethods in org.apache.solr.common.cloud with parameters of type DocCollection Modifier and Type Method Description ClusterStateClusterState. copyWith(String collectionName, DocCollection collection)Returns a new cluster state object modified with the given collection.ReplicaZkStateReader. getLeader(Set<String> liveNodes, DocCollection docCollection, String shard)StringDocRouter. getRouteField(DocCollection coll)DocRouter.RangeCompositeIdRouter. getSearchRangeSingle(String shardKey, SolrParams params, DocCollection collection)DocRouter.RangeDocRouter. getSearchRangeSingle(String shardKey, SolrParams params, DocCollection collection)This method is consulted to determine what search range (the part of the hash ring) should be queried for a request when an explicit shards parameter was not used.Collection<Slice>DocRouter. getSearchSlices(String shardKeys, SolrParams params, DocCollection collection)This method is consulted to determine what slices should be queried for a request when an explicit shards parameter was not used.Collection<Slice>CompositeIdRouter. getSearchSlicesSingle(String shardKey, SolrParams params, DocCollection collection)abstract Collection<Slice>DocRouter. getSearchSlicesSingle(String shardKey, SolrParams params, DocCollection collection)This method is consulted to determine what slices should be queried for a request when an explicit shards parameter was not used.Collection<Slice>HashBasedRouter. getSearchSlicesSingle(String shardKey, SolrParams params, DocCollection collection)Collection<Slice>ImplicitDocRouter. getSearchSlicesSingle(String shardKey, SolrParams params, DocCollection collection)SliceCompositeIdRouter. getTargetSlice(String id, SolrInputDocument sdoc, String route, SolrParams params, DocCollection collection)abstract SliceDocRouter. getTargetSlice(String id, SolrInputDocument sdoc, String route, SolrParams params, DocCollection collection)Returns the Slice that the document should reside on, or null if there is not enough informationSliceHashBasedRouter. getTargetSlice(String id, SolrInputDocument sdoc, String route, SolrParams params, DocCollection collection)SliceImplicitDocRouter. getTargetSlice(String id, SolrInputDocument sdoc, String route, SolrParams params, DocCollection collection)protected SliceHashBasedRouter. hashToSlice(int hash, DocCollection collection)static booleanDocCollection. isFullyActive(Set<String> liveNodes, DocCollection collectionState, int expectedShards, int expectedReplicas)Check that all replicas in a collection are liveabstract booleanDocRouter. isTargetSlice(String id, SolrInputDocument sdoc, SolrParams params, String shardId, DocCollection collection)booleanHashBasedRouter. isTargetSlice(String id, SolrInputDocument sdoc, SolrParams params, String shardId, DocCollection collection)booleanImplicitDocRouter. isTargetSlice(String id, SolrInputDocument sdoc, SolrParams params, String shardId, DocCollection collection)booleanCollectionStatePredicate. matches(Set<String> liveNodes, DocCollection collectionState)Check if the set of liveNodes and the collection state matches a required statestatic PerReplicaStatesOpsPerReplicaStatesOps. modifyCollection(DocCollection coll, boolean enable, PerReplicaStates rs)Switch a collection from/to perReplicaState=truebooleanCollectionStateWatcher. onStateChanged(Set<String> liveNodes, DocCollection collectionState)Called when either the collection we are registered against has a change of state or there is a change to the live nodes of our collection.booleanDocCollectionWatcher. onStateChanged(DocCollection collection)Called when the collection we are registered against has a change of state.intCompositeIdRouter. sliceHash(String id, SolrInputDocument doc, SolrParams params, DocCollection collection)intHashBasedRouter. sliceHash(String id, SolrInputDocument sdoc, SolrParams params, DocCollection collection)Method parameters in org.apache.solr.common.cloud with type arguments of type DocCollection Modifier and Type Method Description voidClusterState. forEachCollection(Consumer<DocCollection> consumer)Iterate over collections.DocCollectionZkStateReader. waitForState(String collection, long wait, TimeUnit unit, Predicate<DocCollection> predicate)Block until a Predicate returns true, or the wait times outConstructors in org.apache.solr.common.cloud with parameters of type DocCollection Constructor Description CollectionRef(DocCollection coll)Constructor parameters in org.apache.solr.common.cloud with type arguments of type DocCollection Constructor Description ClusterState(Set<String> liveNodes, Map<String,DocCollection> collectionStates)Use this constr when ClusterState is meant for consumption.
-