public class TableWriteSessionBuilder extends Object
TableWriteSession.| Constructor and Description |
|---|
TableWriteSessionBuilder() |
public TableWriteSessionBuilder table(Table table)
Table.public TableWriteSessionBuilder identifier(TableIdentifier identifier)
TableIdentifier.public TableWriteSessionBuilder partition(PartitionSpec partitionSpec)
PartitionSpec.public TableWriteSessionBuilder overwrite(boolean overwrite)
public TableWriteSessionBuilder withDynamicPartitionOptions(DynamicPartitionOptions options)
DynamicPartitionOptions.public TableWriteSessionBuilder withArrowOptions(ArrowOptions options)
ArrowOptions.public TableWriteSessionBuilder withCapabilities(TableWriteCapabilities capabilities)
public TableWriteSessionBuilder withSettings(EnvironmentSettings settings)
EnvironmentSettings.public TableWriteSessionBuilder withSessionId(String sessionId)
public TableWriteSessionBuilder withSessionProvider(String provider)
public TableWriteSessionBuilder withMaxFieldSize(long maxFieldSize)
note: this size cannot be larger than the project setting: [odps.sql.cfile2.field.maxsize]
public TableBatchWriteSession buildBatchWriteSession() throws IOException
TableBatchWriteSession.IOExceptionpublic TableStreamingWriteSession buildStreamingWriteSession() throws IOException
TableStreamingWriteSession.IOExceptionpublic TableUpsertSession buildUpsertSession() throws IOException
TableUpsertSession.IOExceptionpublic TableIdentifier getIdentifier()
public PartitionSpec getTargetPartitionSpec()
public String getSessionId()
public boolean isOverwrite()
public EnvironmentSettings getSettings()
public ArrowOptions getArrowOptions()
public DynamicPartitionOptions getDynamicPartitionOptions()
public TableWriteCapabilities getWriteCapabilities()
public long getMaxFieldSize()
Copyright © 2024 Alibaba Cloud Computing. All rights reserved.