| Package | Description |
|---|---|
| com.lancedb.lance.index | |
| com.lancedb.lance.index.vector | |
| com.lancedb.lance.ipc |
| Modifier and Type | Method and Description |
|---|---|
static DistanceType |
DistanceType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DistanceType[] |
DistanceType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
IndexParams.Builder |
IndexParams.Builder.setDistanceType(DistanceType distanceType)
Set the distance type for calculating the distance between vectors.
|
| Modifier and Type | Method and Description |
|---|---|
DistanceType |
VectorIndexParams.getDistanceType() |
| Modifier and Type | Method and Description |
|---|---|
static VectorIndexParams |
VectorIndexParams.ivfFlat(int numPartitions,
DistanceType distanceType)
Create a new IVF index with flat quantizer.
|
static VectorIndexParams |
VectorIndexParams.ivfPq(int numPartitions,
int numBits,
int numSubVectors,
DistanceType distanceType,
int maxIterations)
Create a new IVF index with PQ quantizer.
|
VectorIndexParams.Builder |
VectorIndexParams.Builder.setDistanceType(DistanceType distanceType) |
static VectorIndexParams |
VectorIndexParams.withIvfHnswPqParams(DistanceType distanceType,
IvfBuildParams ivf,
HnswBuildParams hnsw,
PQBuildParams pq)
Create a new IVF HNSW index with PQ quantizer.
|
static VectorIndexParams |
VectorIndexParams.withIvfHnswSqParams(DistanceType distanceType,
IvfBuildParams ivf,
HnswBuildParams hnsw,
SQBuildParams sq)
Create a new IVF HNSW index with SQ quantizer.
|
static VectorIndexParams |
VectorIndexParams.withIvfPqParams(DistanceType distanceType,
IvfBuildParams ivf,
PQBuildParams pq)
Create a new IVF index with PQ quantizer.
|
| Modifier and Type | Method and Description |
|---|---|
Query.Builder |
Query.Builder.setDistanceType(DistanceType distanceType)
Sets the distance metric type.
|
Copyright © 2025. All rights reserved.