Class RowGroupMetadata
java.lang.Object
org.apache.drill.metastore.metadata.BaseMetadata
org.apache.drill.metastore.metadata.RowGroupMetadata
- All Implemented Interfaces:
LocationProvider,Metadata
Metadata which corresponds to the row group level of table.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.drill.metastore.metadata.BaseMetadata
BaseMetadata.BaseMetadataBuilder<T extends BaseMetadata.BaseMetadataBuilder<T>> -
Field Summary
Fields inherited from class org.apache.drill.metastore.metadata.BaseMetadata
columnsStatistics, lastModifiedTime, metadataInfo, metadataStatistics, schema, tableInfo, UNDEFINED_TIME -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanReturns the host affinity for a row group.org.apache.hadoop.fs.PathReturns location of the metadata.org.apache.hadoop.fs.PathgetPath()Returns path of the metadata.intReturns index of current row group within its file.inthashCode()protected voidtoString()Methods inherited from class org.apache.drill.metastore.metadata.BaseMetadata
containsExactStatistics, getColumn, getColumnsStatistics, getColumnStatistics, getLastModifiedTime, getMetadataInfo, getSchema, getStatistic, getStatisticsForColumn, getTableInfo, toMetadataUnit
-
Method Details
-
getPath
public org.apache.hadoop.fs.Path getPath()Description copied from interface:LocationProviderReturns path of the metadata. For files and row groups - full path to the file including file name. For segments - path to the segment directory.- Specified by:
getPathin interfaceLocationProvider- Returns:
- metadata path
-
getLocation
public org.apache.hadoop.fs.Path getLocation()Description copied from interface:LocationProviderReturns location of the metadata. For files and row groups - path to the parent directory they reside it. For segments - path to the segment directory.- Specified by:
getLocationin interfaceLocationProvider- Returns:
- metadata location
-
getRowGroupIndex
public int getRowGroupIndex()Returns index of current row group within its file.- Returns:
- row group index
-
getHostAffinity
Returns the host affinity for a row group.- Returns:
- host affinity for the row group
-
equals
- Overrides:
equalsin classBaseMetadata
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseMetadata
-
toString
-
toMetadataUnitBuilder
- Specified by:
toMetadataUnitBuilderin classBaseMetadata
-
toBuilder
- Specified by:
toBuilderin classBaseMetadata
-
builder
-