Class IndexConfig<T>
java.lang.Object
com.tangosol.io.AbstractEvolvable
com.oracle.coherence.rag.config.AbstractConfig<T>
com.oracle.coherence.rag.config.index.IndexConfig<T>
- Type Parameters:
T- the type of target object this configuration is for
- All Implemented Interfaces:
Evolvable,PortableObject
- Direct Known Subclasses:
BinaryQuantIndexConfig,HnswIndexConfig,SimpleIndexConfig
Configuration class for document indexing settings.
This class encapsulates configuration parameters that control how document chunks are indexed in the Coherence RAG framework. The index type determines the specific indexing strategy and algorithm used for document storage and retrieval.
This class is designed to be serializable using Coherence POF (Portable Object Format) and JSON-B for configuration persistence and transmission.
- Since:
- 25.09
- Author:
- Aleks Seovic 2025.06.28
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe implementation version for this class.static final StringThe type of the index this configuration is for. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintDetermine the serialization version supported by the implementing class.inthashCode()voidreadExternal(PofReader reader) Restore the contents of a user type instance by reading its state using the specified PofReader object.toString()type()Returns the type of the index this configuration is for.voidwriteExternal(PofWriter writer) Save the contents of a POF user type instance by writing its state using the specified PofWriter object.Methods inherited from class com.oracle.coherence.rag.config.AbstractConfig
apply, getDataVersionMethods inherited from class com.tangosol.io.AbstractEvolvable
getFutureData, setDataVersion, setFutureData
-
Field Details
-
TYPE
-
IMPLEMENTATION_VERSION
public static final int IMPLEMENTATION_VERSIONThe implementation version for this class.- See Also:
-
-
Constructor Details
-
IndexConfig
public IndexConfig()
-
-
Method Details
-
type
Returns the type of the index this configuration is for.- Returns:
- the type of the index this configuration is for
-
equals
-
hashCode
-
toString
-
getImplVersion
public int getImplVersion()Description copied from class:AbstractEvolvableDetermine the serialization version supported by the implementing class.- Specified by:
getImplVersionin interfaceEvolvable- Overrides:
getImplVersionin classAbstractConfig<T>- Returns:
- the serialization version supported by this object
-
readExternal
Description copied from interface:PortableObjectRestore the contents of a user type instance by reading its state using the specified PofReader object.- Specified by:
readExternalin interfacePortableObject- Parameters:
reader- the PofReader from which to read the object's state- Throws:
IOException- if an I/O error occurs
-
writeExternal
Description copied from interface:PortableObjectSave the contents of a POF user type instance by writing its state using the specified PofWriter object.- Specified by:
writeExternalin interfacePortableObject- Parameters:
writer- the PofWriter to which to write the object's state- Throws:
IOException- if an I/O error occurs
-