public class ScanOptions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ScanOptions.Builder
Builder for constructing LanceScanOptions.
|
| Constructor and Description |
|---|
ScanOptions(Optional<List<Integer>> fragmentIds,
Optional<Long> batchSize,
Optional<List<String>> columns,
Optional<String> filter,
Optional<ByteBuffer> substraitFilter,
Optional<Long> limit,
Optional<Long> offset,
Optional<Query> nearest,
boolean withRowId,
boolean withRowAddress,
int batchReadahead,
Optional<List<ColumnOrdering>> columnOrderings)
Constructor for LanceScanOptions.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBatchReadahead()
Get the batch readahead.
|
Optional<Long> |
getBatchSize()
Get the batch size.
|
Optional<List<ColumnOrdering>> |
getColumnOrderings() |
Optional<List<String>> |
getColumns()
Get the columns.
|
Optional<String> |
getFilter()
Get the filter.
|
Optional<List<Integer>> |
getFragmentIds()
Get the fragment ids.
|
Optional<Long> |
getLimit()
Get the limit.
|
Optional<Query> |
getNearest()
Get the nearest neighbor query.
|
Optional<Long> |
getOffset()
Get the offset.
|
Optional<ByteBuffer> |
getSubstraitFilter()
Get the substrait filter.
|
boolean |
isWithRowAddress()
Get whether to include the row address.
|
boolean |
isWithRowId()
Get whether to include the row ID.
|
String |
toString() |
public ScanOptions(Optional<List<Integer>> fragmentIds, Optional<Long> batchSize, Optional<List<String>> columns, Optional<String> filter, Optional<ByteBuffer> substraitFilter, Optional<Long> limit, Optional<Long> offset, Optional<Query> nearest, boolean withRowId, boolean withRowAddress, int batchReadahead, Optional<List<ColumnOrdering>> columnOrderings)
fragmentIds - the id of the fragments to scanbatchSize - Maximum row number of each returned ArrowRecordBatch. Optional, use
Optional.empty() if unspecified.columns - (Optional) Projected columns. Optional.empty() for scanning all columns.
Otherwise, only columns present in the List will be scanned.filter - (Optional) Filter expression. Optional.empty() for no filter.substraitFilter - (Optional) Substrait filter expression.limit - (Optional) Maximum number of rows to return.offset - (Optional) Number of rows to skip before returning results.withRowId - Whether to include the row ID in the results.withRowAddress - Whether to include the row address in the results.nearest - (Optional) Nearest neighbor query.batchReadahead - Number of batches to read ahead.public Optional<List<Integer>> getFragmentIds()
public Optional<Long> getBatchSize()
public Optional<List<String>> getColumns()
public Optional<String> getFilter()
public Optional<ByteBuffer> getSubstraitFilter()
public Optional<Long> getLimit()
public Optional<Long> getOffset()
public Optional<Query> getNearest()
public boolean isWithRowId()
public boolean isWithRowAddress()
public int getBatchReadahead()
public Optional<List<ColumnOrdering>> getColumnOrderings()
Copyright © 2025. All rights reserved.