Package com.hazelcast.config.vector
Class VectorCollectionConfig
java.lang.Object
com.hazelcast.config.vector.VectorCollectionConfig
- All Implemented Interfaces:
NamedConfig,DataSerializable,IdentifiedDataSerializable
@Beta
public class VectorCollectionConfig
extends Object
implements NamedConfig, IdentifiedDataSerializable
Configuration object for a vector collection.
- Since:
- 5.5
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new, emptyVectorCollectionConfig.Constructs a newVectorCollectionConfiginstance by copying the values from the provided configuration.VectorCollectionConfig(String name) Constructs a VectorCollectionConfig with the given name. -
Method Summary
Modifier and TypeMethodDescriptionaddVectorIndexConfig(VectorIndexConfig vectorIndexConfig) Adds a vector index configuration to this vector collection configuration.booleanintReturns type identifier for this class.intReturns DataSerializableFactory factory ID for this class.getName()Returns the name of this VectorCollectionRetrieves the list of vector index configurations associated with this vector collection configuration.inthashCode()voidReads fields from the input streamSets the name of the VectorCollection.voidsetVectorIndexConfigs(List<VectorIndexConfig> vectorIndexConfigs) Sets the list ofVectorIndexConfiginstances for this vector collection configuration.toString()voidWrites object fields to output stream
-
Constructor Details
-
VectorCollectionConfig
public VectorCollectionConfig()Creates a new, emptyVectorCollectionConfig. -
VectorCollectionConfig
Constructs a VectorCollectionConfig with the given name.- Parameters:
name- the name of the vector collection
-
VectorCollectionConfig
Constructs a newVectorCollectionConfiginstance by copying the values from the provided configuration.- Parameters:
config- TheVectorCollectionConfiginstance to copy. It serves as the source of values for the new configuration.
-
-
Method Details
-
setName
Sets the name of the VectorCollection.- Specified by:
setNamein interfaceNamedConfig- Parameters:
name- the name to set for this VectorCollection.
-
getName
Returns the name of this VectorCollection- Specified by:
getNamein interfaceNamedConfig- Returns:
- the name of the VectorCollection
-
addVectorIndexConfig
Adds a vector index configuration to this vector collection configuration.- Parameters:
vectorIndexConfig- the vector index configuration to add- Returns:
- this VectorCollectionConfig instance
-
getVectorIndexConfigs
Retrieves the list of vector index configurations associated with this vector collection configuration.- Returns:
- the list of vector index configurations
-
setVectorIndexConfigs
Sets the list ofVectorIndexConfiginstances for this vector collection configuration. Clears the existing vector index configurations and replaces them with the provided list.- Parameters:
vectorIndexConfigs- The list ofVectorIndexConfiginstances to set.
-
writeData
Description copied from interface:DataSerializableWrites object fields to output stream- Specified by:
writeDatain interfaceDataSerializable- Parameters:
out- output- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializableReads fields from the input stream- Specified by:
readDatain interfaceDataSerializable- Parameters:
in- input- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the input stream has been closed.
-
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializableReturns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryIdin interfaceIdentifiedDataSerializable- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializableReturns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassIdin interfaceIdentifiedDataSerializable- Returns:
- type ID
-
toString
-
equals
-
hashCode
public int hashCode()
-