Interface MaxComputeWriter
-
- All Known Implementing Classes:
BatchAppendWriter,BatchUpsertWriter
public interface MaxComputeWriterthe interface of all writer to writeArrayRecordto maxcompute.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static MaxComputeWriterbatchWriter(MaxComputeOptions options, MaxComputeWriteOptions writeOptions, SessionIdentifier sessionIdentifier)voidcommit()voiddelete(com.aliyun.odps.data.ArrayRecord record)voidflush()StringgetId()SessionIdentifiergetSessionIdentifier()com.aliyun.odps.data.ArrayRecordnewElement()voidwrite(com.aliyun.odps.data.ArrayRecord record)
-
-
-
Method Detail
-
batchWriter
static MaxComputeWriter batchWriter(MaxComputeOptions options, MaxComputeWriteOptions writeOptions, SessionIdentifier sessionIdentifier) throws IOException
- Throws:
IOException
-
getSessionIdentifier
SessionIdentifier getSessionIdentifier()
-
newElement
com.aliyun.odps.data.ArrayRecord newElement()
-
write
void write(com.aliyun.odps.data.ArrayRecord record) throws IOException- Throws:
IOException
-
delete
void delete(com.aliyun.odps.data.ArrayRecord record) throws IOException- Throws:
IOException
-
flush
void flush() throws IOException- Throws:
IOException
-
commit
void commit() throws IOException- Throws:
IOException
-
getId
String getId()
-
-