Package io.trino.plugin.hive
Class HiveWriter
- java.lang.Object
-
- io.trino.plugin.hive.HiveWriter
-
public class HiveWriter extends Object
-
-
Constructor Summary
Constructors Constructor Description HiveWriter(FileWriter fileWriter, Optional<String> partitionName, PartitionUpdate.UpdateMode updateMode, String fileName, String writePath, String targetPath, Consumer<HiveWriter> onCommit, HiveWriterStats hiveWriterStats)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(Page dataPage)voidcommit()PartitionUpdategetPartitionUpdate()longgetRowCount()longgetSystemMemoryUsage()Optional<Runnable>getVerificationTask()longgetWrittenBytes()voidrollback()StringtoString()
-
-
-
Constructor Detail
-
HiveWriter
public HiveWriter(FileWriter fileWriter, Optional<String> partitionName, PartitionUpdate.UpdateMode updateMode, String fileName, String writePath, String targetPath, Consumer<HiveWriter> onCommit, HiveWriterStats hiveWriterStats)
-
-
Method Detail
-
getWrittenBytes
public long getWrittenBytes()
-
getSystemMemoryUsage
public long getSystemMemoryUsage()
-
getRowCount
public long getRowCount()
-
append
public void append(Page dataPage)
-
commit
public void commit()
-
rollback
public void rollback()
-
getPartitionUpdate
public PartitionUpdate getPartitionUpdate()
-
-