public class InstanceReadSessionBuilder extends Object
This builder allows configuration of instance read session settings including:
| Constructor and Description |
|---|
InstanceReadSessionBuilder(StorageStub storageStub,
org.apache.arrow.memory.BufferAllocator allocator,
InstanceIdentifier instance)
Constructs a new InstanceReadSessionBuilder with the provided parameters.
|
| Modifier and Type | Method and Description |
|---|---|
InstanceReadSession |
build()
Builds and returns a new InstanceReadSession instance with the configured settings.
|
InstanceIdentifier |
getInstance()
Gets the instance identifier for this builder.
|
InstanceReadSessionBuilder |
withEnableLimit(boolean enableLimit) |
InstanceReadSessionBuilder |
withSessionId(String sessionId) |
public InstanceReadSessionBuilder(StorageStub storageStub, org.apache.arrow.memory.BufferAllocator allocator, InstanceIdentifier instance)
storageStub - The storage stub for communicating with the MaxCompute serviceallocator - The buffer allocator for Arrow memory managementinstance - The identifier of the instance to read fromIllegalArgumentException - if instance is nullpublic InstanceReadSessionBuilder withSessionId(String sessionId)
public InstanceReadSessionBuilder withEnableLimit(boolean enableLimit)
public InstanceReadSession build()
This method makes an API call to the MaxCompute service to create a read session with the specified configuration. The session can then be used to read data from the instance in a distributed manner.
public InstanceIdentifier getInstance()
Copyright © 2026 Alibaba Cloud Computing. All rights reserved.