public class RecordFileWriter extends Object implements FileWriter
| Modifier and Type | Class and Description |
|---|---|
static interface |
RecordFileWriter.ExtendedRecordWriter |
| Constructor and Description |
|---|
RecordFileWriter(org.apache.hadoop.fs.Path path,
List<String> inputColumnNames,
StorageFormat storageFormat,
Properties schema,
io.airlift.units.DataSize estimatedWriterSystemMemoryUsage,
org.apache.hadoop.mapred.JobConf conf,
TypeManager typeManager,
ConnectorSession session) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendRow(Page dataPage,
int position) |
void |
appendRows(Page dataPage) |
void |
commit() |
long |
getSystemMemoryUsage() |
long |
getValidationCpuNanos() |
long |
getWrittenBytes() |
void |
rollback() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVerificationTaskpublic RecordFileWriter(org.apache.hadoop.fs.Path path,
List<String> inputColumnNames,
StorageFormat storageFormat,
Properties schema,
io.airlift.units.DataSize estimatedWriterSystemMemoryUsage,
org.apache.hadoop.mapred.JobConf conf,
TypeManager typeManager,
ConnectorSession session)
public long getWrittenBytes()
getWrittenBytes in interface FileWriterpublic long getSystemMemoryUsage()
getSystemMemoryUsage in interface FileWriterpublic void appendRows(Page dataPage)
appendRows in interface FileWriterpublic void appendRow(Page dataPage, int position)
public void commit()
commit in interface FileWriterpublic void rollback()
rollback in interface FileWriterpublic long getValidationCpuNanos()
getValidationCpuNanos in interface FileWriterCopyright © 2012–2020. All rights reserved.