public class InstanceReaderBuilder extends Object
This builder allows configuration of various instance read options including:
| Constructor and Description |
|---|
InstanceReaderBuilder(StorageStub storageStub,
InstanceIdentifier instanceId,
String sessionId,
TableSchema tableSchema,
org.apache.arrow.memory.BufferAllocator allocator) |
| Modifier and Type | Method and Description |
|---|---|
ArrowReader |
build()
Build a new MaxInstanceArrowReader with current configurations.
|
org.apache.arrow.memory.BufferAllocator |
getAllocator() |
BlockingQueue<Object> |
getAsyncQueue() |
TableSchema |
getTableSchema() |
boolean |
isAsync() |
InstanceReaderBuilder |
withAsync(boolean async) |
InstanceReaderBuilder |
withAsyncQueue(BlockingQueue<Object> asyncQueue) |
InstanceReaderBuilder |
withColumns(List<String> columns) |
InstanceReaderBuilder |
withCount(long count) |
InstanceReaderBuilder |
withEnableLimit(boolean enableLimit) |
InstanceReaderBuilder |
withOffset(long offset) |
InstanceReaderBuilder |
withQueryId(long queryId) |
InstanceReaderBuilder |
withTaskName(String taskName) |
public InstanceReaderBuilder(StorageStub storageStub, InstanceIdentifier instanceId, String sessionId, TableSchema tableSchema, org.apache.arrow.memory.BufferAllocator allocator)
public InstanceReaderBuilder withOffset(long offset)
public InstanceReaderBuilder withCount(long count)
public InstanceReaderBuilder withColumns(List<String> columns)
public InstanceReaderBuilder withTaskName(String taskName)
public InstanceReaderBuilder withQueryId(long queryId)
public InstanceReaderBuilder withEnableLimit(boolean enableLimit)
public InstanceReaderBuilder withAsync(boolean async)
public InstanceReaderBuilder withAsyncQueue(BlockingQueue<Object> asyncQueue)
public org.apache.arrow.memory.BufferAllocator getAllocator()
public TableSchema getTableSchema()
public boolean isAsync()
public BlockingQueue<Object> getAsyncQueue()
public ArrowReader build()
Copyright © 2026 Alibaba Cloud Computing. All rights reserved.