Class FileMetadata

java.lang.Object
org.apache.drill.exec.physical.impl.scan.file.FileMetadata

public class FileMetadata extends Object
Specify the file name and optional selection root. If the selection root is provided, then partitions are defined as the portion of the file name that is not also part of the selection root. That is, if selection root is /a/b and the file path is /a/b/c/d.csv, then dir0 is c.
  • Constructor Details

    • FileMetadata

      public FileMetadata(org.apache.hadoop.fs.Path filePath, org.apache.hadoop.fs.Path selectionRoot)
    • FileMetadata

      public FileMetadata(org.apache.hadoop.fs.Path filePath, org.apache.hadoop.fs.Path selectionRoot, org.apache.hadoop.fs.FileSystem fs)
  • Method Details

    • filePath

      public org.apache.hadoop.fs.Path filePath()
    • partition

      public String partition(int index)
    • dirPathLength

      public int dirPathLength()
    • isSet

      public boolean isSet()
    • getImplicitColumnValue

      public String getImplicitColumnValue(ColumnExplorer.ImplicitFileColumn column)