Package io.trino.plugin.hive
Class PartitionUpdate
- java.lang.Object
-
- io.trino.plugin.hive.PartitionUpdate
-
public class PartitionUpdate extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPartitionUpdate.UpdateMode
-
Constructor Summary
Constructors Constructor Description PartitionUpdate(String name, PartitionUpdate.UpdateMode updateMode, String writePath, String targetPath, List<String> fileNames, long rowCount, long inMemoryDataSizeInBytes, long onDiskDataSizeInBytes)PartitionUpdate(String name, PartitionUpdate.UpdateMode updateMode, org.apache.hadoop.fs.Path writePath, org.apache.hadoop.fs.Path targetPath, List<String> fileNames, long rowCount, long inMemoryDataSizeInBytes, long onDiskDataSizeInBytes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getFileNames()longgetInMemoryDataSizeInBytes()StringgetJsonSerializableTargetPath()StringgetJsonSerializableWritePath()StringgetName()longgetOnDiskDataSizeInBytes()longgetRowCount()HiveBasicStatisticsgetStatistics()org.apache.hadoop.fs.PathgetTargetPath()PartitionUpdate.UpdateModegetUpdateMode()org.apache.hadoop.fs.PathgetWritePath()static List<PartitionUpdate>mergePartitionUpdates(Iterable<PartitionUpdate> unMergedUpdates)StringtoString()
-
-
-
Constructor Detail
-
PartitionUpdate
public PartitionUpdate(String name, PartitionUpdate.UpdateMode updateMode, String writePath, String targetPath, List<String> fileNames, long rowCount, long inMemoryDataSizeInBytes, long onDiskDataSizeInBytes)
-
PartitionUpdate
public PartitionUpdate(String name, PartitionUpdate.UpdateMode updateMode, org.apache.hadoop.fs.Path writePath, org.apache.hadoop.fs.Path targetPath, List<String> fileNames, long rowCount, long inMemoryDataSizeInBytes, long onDiskDataSizeInBytes)
-
-
Method Detail
-
getName
public String getName()
-
getUpdateMode
public PartitionUpdate.UpdateMode getUpdateMode()
-
getWritePath
public org.apache.hadoop.fs.Path getWritePath()
-
getTargetPath
public org.apache.hadoop.fs.Path getTargetPath()
-
getJsonSerializableTargetPath
public String getJsonSerializableTargetPath()
-
getJsonSerializableWritePath
public String getJsonSerializableWritePath()
-
getRowCount
public long getRowCount()
-
getInMemoryDataSizeInBytes
public long getInMemoryDataSizeInBytes()
-
getOnDiskDataSizeInBytes
public long getOnDiskDataSizeInBytes()
-
getStatistics
public HiveBasicStatistics getStatistics()
-
mergePartitionUpdates
public static List<PartitionUpdate> mergePartitionUpdates(Iterable<PartitionUpdate> unMergedUpdates)
-
-