Class FileNameUtils

Object
io.delta.storage.internal.FileNameUtils

public final class FileNameUtils extends Object
Helper for misc functions relating to file names for delta commits.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.hadoop.fs.Path
    deltaFile(org.apache.hadoop.fs.Path path, long version)
    Returns the delta (json format) path for a given delta file.
    static long
    deltaVersion(org.apache.hadoop.fs.Path path)
    Returns the version for the given delta path.
    static boolean
    isDeltaFile(org.apache.hadoop.fs.Path path)
    Returns true if the given path is a delta file, else false.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FileNameUtils

      public FileNameUtils()
  • Method Details

    • deltaFile

      public static org.apache.hadoop.fs.Path deltaFile(org.apache.hadoop.fs.Path path, long version)
      Returns the delta (json format) path for a given delta file.
    • deltaVersion

      public static long deltaVersion(org.apache.hadoop.fs.Path path)
      Returns the version for the given delta path.
    • isDeltaFile

      public static boolean isDeltaFile(org.apache.hadoop.fs.Path path)
      Returns true if the given path is a delta file, else false.