Package com.hazelcast.vector
Interface VectorCollectionService
- All Superinterfaces:
com.hazelcast.internal.services.ManagedService
,com.hazelcast.internal.memory.Measurable
,com.hazelcast.internal.services.RemoteService
public interface VectorCollectionService
extends com.hazelcast.internal.services.ManagedService, com.hazelcast.internal.services.RemoteService, com.hazelcast.internal.memory.Measurable
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
attachStorage
(com.hazelcast.vector.impl.storage.VectorCollectionStorage collectionStorage) Attaches previously created storage to the service and makes it visible viagetStorage(java.lang.String, int)
orgetStorageOrNull(java.lang.String, int)
.com.hazelcast.vector.impl.storage.VectorCollectionStorage
createStorage
(String vectorCollectionName, int partitionId) CreatesVectorCollectionStorage
but does not make it visible to others viagetStorage(java.lang.String, int)
orgetStorageOrNull(java.lang.String, int)
.com.hazelcast.vector.impl.query.Searcher
getSearcher
(String vectorCollectionName, com.hazelcast.vector.SearchOptions options) Provides searcher instance for given collection and options.com.hazelcast.vector.impl.stats.LocalVectorCollectionStatsImpl
getStatistics
(String vectorCollectionName) Provides statistics object instance for given vector collection.com.hazelcast.vector.impl.storage.VectorCollectionStorage
getStorage
(String vectorCollectionName, int partitionId) Returns storage for vector collection partition, creating it if neededcom.hazelcast.vector.impl.storage.VectorCollectionStorage
getStorageOrNull
(String vectorCollectionName, int partitionId) Returns storage for vector collection partition or null if the collection or partition does not exist.long
heapBytesUsed
(String vectorCollectionName) Returns the estimated number of bytes used on the JVM heap by the designated collection.long
Methods inherited from interface com.hazelcast.internal.services.ManagedService
init, reset, shutdown
Methods inherited from interface com.hazelcast.internal.memory.Measurable
heapBytesUsed
Methods inherited from interface com.hazelcast.internal.services.RemoteService
createDistributedObject, createDistributedObject, destroyDistributedObject, destroyDistributedObject
-
Field Details
-
SERVICE_NAME
service name- See Also:
-
-
Method Details
-
getStorage
@Nonnull com.hazelcast.vector.impl.storage.VectorCollectionStorage getStorage(String vectorCollectionName, int partitionId) Returns storage for vector collection partition, creating it if needed -
getStorageOrNull
@Nullable com.hazelcast.vector.impl.storage.VectorCollectionStorage getStorageOrNull(String vectorCollectionName, int partitionId) Returns storage for vector collection partition or null if the collection or partition does not exist. -
createStorage
@Nonnull com.hazelcast.vector.impl.storage.VectorCollectionStorage createStorage(String vectorCollectionName, int partitionId) CreatesVectorCollectionStorage
but does not make it visible to others viagetStorage(java.lang.String, int)
orgetStorageOrNull(java.lang.String, int)
. -
attachStorage
void attachStorage(@Nonnull com.hazelcast.vector.impl.storage.VectorCollectionStorage collectionStorage) Attaches previously created storage to the service and makes it visible viagetStorage(java.lang.String, int)
orgetStorageOrNull(java.lang.String, int)
.- See Also:
-
getSearcher
@Nonnull com.hazelcast.vector.impl.query.Searcher getSearcher(String vectorCollectionName, com.hazelcast.vector.SearchOptions options) Provides searcher instance for given collection and options. This method may reuse the same instance if that is safe. -
getStatistics
@Nonnull com.hazelcast.vector.impl.stats.LocalVectorCollectionStatsImpl getStatistics(String vectorCollectionName) Provides statistics object instance for given vector collection. The instance is shared by all partitions. This method is intended to be used for updating the statistics. It is cheap but returned object does not have up-to-date on-demand calculated statistics (eg. size of heap usage). -
heapBytesUsed
Returns the estimated number of bytes used on the JVM heap by the designated collection.- Parameters:
vectorCollectionName
- name of the collection for which heap usage estimation is requested- Returns:
- estimated number of bytes used on the JVM heap
- See Also:
-
Measurable.heapBytesUsed()
-
localSize
- Returns:
- number of entries owned by this member
-
getAllExistingVectorCollectionNames
- Returns:
- names of known existing
VectorCollection
s
-