public interface TableBatchWriteSession extends TableWriteSession
Session.Provider| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Clean up this writing job because some data writers are failed and keep failing when retry,
|
void |
commit(WriterCommitMessage[] messages)
Commits this writing job with a list of commit messages.
|
default BatchWriter<org.apache.arrow.vector.VectorSchemaRoot> |
createArrowWriter(long blockNumber,
WriterAttemptId attemptId,
WriterOptions options)
Returns a arrow data writer to do the actual writing work.
|
default BatchWriter<ArrayRecord> |
createRecordWriter(long blockNumber,
WriterAttemptId attemptId,
WriterOptions options)
Returns a record data writer to do the actual writing work.
|
default SessionType |
getType()
Returns the type for table session.
|
maxBlockNumber, requiredDistribution, requiredOrdering, requiredSchema, supportsDataFormatdescription, getId, getStatus, getTableIdentifiervoid commit(WriterCommitMessage[] messages) throws IOException
BatchWriter.commit().
TODO: commit with settingsIOExceptionvoid cleanup()
default BatchWriter<ArrayRecord> createRecordWriter(long blockNumber, WriterAttemptId attemptId, WriterOptions options) throws IOException
IOExceptiondefault BatchWriter<org.apache.arrow.vector.VectorSchemaRoot> createArrowWriter(long blockNumber, WriterAttemptId attemptId, WriterOptions options) throws IOException
IOExceptiondefault SessionType getType()
SessionCopyright © 2024 Alibaba Cloud Computing. All rights reserved.