U
- Metastore component metadata typeR
- RDBMS table record typepublic interface MetadataMapper<U,R extends org.jooq.Record>
Modifier and Type | Method and Description |
---|---|
U |
emptyUnit() |
org.jooq.Table<R> |
table() |
org.jooq.Condition |
toCondition(FilterExpression filter)
Converts Metastore filter expression into JOOQ condition instance
which will be used as where clause in SQL query.
|
List<org.jooq.Condition> |
toDeleteConditions(List<U> 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.
|
List<org.jooq.Field<?>> |
toFields(List<MetastoreColumn> columns)
Matches given list of Metastore columns to the available
RDBMS table columns.
|
R |
toRecord(U unit)
Converts Metastore component metadata unit into RDBMS table record.
|
U |
toUnit(org.jooq.Record record)
Converts RDBMS table record into Metastore component metadata unit.
|
org.jooq.Table<R> table()
U emptyUnit()
U toUnit(org.jooq.Record record)
record
- RDBMS table recordR toRecord(U unit)
unit
- Metastore component metadata unitList<org.jooq.Field<?>> toFields(List<MetastoreColumn> columns)
columns
- list of Metastore columnsorg.jooq.Condition toCondition(FilterExpression filter)
filter
- filter expressionList<org.jooq.Condition> toDeleteConditions(List<U> units)
units
- list of Metastore component metadata unitsCopyright © 1970 The Apache Software Foundation. All rights reserved.