| Package | Description |
|---|---|
| com.lancedb.lance | |
| com.lancedb.lance.merge |
| Modifier and Type | Method and Description |
|---|---|
MergeInsertResult |
Dataset.mergeInsert(MergeInsertParams mergeInsert,
org.apache.arrow.c.ArrowArrayStream source)
Merge source data with the existing target data.
|
| Modifier and Type | Method and Description |
|---|---|
MergeInsertParams |
MergeInsertParams.withConflictRetries(int retries)
Set number of times to retry the operation if there is contention.
|
MergeInsertParams |
MergeInsertParams.withMatchedDoNothing()
Specify that when a row in the source table matches a row in the target table, the row in the
target table is kept unchanged.
|
MergeInsertParams |
MergeInsertParams.withMatchedFail()
Specify that when a row in the source table matches a row in the target table, the entire merge
operation will fail with an error.
|
MergeInsertParams |
MergeInsertParams.withMatchedUpdateAll()
Specify that when a row in the source table matches a row in the target table, the row is
deleted from the target table and the matched row based on the source table is inserted.
|
MergeInsertParams |
MergeInsertParams.withMatchedUpdateIf(String expr)
Specify that when a row in the source table matches a row in the target table and the
expression evaluates to true, the row in the target table is updated by the matched row from
the source table.
|
MergeInsertParams |
MergeInsertParams.withNotMatched(MergeInsertParams.WhenNotMatched whenNotMatched)
Specify what should happen when a source row has no match in the target.
|
MergeInsertParams |
MergeInsertParams.withNotMatchedBySourceDelete()
Specify that when a target row has no match in the source, the row is deleted from the target
table.
|
MergeInsertParams |
MergeInsertParams.withNotMatchedBySourceDeleteIf(String expr)
Specify that when a target row has no match in the source and the expression evaluates to true,
the row is deleted from the target table.
|
MergeInsertParams |
MergeInsertParams.withNotMatchedBySourceDeleteSubstraitIf(ByteBuffer expr)
Specify that when a target row has no match in the source and the expression evaluates to true,
the row is deleted from the target table.
|
MergeInsertParams |
MergeInsertParams.withNotMatchedBySourceKeep()
Specify that when a target row has no match in the source, the row is kept in the target table.
|
MergeInsertParams |
MergeInsertParams.withRetryTimeoutMs(long timeoutMs)
Set the timeout in milliseconds used to limit retries.
|
MergeInsertParams |
MergeInsertParams.withSkipAutoCleanup(boolean skipAutoCleanup)
If true, skip auto cleanup during commits.
|
Copyright © 2025. All rights reserved.