Class PartitionUpdate

java.lang.Object
io.trino.plugin.hive.PartitionUpdate

public class PartitionUpdate extends Object
  • Constructor Details

    • 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 Details

    • withRowCount

      public PartitionUpdate withRowCount(int rowCount)
    • 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()
    • getFileNames

      public List<String> getFileNames()
    • getJsonSerializableTargetPath

      public String getJsonSerializableTargetPath()
    • getJsonSerializableWritePath

      public String getJsonSerializableWritePath()
    • getRowCount

      public long getRowCount()
    • getInMemoryDataSizeInBytes

      public long getInMemoryDataSizeInBytes()
    • getOnDiskDataSizeInBytes

      public long getOnDiskDataSizeInBytes()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getStatistics

      public HiveBasicStatistics getStatistics()
    • mergePartitionUpdates

      public static List<PartitionUpdate> mergePartitionUpdates(Iterable<PartitionUpdate> unMergedUpdates)