Class TablesMetadataMapper.FileMapper
java.lang.Object
org.apache.drill.metastore.rdbms.transform.AbstractMetadataMapper<TableMetadataUnit,R>
org.apache.drill.metastore.rdbms.components.tables.TablesMetadataMapper<FilesRecord>
org.apache.drill.metastore.rdbms.components.tables.TablesMetadataMapper.FileMapper
- All Implemented Interfaces:
MetadataMapper<TableMetadataUnit,
FilesRecord>
- Enclosing class:
- TablesMetadataMapper<R extends org.jooq.Record>
TablesMetadataMapper
implementation for Tables.FILES
table.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.metastore.rdbms.components.tables.TablesMetadataMapper
TablesMetadataMapper.FileMapper, TablesMetadataMapper.PartitionMapper, TablesMetadataMapper.RowGroupMapper, TablesMetadataMapper.SegmentMapper, TablesMetadataMapper.TableMapper
-
Field Summary
Fields inherited from class org.apache.drill.metastore.rdbms.components.tables.TablesMetadataMapper
COMPONENT_PARTITION_KEY, TABLE_PARTITION_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Map<MetastoreColumn,
org.jooq.Field<?>> protected RdbmsFilterExpressionVisitor
get()
protected Function<TableMetadataUnit,
List<String>> org.jooq.Table<FilesRecord>
table()
protected List<org.jooq.Condition>
toConditions
(List<String> values) Creates JOOQ conditions based on given list of partition values.toRecord
(TableMetadataUnit unit) Converts Metastore component metadata unit into RDBMS table record.toUnit
(org.jooq.Record record) Converts RDBMS table record into Metastore component metadata unit.Methods inherited from class org.apache.drill.metastore.rdbms.components.tables.TablesMetadataMapper
emptyUnit, toDeleteConditions
Methods inherited from class org.apache.drill.metastore.rdbms.transform.AbstractMetadataMapper
toCondition, toFields
-
Constructor Details
-
FileMapper
public FileMapper()
-
-
Method Details
-
get
-
table
- Returns:
- RDBMS table instance
-
toUnit
Description copied from interface:MetadataMapper
Converts RDBMS table record into Metastore component metadata unit.- Parameters:
record
- RDBMS table record- Returns:
- Metastore component metadata unit instance
-
toRecord
Description copied from interface:MetadataMapper
Converts Metastore component metadata unit into RDBMS table record.- Parameters:
unit
- Metastore component metadata unit- Returns:
- RDBMS table record instance
-
fieldMapper
- Specified by:
fieldMapper
in classAbstractMetadataMapper<TableMetadataUnit,
FilesRecord> - Returns:
- mapper specific field mapper
-
filterVisitor
- Specified by:
filterVisitor
in classAbstractMetadataMapper<TableMetadataUnit,
FilesRecord> - Returns:
- mapper specific filter visitor
-
partitionKey
- Specified by:
partitionKey
in classTablesMetadataMapper<FilesRecord>
- Returns:
- function to determine partition key for specific table
-
toConditions
Description copied from class:TablesMetadataMapper
Creates JOOQ conditions based on given list of partition values. Matching is order based.- Specified by:
toConditions
in classTablesMetadataMapper<FilesRecord>
- Parameters:
values
- partition values- Returns:
- list of JOOQ conditions
-