org.apache.hive.service.cli.ICLIService Maven / Gradle / Ivy
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hive.service.cli;
import java.util.List;
import java.util.Map;
import org.apache.hive.service.auth.HiveAuthFactory;
public interface ICLIService {
public abstract SessionHandle openSession(String username, String password,
Map configuration)
throws HiveSQLException;
public abstract SessionHandle openSessionWithImpersonation(String username, String password,
Map configuration, String delegationToken)
throws HiveSQLException;
public abstract void closeSession(SessionHandle sessionHandle)
throws HiveSQLException;
public abstract GetInfoValue getInfo(SessionHandle sessionHandle, GetInfoType infoType)
throws HiveSQLException;
public abstract OperationHandle executeStatement(SessionHandle sessionHandle, String statement,
Map confOverlay)
throws HiveSQLException;
public abstract OperationHandle executeStatementAsync(SessionHandle sessionHandle,
String statement, Map confOverlay)
throws HiveSQLException;
public abstract OperationHandle getTypeInfo(SessionHandle sessionHandle)
throws HiveSQLException;
public abstract OperationHandle getCatalogs(SessionHandle sessionHandle)
throws HiveSQLException;
public abstract OperationHandle getSchemas(SessionHandle sessionHandle,
String catalogName, String schemaName)
throws HiveSQLException;
public abstract OperationHandle getTables(SessionHandle sessionHandle,
String catalogName, String schemaName, String tableName, List tableTypes)
throws HiveSQLException;
public abstract OperationHandle getTableTypes(SessionHandle sessionHandle)
throws HiveSQLException;
public abstract OperationHandle getColumns(SessionHandle sessionHandle,
String catalogName, String schemaName, String tableName, String columnName)
throws HiveSQLException;
public abstract OperationHandle getFunctions(SessionHandle sessionHandle,
String catalogName, String schemaName, String functionName)
throws HiveSQLException;
public abstract OperationStatus getOperationStatus(OperationHandle opHandle)
throws HiveSQLException;
public abstract void cancelOperation(OperationHandle opHandle)
throws HiveSQLException;
public abstract void closeOperation(OperationHandle opHandle)
throws HiveSQLException;
public abstract TableSchema getResultSetMetadata(OperationHandle opHandle)
throws HiveSQLException;
public abstract RowSet fetchResults(OperationHandle opHandle, FetchOrientation orientation,
long maxRows)
throws HiveSQLException;
public abstract RowSet fetchResults(OperationHandle opHandle)
throws HiveSQLException;
public abstract String getDelegationToken(SessionHandle sessionHandle, HiveAuthFactory authFactory,
String owner, String renewer) throws HiveSQLException;
public abstract void cancelDelegationToken(SessionHandle sessionHandle, HiveAuthFactory authFactory,
String tokenStr) throws HiveSQLException;
public abstract void renewDelegationToken(SessionHandle sessionHandle, HiveAuthFactory authFactory,
String tokenStr) throws HiveSQLException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy