public GetTableTypesOperation newGetTableTypesOperation(HiveSession parentSession) { GetTableTypesOperation operation = new GetTableTypesOperation(parentSession); addOperation(operation); return operation; }
public GetFunctionsOperation newGetFunctionsOperation(HiveSession parentSession, String catalogName, String schemaName, String functionName) { GetFunctionsOperation operation = new GetFunctionsOperation(parentSession, catalogName, schemaName, functionName); addOperation(operation); return operation; }
public GetPrimaryKeysOperation newGetPrimaryKeysOperation(HiveSession parentSession, String catalogName, String schemaName, String tableName) { GetPrimaryKeysOperation operation = new GetPrimaryKeysOperation(parentSession, catalogName, schemaName, tableName); addOperation(operation); return operation; }
@Override public void close() throws HiveSQLException { setState(OperationState.CLOSED); tearDownSessionIO(); cleanTmpFile(); cleanupOperationLog(0); }
public GetColumnsOperation newGetColumnsOperation(HiveSession parentSession, String catalogName, String schemaName, String tableName, String columnName) { GetColumnsOperation operation = new GetColumnsOperation(parentSession, catalogName, schemaName, tableName, columnName); addOperation(operation); return operation; }
public GetTypeInfoOperation newGetTypeInfoOperation(HiveSession parentSession) { GetTypeInfoOperation operation = new GetTypeInfoOperation(parentSession); addOperation(operation); return operation; }
public GetCatalogsOperation newGetCatalogsOperation(HiveSession parentSession) { GetCatalogsOperation operation = new GetCatalogsOperation(parentSession); addOperation(operation); return operation; }
public GetSchemasOperation newGetSchemasOperation(HiveSession parentSession, String catalogName, String schemaName) { GetSchemasOperation operation = new GetSchemasOperation(parentSession, catalogName, schemaName); addOperation(operation); return operation; }
public ExecuteStatementOperation newExecuteStatementOperation(HiveSession parentSession, String statement, Map<String, String> confOverlay, boolean runAsync, long queryTimeout) throws HiveSQLException { ExecuteStatementOperation executeStatementOperation = ExecuteStatementOperation.newExecuteStatementOperation(parentSession, statement, confOverlay, runAsync, queryTimeout); addOperation(executeStatementOperation); return executeStatementOperation; }
public MetadataOperation newGetTablesOperation(HiveSession parentSession, String catalogName, String schemaName, String tableName, List<String> tableTypes) { MetadataOperation operation = new GetTablesOperation(parentSession, catalogName, schemaName, tableName, tableTypes); addOperation(operation); return operation; }
public TableSchema getOperationResultSetSchema(OperationHandle opHandle) throws HiveSQLException { return getOperation(opHandle).getResultSetSchema(); }
public OperationStatus getOperationStatus(OperationHandle opHandle) throws HiveSQLException { return getOperation(opHandle).getStatus(); }
public RowSet getOperationNextRowSet(OperationHandle opHandle, FetchOrientation orientation, long maxRows) throws HiveSQLException { return getOperation(opHandle).getNextRowSet(orientation, maxRows); }
@Override public void close() throws HiveSQLException { cleanup(OperationState.CLOSED); cleanupOperationLog(0); }
@Override public void close() throws HiveSQLException { setState(OperationState.CLOSED); cleanupOperationLog(0); }
public GetCrossReferenceOperation newGetCrossReferenceOperation( HiveSession session, String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable) { GetCrossReferenceOperation operation = new GetCrossReferenceOperation(session, primaryCatalog, primarySchema, primaryTable, foreignCatalog, foreignSchema, foreignTable); addOperation(operation); return operation; }
/** * Verify if the given fetch orientation is part of the default orientation types. * @param orientation * @throws HiveSQLException */ protected void validateDefaultFetchOrientation(FetchOrientation orientation) throws HiveSQLException { validateFetchOrientation(orientation, DEFAULT_FETCH_ORIENTATION_SET); }
/** * Convert wildchars and escape sequence from JDBC format to datanucleous/regex */ protected String convertIdentifierPattern(final String pattern, boolean datanucleusFormat) { if (pattern == null) { return convertPattern("%", true); } else { return convertPattern(pattern, datanucleusFormat); } }
/** * Cancel the running operation unless it is already in a terminal state * @param opHandle * @throws HiveSQLException */ public void cancelOperation(OperationHandle opHandle) throws HiveSQLException { cancelOperation(opHandle, ""); }
@Override protected boolean removeEldestEntry(Map.Entry eldest) { return size() > capacity; } }