Interface BaseStatistics
-
- All Known Implementing Classes:
FileInputFormat.FileBaseStatistics
@Public public interface BaseStatisticsInterface describing the basic statistics that can be obtained from the input.
-
-
Field Summary
Fields Modifier and Type Field Description static floatAVG_RECORD_BYTES_UNKNOWNConstant indicating that average record width is unknown.static longNUM_RECORDS_UNKNOWNConstant indicating that the number of records is unknown;static longSIZE_UNKNOWNConstant indicating that the input size is unknown.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetAverageRecordWidth()Gets the average width of a record, in bytes.longgetNumberOfRecords()Gets the number of records in the input (= base cardinality).longgetTotalInputSize()Gets the total size of the input.
-
-
-
Field Detail
-
SIZE_UNKNOWN
@PublicEvolving static final long SIZE_UNKNOWN
Constant indicating that the input size is unknown.- See Also:
- Constant Field Values
-
NUM_RECORDS_UNKNOWN
@PublicEvolving static final long NUM_RECORDS_UNKNOWN
Constant indicating that the number of records is unknown;- See Also:
- Constant Field Values
-
AVG_RECORD_BYTES_UNKNOWN
@PublicEvolving static final float AVG_RECORD_BYTES_UNKNOWN
Constant indicating that average record width is unknown.- See Also:
- Constant Field Values
-
-
Method Detail
-
getTotalInputSize
@PublicEvolving long getTotalInputSize()
Gets the total size of the input.- Returns:
- The total size of the input, in bytes.
-
getNumberOfRecords
@PublicEvolving long getNumberOfRecords()
Gets the number of records in the input (= base cardinality).- Returns:
- The number of records in the input.
-
getAverageRecordWidth
@PublicEvolving float getAverageRecordWidth()
Gets the average width of a record, in bytes.- Returns:
- The average width of a record in bytes.
-
-