public class RecordFileWriter extends Object implements HiveFileWriter
| Modifier and Type | Class and Description |
|---|---|
static interface |
RecordFileWriter.ExtendedRecordWriter |
| Constructor and Description |
|---|
RecordFileWriter(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) |
Optional<Page> |
commit() |
long |
getFileSizeInBytes() |
long |
getSystemMemoryUsage() |
long |
getValidationCpuNanos() |
long |
getWrittenBytes() |
void |
rollback() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVerificationTaskpublic RecordFileWriter(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 HiveFileWriterpublic long getSystemMemoryUsage()
getSystemMemoryUsage in interface HiveFileWriterpublic void appendRows(Page dataPage)
appendRows in interface HiveFileWriterpublic void appendRow(Page dataPage, int position)
public Optional<Page> commit()
commit in interface HiveFileWriterpublic void rollback()
rollback in interface HiveFileWriterpublic long getValidationCpuNanos()
getValidationCpuNanos in interface HiveFileWriterpublic long getFileSizeInBytes()
getFileSizeInBytes in interface HiveFileWriterCopyright © 2012–2023. All rights reserved.