Package io.trino.plugin.deltalake
Class DeltaLakeWriter
java.lang.Object
io.trino.plugin.deltalake.DeltaLakeWriter
- All Implemented Interfaces:
FileWriter
-
Constructor Summary
ConstructorsConstructorDescriptionDeltaLakeWriter(TrinoFileSystem fileSystem, FileWriter fileWriter, String rootTableLocation, String relativeFilePath, List<String> partitionValues, DeltaLakeWriterStats stats, List<DeltaLakeColumnHandle> columnHandles, DataFileInfo.DataFileType dataFileType) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendRows(Page originalPage) commit()longlonglonglongvoidrollback()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.trino.plugin.hive.FileWriter
getVerificationTask
-
Constructor Details
-
DeltaLakeWriter
public DeltaLakeWriter(TrinoFileSystem fileSystem, FileWriter fileWriter, String rootTableLocation, String relativeFilePath, List<String> partitionValues, DeltaLakeWriterStats stats, List<DeltaLakeColumnHandle> columnHandles, DataFileInfo.DataFileType dataFileType)
-
-
Method Details
-
getWrittenBytes
public long getWrittenBytes()- Specified by:
getWrittenBytesin interfaceFileWriter
-
getMemoryUsage
public long getMemoryUsage()- Specified by:
getMemoryUsagein interfaceFileWriter
-
appendRows
- Specified by:
appendRowsin interfaceFileWriter
-
commit
- Specified by:
commitin interfaceFileWriter
-
rollback
public void rollback()- Specified by:
rollbackin interfaceFileWriter
-
getValidationCpuNanos
public long getValidationCpuNanos()- Specified by:
getValidationCpuNanosin interfaceFileWriter
-
getRowCount
public long getRowCount() -
getDataFileInfo
- Throws:
IOException
-
toString
-