public static class ScanOptions.Builder extends Object
| Constructor and Description |
|---|
Builder() |
Builder(ScanOptions options)
Create a builder from another scan options.
|
| Modifier and Type | Method and Description |
|---|---|
ScanOptions.Builder |
batchReadahead(int batchReadahead)
Set the batch readahead.
|
ScanOptions.Builder |
batchSize(long batchSize)
Set the batch size.
|
ScanOptions |
build()
Build the LanceScanOptions instance.
|
ScanOptions.Builder |
columns(List<String> columns)
Set the columns.
|
ScanOptions.Builder |
filter(String filter)
Set the filter.
|
ScanOptions.Builder |
fragmentIds(List<Integer> fragmentIds)
Set the fragment ids.
|
ScanOptions.Builder |
limit(long limit)
Set the limit.
|
ScanOptions.Builder |
nearest(Query nearest)
Set the nearest neighbor query.
|
ScanOptions.Builder |
offset(long offset)
Set the offset.
|
ScanOptions.Builder |
setColumnOrderings(List<ColumnOrdering> columnOrderings) |
ScanOptions.Builder |
substraitFilter(ByteBuffer substraitFilter)
Set the substrait filter.
|
ScanOptions.Builder |
withRowAddress(boolean withRowAddress)
Set whether to include the row addr.
|
ScanOptions.Builder |
withRowId(boolean withRowId)
Set whether to include the row ID.
|
public Builder()
public Builder(ScanOptions options)
options - another scan optionspublic ScanOptions.Builder fragmentIds(List<Integer> fragmentIds)
fragmentIds - the id of the fragments to scanpublic ScanOptions.Builder batchSize(long batchSize)
batchSize - Maximum row number of each returned ArrowRecordBatch.public ScanOptions.Builder columns(List<String> columns)
columns - Projected columns.public ScanOptions.Builder filter(String filter)
filter - Filter expression.public ScanOptions.Builder substraitFilter(ByteBuffer substraitFilter)
substraitFilter - Substrait filter expression.public ScanOptions.Builder limit(long limit)
limit - Maximum number of rows to return.public ScanOptions.Builder offset(long offset)
offset - Number of rows to skip before returning results.public ScanOptions.Builder nearest(Query nearest)
nearest - The nearest neighbor query.public ScanOptions.Builder withRowId(boolean withRowId)
withRowId - true to include row ID, false otherwise.public ScanOptions.Builder withRowAddress(boolean withRowAddress)
withRowAddress - true to include row ID, false otherwise.public ScanOptions.Builder batchReadahead(int batchReadahead)
batchReadahead - Number of batches to read ahead.public ScanOptions.Builder setColumnOrderings(List<ColumnOrdering> columnOrderings)
public ScanOptions build()
Copyright © 2025. All rights reserved.