public interface TableWriter
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes a writer, which means the table is complete now.
|
static TableWriter |
create(TableSchema schema,
AlluxioURI uri) |
static TableWriter |
create(TableSchema schema,
AlluxioURI uri,
PartitionInfo partitionInfo) |
long |
getBytes()
Note that the bytes written should take compression and encoding into consideration.
|
int |
getRows() |
void |
write(TableRow row)
Writes a row.
|
static TableWriter create(TableSchema schema, AlluxioURI uri) throws java.io.IOException
schema - the table schemauri - the URI to the outputjava.io.IOExceptionstatic TableWriter create(TableSchema schema, AlluxioURI uri, @Nullable PartitionInfo partitionInfo) throws java.io.IOException
schema - the table schemauri - the URI to the outputpartitionInfo - the partition info (default configuration is used if null)java.io.IOExceptionvoid write(TableRow row) throws java.io.IOException
row - a rowjava.io.IOException - when write failsvoid close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOException - when failing to close the underlying output streamint getRows()
long getBytes()
Copyright © 2022. All Rights Reserved.