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_ORIENTATION, DEFAULT_FETCH_ORIENTATION_SET, hasResultSet, isOperationLogEnabled, LOG, operationComplete, operationException, operationLog, operationStart, parentSession, queryState, scopeStates, terminalStates| 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 |
cancel(OperationState stateAfterCancel) |
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, cleanupOperationLog, createOperationLog, getBackgroundHandle, getBeginTime, getHandle, getLastAccessTime, getNextRowSet, getOperationComplete, getOperationLog, getOperationStart, getOperationTimeout, getParentSession, getProtocolVersion, getResultSetSchema, getState, getStatus, getTaskStatus, getType, hasResultSet, isDone, isTimedOut, markOperationCompletedTime, markOperationStartTime, onNewState, run, runInternal, setBackgroundHandle, setHasResultSet, setOperationException, setOperationTimeout, setState, shouldRunAsync, toSQLException, updateOperationStateMetrics, validateDefaultFetchOrientation, validateFetchOrientationprotected 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 OperationHiveSQLExceptionprotected String convertIdentifierPattern(String pattern, boolean datanucleusFormat)
protected String convertSchemaPattern(String pattern)
protected boolean isAuthV2Enabled()
protected void authorizeMetaGets(HiveOperationType opType, List<HivePrivilegeObject> inpObjs) throws HiveSQLException
HiveSQLExceptionprotected void authorizeMetaGets(HiveOperationType opType, List<HivePrivilegeObject> inpObjs, String cmdString) throws HiveSQLException
HiveSQLExceptionpublic void cancel(OperationState stateAfterCancel) throws HiveSQLException
cancel in class OperationHiveSQLExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.