Class FileInputFormat.FileBaseStatistics

  • All Implemented Interfaces:
    BaseStatistics
    Enclosing class:
    FileInputFormat<OT>

    public static class FileInputFormat.FileBaseStatistics
    extends Object
    implements BaseStatistics
    Encapsulation of the basic statistics the optimizer obtains about a file. Contained are the size of the file and the average bytes of a single record. The statistics also have a time-stamp that records the modification time of the file and indicates as such for which time the statistics were valid.
    • Field Detail

      • fileModTime

        protected final long fileModTime
      • fileSize

        protected final long fileSize
      • avgBytesPerRecord

        protected final float avgBytesPerRecord
    • Constructor Detail

      • FileBaseStatistics

        public FileBaseStatistics​(long fileModTime,
                                  long fileSize,
                                  float avgBytesPerRecord)
        Creates a new statistics object.
        Parameters:
        fileModTime - The timestamp of the latest modification of any of the involved files.
        fileSize - The size of the file, in bytes. -1, if unknown.
        avgBytesPerRecord - The average number of byte in a record, or -1.0f, if unknown.