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 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()
boolean
Returns the host affinity for a row group.org.apache.hadoop.fs.Path
Returns location of the metadata.org.apache.hadoop.fs.Path
getPath()
Returns path of the metadata.int
Returns index of current row group within its file.int
hashCode()
protected void
toString()
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:LocationProvider
Returns 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:
getPath
in interfaceLocationProvider
- Returns:
- metadata path
-
getLocation
public org.apache.hadoop.fs.Path getLocation()Description copied from interface:LocationProvider
Returns 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:
getLocation
in 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:
equals
in classBaseMetadata
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBaseMetadata
-
toString
-
toMetadataUnitBuilder
- Specified by:
toMetadataUnitBuilder
in classBaseMetadata
-
toBuilder
- Specified by:
toBuilder
in classBaseMetadata
-
builder
-