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 SummaryConstructorsConstructorDescriptionCreates 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 SummaryModifier 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- 
VectorCollectionConfigpublic VectorCollectionConfig()Creates a new, emptyVectorCollectionConfig.
- 
VectorCollectionConfigConstructs a VectorCollectionConfig with the given name.- Parameters:
- name- the name of the vector collection
 
- 
VectorCollectionConfigConstructs a newVectorCollectionConfiginstance by copying the values from the provided configuration.- Parameters:
- config- The- VectorCollectionConfiginstance to copy. It serves as the source of values for the new configuration.
 
 
- 
- 
Method Details- 
setNameSets the name of the VectorCollection.- Specified by:
- setNamein interface- NamedConfig
- Parameters:
- name- the name to set for this VectorCollection.
 
- 
getNameReturns the name of this VectorCollection- Specified by:
- getNamein interface- NamedConfig
- Returns:
- the name of the VectorCollection
 
- 
addVectorIndexConfigAdds a vector index configuration to this vector collection configuration.- Parameters:
- vectorIndexConfig- the vector index configuration to add
- Returns:
- this VectorCollectionConfig instance
 
- 
getVectorIndexConfigsRetrieves the list of vector index configurations associated with this vector collection configuration.- Returns:
- the list of vector index configurations
 
- 
setVectorIndexConfigsSets 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 of- VectorIndexConfiginstances to set.
 
- 
writeDataDescription copied from interface:DataSerializableWrites object fields to output stream- Specified by:
- writeDatain interface- DataSerializable
- Parameters:
- out- output
- Throws:
- IOException- if an I/O error occurs. In particular, an- IOExceptionmay be thrown if the output stream has been closed.
 
- 
readDataDescription copied from interface:DataSerializableReads fields from the input stream- Specified by:
- readDatain interface- DataSerializable
- Parameters:
- in- input
- Throws:
- IOException- if an I/O error occurs. In particular, an- IOExceptionmay be thrown if the input stream has been closed.
 
- 
getFactoryIdpublic int getFactoryId()Description copied from interface:IdentifiedDataSerializableReturns DataSerializableFactory factory ID for this class.- Specified by:
- getFactoryIdin interface- IdentifiedDataSerializable
- Returns:
- factory ID
 
- 
getClassIdpublic int getClassId()Description copied from interface:IdentifiedDataSerializableReturns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
- getClassIdin interface- IdentifiedDataSerializable
- Returns:
- type ID
 
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
 
-