Uses of Class
org.apache.solr.common.cloud.DocCollection
Packages that use DocCollection
Package
Description
Implementations of some client API classes, and their friends.
Convenience classes for dealing with various types of Solr requests.
Common Solr Cloud and ZooKeeper related classes reused on both clients & server.
-
Uses of DocCollection in org.apache.solr.client.solrj.impl
Methods in org.apache.solr.client.solrj.impl that return DocCollectionModifier and TypeMethodDescriptionBaseHttpClusterStateProvider.getCollection(String collection) default DocCollectionClusterStateProvider.getCollection(String name) DelegatingClusterStateProvider.getCollection(String name) protected DocCollectionCloudSolrClient.getDocCollection(String collection, Integer expectedVersion) Methods in org.apache.solr.client.solrj.impl with parameters of type DocCollectionModifier and TypeMethodDescriptionprotected 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 DocCollectionModifier and TypeMethodDescriptionCloudSolrClient.requestWithRetryOnStaleState(SolrRequest<?> request, int retryCount, List<String> inputCollections, boolean skipStateVersion, Map<String, CompletableFuture<DocCollection>> pendingRefreshes, boolean waitedForRefresh) As this class doesn't watch external collections on the client side, there's a chance that the request will fail due to cached stale state, which means the state must be refreshed from ZK and retried. -
Uses of DocCollection in org.apache.solr.client.solrj.request
Methods in org.apache.solr.client.solrj.request with parameters of type DocCollectionModifier and TypeMethodDescriptionUpdateRequest.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 DocCollectionModifier and TypeMethodDescriptionstatic DocCollectionClusterState.collectionFromObjects(String name, Map<String, Object> objs, int version, Instant creationTime, DocCollection.PrsSupplier prsSupplier) DocCollection.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 isstatic DocCollectionDocCollection.create(String name, Map<String, Slice> slices, Map<String, Object> props, DocRouter router, int zkVersion, Instant creationTime, DocCollection.PrsSupplier prsSupplier) Builds a DocCollection with an optional PrsSupplierClusterState.CollectionRef.get()Return the DocCollection, always re-fetching if lazy.ClusterState.CollectionRef.get(boolean allowCached) Return the DocCollectionClusterState.getCollection(String collection) Get the named DocCollection object, or throw an exception if it doesn't exist.ClusterState.getCollectionOrNull(String collectionName) Returns the correspondingDocCollectionobject for the given collection name if such a collection exists.ClusterState.getCollectionOrNull(String collectionName, boolean allowCached) Returns the correspondingDocCollectionobject for the given collection name if such a collection exists.final DocCollectionDocCollection.setPerReplicaStates(PerReplicaStates newPerReplicaStates) Update our state with a state of aPerReplicaStateswhich could override states ofReplica.Methods in org.apache.solr.common.cloud that return types with arguments of type DocCollectionModifier and TypeMethodDescriptionClusterState.collectionStream()Streams the resolvedDocCollections, which will often fetch from ZooKeeper for each one for a many-collection scenario.Methods in org.apache.solr.common.cloud with parameters of type DocCollectionModifier and TypeMethodDescriptionClusterState.copyWith(String collectionName, DocCollection collection) Returns a new cluster state object modified with the given collection.static ReplicaCountReplicaCount.fromMessage(ZkNodeProps message, DocCollection collection) static ReplicaCountReplicaCount.fromMessage(ZkNodeProps message, DocCollection collection, Integer defaultReplicationFactor) Creates aReplicaCountfrom a message.DocRouter.getRouteField(DocCollection coll) CompositeIdRouter.getSearchRangeSingle(String shardKey, SolrParams params, DocCollection collection) DocRouter.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.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.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.HashBasedRouter.getSearchSlicesSingle(String shardKey, SolrParams params, DocCollection collection) ImplicitDocRouter.getSearchSlicesSingle(String shardKey, SolrParams params, DocCollection collection) CompositeIdRouter.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 informationHashBasedRouter.getTargetSlice(String id, SolrInputDocument sdoc, String route, SolrParams params, DocCollection collection) ImplicitDocRouter.getTargetSlice(String id, SolrInputDocument sdoc, String route, SolrParams params, DocCollection collection) protected SliceHashBasedRouter.hashToSlice(int hash, DocCollection collection) abstract 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 stateintCompositeIdRouter.sliceHash(String id, SolrInputDocument doc, SolrParams params, DocCollection collection) intHashBasedRouter.sliceHash(String id, SolrInputDocument sdoc, SolrParams params, DocCollection collection) Constructors in org.apache.solr.common.cloud with parameters of type DocCollectionConstructor parameters in org.apache.solr.common.cloud with type arguments of type DocCollectionModifierConstructorDescriptionClusterState(Set<String> liveNodes, Map<String, DocCollection> collectionStates) Use this constr when ClusterState is meant for consumption.