Class AbstractMetadataMapper<U,R extends org.jooq.Record>
java.lang.Object
org.apache.drill.metastore.rdbms.transform.AbstractMetadataMapper<U,R>
- Type Parameters:
U- Metastore component metadata typeR- RDBMS table record type
- All Implemented Interfaces:
MetadataMapper<U,R>
- Direct Known Subclasses:
TablesMetadataMapper
public abstract class AbstractMetadataMapper<U,R extends org.jooq.Record>
extends Object
implements MetadataMapper<U,R>
Abstract implementation of
MetadataMapper interface which contains
common code for all Metastore component metadata and RDBMS table types.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Map<MetastoreColumn, org.jooq.Field<?>> protected abstract RdbmsFilterExpressionVisitororg.jooq.ConditiontoCondition(FilterExpression filter) Converts Metastore filter expression into JOOQ condition instance which will be used as where clause in SQL query.List<org.jooq.Field<?>> toFields(List<MetastoreColumn> columns) Matches given list of Metastore columns to the available RDBMS table columns.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.drill.metastore.rdbms.transform.MetadataMapper
emptyUnit, table, toDeleteConditions, toRecord, toUnit
-
Constructor Details
-
AbstractMetadataMapper
public AbstractMetadataMapper()
-
-
Method Details
-
toFields
Description copied from interface:MetadataMapperMatches given list of Metastore columns to the available RDBMS table columns.- Specified by:
toFieldsin interfaceMetadataMapper<U,R extends org.jooq.Record> - Parameters:
columns- list of Metastore columns- Returns:
- list of RDBMS table fields
-
toCondition
Description copied from interface:MetadataMapperConverts Metastore filter expression into JOOQ condition instance which will be used as where clause in SQL query.- Specified by:
toConditionin interfaceMetadataMapper<U,R extends org.jooq.Record> - Parameters:
filter- filter expression- Returns:
- JOOQ condition instance
-
fieldMapper
- Returns:
- mapper specific field mapper
-
filterVisitor
- Returns:
- mapper specific filter visitor
-