public class DataWriter<T>
extends java.lang.Object
implements java.io.Closeable
Constructor and Description |
---|
DataWriter(FileAppender<T> appender,
FileFormat format,
java.lang.String location,
PartitionSpec spec,
StructLike partition,
EncryptionKeyMetadata keyMetadata) |
Modifier and Type | Method and Description |
---|---|
void |
add(T row) |
void |
close() |
long |
length() |
DataFile |
toDataFile() |
public DataWriter(FileAppender<T> appender, FileFormat format, java.lang.String location, PartitionSpec spec, StructLike partition, EncryptionKeyMetadata keyMetadata)