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 int
The implementation version for this class.static final String
The type of the index this configuration is for. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Determine the serialization version supported by the implementing class.int
hashCode()
void
readExternal
(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.void
writeExternal
(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, getDataVersion
Methods 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:AbstractEvolvable
Determine the serialization version supported by the implementing class.- Specified by:
getImplVersion
in interfaceEvolvable
- Overrides:
getImplVersion
in classAbstractConfig<T>
- Returns:
- the serialization version supported by this object
-
readExternal
Description copied from interface:PortableObject
Restore the contents of a user type instance by reading its state using the specified PofReader object.- Specified by:
readExternal
in 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:PortableObject
Save the contents of a POF user type instance by writing its state using the specified PofWriter object.- Specified by:
writeExternal
in interfacePortableObject
- Parameters:
writer
- the PofWriter to which to write the object's state- Throws:
IOException
- if an I/O error occurs
-