public abstract class MetadataOperation extends Operation
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_HIVE_CATALOG |
protected static TableSchema |
RESULT_SET_SCHEMA |
backgroundHandle, DEFAULT_FETCH_MAX_ROWS, DEFAULT_FETCH_ORIENTATION, DEFAULT_FETCH_ORIENTATION_SET, hasResultSet, isOperationLogEnabled, LOG, operationException, operationLog, parentSession, runAsync
Modifier | Constructor and Description |
---|---|
protected |
MetadataOperation(HiveSession parentSession,
OperationType opType) |
Modifier and Type | Method and Description |
---|---|
protected void |
authorizeMetaGets(HiveOperationType opType,
List<HivePrivilegeObject> inpObjs) |
protected void |
authorizeMetaGets(HiveOperationType opType,
List<HivePrivilegeObject> inpObjs,
String cmdString) |
void |
close() |
protected String |
convertIdentifierPattern(String pattern,
boolean datanucleusFormat)
Convert wildchars and escape sequence from JDBC format to datanucleous/regex
|
protected String |
convertSchemaPattern(String pattern)
Convert wildchars and escape sequence of schema pattern from JDBC format to datanucleous/regex
The schema pattern treats empty string also as wildchar
|
protected boolean |
isAuthV2Enabled() |
afterRun, assertState, beforeRun, cancel, cleanupOperationLog, createOperationLog, getBackgroundHandle, getConfiguration, getHandle, getLastAccessTime, getNextRowSet, getNextRowSet, getOperationLog, getOperationTimeout, getParentSession, getProtocolVersion, getResultSetSchema, getStatus, getType, hasResultSet, isCanceled, isFailed, isFinished, isRunning, isTimedOut, run, runInternal, setBackgroundHandle, setConfiguration, setHasResultSet, setOperationException, setOperationTimeout, setState, shouldRunAsync, toSQLException, unregisterOperationLog, validateDefaultFetchOrientation, validateFetchOrientation
protected static final String DEFAULT_HIVE_CATALOG
protected static TableSchema RESULT_SET_SCHEMA
protected MetadataOperation(HiveSession parentSession, OperationType opType)
public void close() throws HiveSQLException
close
in class Operation
HiveSQLException
protected String convertIdentifierPattern(String pattern, boolean datanucleusFormat)
protected String convertSchemaPattern(String pattern)
protected boolean isAuthV2Enabled()
protected void authorizeMetaGets(HiveOperationType opType, List<HivePrivilegeObject> inpObjs) throws HiveSQLException
HiveSQLException
protected void authorizeMetaGets(HiveOperationType opType, List<HivePrivilegeObject> inpObjs, String cmdString) throws HiveSQLException
HiveSQLException
Copyright © 2017 The Apache Software Foundation. All rights reserved.