R - RDBMS table record typepublic abstract class TablesMetadataMapper<R extends org.jooq.Record> extends AbstractMetadataMapper<TableMetadataUnit,R>
AbstractMetadataMapper for RDBMS Metastore tables component.
Contains common code for specific RDBMS Metastore tables component tables.| Modifier and Type | Class and Description |
|---|---|
static class |
TablesMetadataMapper.FileMapper
TablesMetadataMapper implementation for Tables.FILES table. |
static class |
TablesMetadataMapper.PartitionMapper
TablesMetadataMapper implementation for Tables.PARTITIONS table. |
static class |
TablesMetadataMapper.RowGroupMapper
TablesMetadataMapper implementation for Tables.ROW_GROUPS table. |
static class |
TablesMetadataMapper.SegmentMapper
TablesMetadataMapper implementation for Tables.SEGMENTS table. |
static class |
TablesMetadataMapper.TableMapper
TablesMetadataMapper implementation for Tables.TABLES table. |
| Modifier and Type | Field and Description |
|---|---|
protected static Function<TableMetadataUnit,List<String>> |
COMPONENT_PARTITION_KEY |
protected static Function<TableMetadataUnit,List<String>> |
TABLE_PARTITION_KEY |
| Constructor and Description |
|---|
TablesMetadataMapper() |
| Modifier and Type | Method and Description |
|---|---|
TableMetadataUnit |
emptyUnit() |
protected abstract Function<TableMetadataUnit,List<String>> |
partitionKey() |
protected abstract List<org.jooq.Condition> |
toConditions(List<String> values)
Creates JOOQ conditions based on given list of partition values.
|
List<org.jooq.Condition> |
toDeleteConditions(List<TableMetadataUnit> units)
Since data in Metastore is deleted by partition, extracts
partitions values from given list of Metastore component metadata units
and creates list of delete conditions based on them.
|
fieldMapper, filterVisitor, toCondition, toFieldsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittable, toRecord, toUnitprotected static final Function<TableMetadataUnit,List<String>> TABLE_PARTITION_KEY
protected static final Function<TableMetadataUnit,List<String>> COMPONENT_PARTITION_KEY
public TableMetadataUnit emptyUnit()
public List<org.jooq.Condition> toDeleteConditions(List<TableMetadataUnit> units)
MetadataMapperunits - list of Metastore component metadata unitsprotected abstract Function<TableMetadataUnit,List<String>> partitionKey()
Copyright © 2021 The Apache Software Foundation. All rights reserved.