Search in sources :

Example 1 with LockLevel

use of org.apache.hadoop.hive.metastore.api.LockLevel in project hive by apache.

the class LockComponentBuilder method build.

/**
 * Get the constructed lock component.
 * @return lock component.
 */
public LockComponent build() {
    LockLevel level = LockLevel.DB;
    if (tableNameSet)
        level = LockLevel.TABLE;
    if (partNameSet)
        level = LockLevel.PARTITION;
    component.setLevel(level);
    return component;
}
Also used : LockLevel(org.apache.hadoop.hive.metastore.api.LockLevel)

Aggregations

LockLevel (org.apache.hadoop.hive.metastore.api.LockLevel)1