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
ConstructorDescriptionCreates a new, emptyVectorCollectionConfig
.Constructs a newVectorCollectionConfig
instance 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.boolean
int
Returns type identifier for this class.int
Returns 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.int
hashCode()
void
Reads fields from the input streamSets the name of the VectorCollection.void
setVectorIndexConfigs
(List<VectorIndexConfig> vectorIndexConfigs) Sets the list ofVectorIndexConfig
instances for this vector collection configuration.toString()
void
Writes 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 newVectorCollectionConfig
instance by copying the values from the provided configuration.- Parameters:
config
- TheVectorCollectionConfig
instance to copy. It serves as the source of values for the new configuration.
-
-
Method Details
-
setName
Sets the name of the VectorCollection.- Specified by:
setName
in interfaceNamedConfig
- Parameters:
name
- the name to set for this VectorCollection.
-
getName
Returns the name of this VectorCollection- Specified by:
getName
in 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 ofVectorIndexConfig
instances for this vector collection configuration. Clears the existing vector index configurations and replaces them with the provided list.- Parameters:
vectorIndexConfigs
- The list ofVectorIndexConfig
instances to set.
-
writeData
Description copied from interface:DataSerializable
Writes object fields to output stream- Specified by:
writeData
in interfaceDataSerializable
- Parameters:
out
- output- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializable
Reads fields from the input stream- Specified by:
readData
in interfaceDataSerializable
- Parameters:
in
- input- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the input stream has been closed.
-
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializable
Returns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryId
in interfaceIdentifiedDataSerializable
- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializable
Returns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassId
in interfaceIdentifiedDataSerializable
- Returns:
- type ID
-
toString
-
equals
-
hashCode
public int hashCode()
-