Package io.trino.plugin.deltalake
Class DeltaLakeWriter
- java.lang.Object
-
- io.trino.plugin.deltalake.DeltaLakeWriter
-
- All Implemented Interfaces:
FileWriter
public class DeltaLakeWriter extends Object implements FileWriter
-
-
Constructor Summary
Constructors Constructor Description DeltaLakeWriter(org.apache.hadoop.fs.FileSystem fileSystem, FileWriter fileWriter, org.apache.hadoop.fs.Path rootTableLocation, String relativeFilePath, List<String> partitionValues, DeltaLakeWriterStats stats, List<DeltaLakeColumnHandle> columnHandles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendRows(Page originalPage)voidcommit()DataFileInfogetDataFileInfo()longgetMemoryUsage()longgetValidationCpuNanos()longgetWrittenBytes()voidrollback()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.trino.plugin.hive.FileWriter
getVerificationTask
-
-
-
-
Constructor Detail
-
DeltaLakeWriter
public DeltaLakeWriter(org.apache.hadoop.fs.FileSystem fileSystem, FileWriter fileWriter, org.apache.hadoop.fs.Path rootTableLocation, String relativeFilePath, List<String> partitionValues, DeltaLakeWriterStats stats, List<DeltaLakeColumnHandle> columnHandles)
-
-
Method Detail
-
getWrittenBytes
public long getWrittenBytes()
- Specified by:
getWrittenBytesin interfaceFileWriter
-
getMemoryUsage
public long getMemoryUsage()
- Specified by:
getMemoryUsagein interfaceFileWriter
-
appendRows
public void appendRows(Page originalPage)
- Specified by:
appendRowsin interfaceFileWriter
-
commit
public void commit()
- Specified by:
commitin interfaceFileWriter
-
rollback
public void rollback()
- Specified by:
rollbackin interfaceFileWriter
-
getValidationCpuNanos
public long getValidationCpuNanos()
- Specified by:
getValidationCpuNanosin interfaceFileWriter
-
getDataFileInfo
public DataFileInfo getDataFileInfo() throws IOException
- Throws:
IOException
-
-