Package com.dtsx.astra.sdk.cassio
Class ClusteredMetadataVectorTable
java.lang.Object
com.dtsx.astra.sdk.cassio.AbstractCassandraTable<ClusteredMetadataVectorRecord>
com.dtsx.astra.sdk.cassio.ClusteredMetadataVectorTable
public class ClusteredMetadataVectorTable
extends AbstractCassandraTable<ClusteredMetadataVectorRecord>
Table representing persistence for LangChain operations.
- parition key: partitionId
- clustering key: rowId
- column: value
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class for creating instances ofClusteredMetadataVectorTable
.static class
Table record. -
Field Summary
Fields inherited from class com.dtsx.astra.sdk.cassio.AbstractCassandraTable
ATTRIBUTES_BLOB, BODY_BLOB, COLUMN_SIMILARITY, cqlSession, DEFAULT_RECORD_COUNT, keyspaceName, METADATA_S, PARTITION_ID, ROW_ID, SAI_INDEX_CLASSNAME, tableName, VECTOR
-
Constructor Summary
ConstructorDescriptionClusteredMetadataVectorTable
(@NonNull com.datastax.oss.driver.api.core.CqlSession session, @NonNull String keyspaceName, @NonNull String tableName, @NonNull Integer vectorDimension, @NonNull CassandraSimilarityMetric metric) Constructor with mandatory parameters. -
Method Summary
Methods inherited from class com.dtsx.astra.sdk.cassio.AbstractCassandraTable
clear, delete, getCqlSession, putAsync
-
Constructor Details
-
ClusteredMetadataVectorTable
public ClusteredMetadataVectorTable(@NonNull @NonNull com.datastax.oss.driver.api.core.CqlSession session, @NonNull @NonNull String keyspaceName, @NonNull @NonNull String tableName, @NonNull @NonNull Integer vectorDimension, @NonNull @NonNull CassandraSimilarityMetric metric) Constructor with mandatory parameters.- Parameters:
session
- cassandra sessionkeyspaceName
- keyspace nametableName
- table namevectorDimension
- vector dimensionmetric
- similarity metric
-
-
Method Details
-
builder
Builder for the class.- Returns:
- builder for the class
-
create
public void create()Description copied from class:AbstractCassandraTable
Create table if not exist.- Specified by:
create
in classAbstractCassandraTable<ClusteredMetadataVectorRecord>
-
put
Description copied from class:AbstractCassandraTable
Upsert a row of the table.- Specified by:
put
in classAbstractCassandraTable<ClusteredMetadataVectorRecord>
- Parameters:
row
- current row
-
mapRow
Description copied from class:AbstractCassandraTable
Should be table to map from a Cassandra row to a record.- Specified by:
mapRow
in classAbstractCassandraTable<ClusteredMetadataVectorRecord>
- Parameters:
row
- current cassandra row- Returns:
- current record
-