Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
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.hadoop.hive.metastore;
 
 import java.util.List;
 
 import  org.apache.hadoop.conf.Configurable;
 
 public interface RawStore extends Configurable {
 
   public abstract void shutdown();

  
Opens a new one or the one already created Every call of this function must have corresponding commit or rollback function call

Returns:
an active transaction
 
 
   public abstract boolean openTransaction();

  
if this is the commit of the first open call then an actual commit is called.

Returns:
true or false
 
   public abstract boolean commitTransaction();

  
Rolls back the current transaction if it is active
 
   public abstract void rollbackTransaction();
 
   public abstract void createDatabase(Database db)
       throws InvalidObjectExceptionMetaException;
 
   public abstract Database getDatabase(String name)
       throws NoSuchObjectException;
 
   public abstract boolean dropDatabase(String dbnamethrows NoSuchObjectExceptionMetaException;
 
   public abstract boolean alterDatabase(String dbnameDatabase dbthrows NoSuchObjectExceptionMetaException;
 
   public abstract List<StringgetDatabases(String patternthrows MetaException;
 
   public abstract List<StringgetAllDatabases() throws MetaException;
 
   public abstract boolean createType(Type type);
 
   public abstract Type getType(String typeName);
 
   public abstract boolean dropType(String typeName);
 
   public abstract void createTable(Table tblthrows InvalidObjectException,
       MetaException;
 
   public abstract boolean dropTable(String dbNameString tableName)
       throws MetaException;
 
   public abstract Table getTable(String dbNameString tableName)
       throws MetaException;
 
   public abstract boolean addPartition(Partition part)
  public abstract Partition getPartition(String dbNameString tableName,
      List<Stringpart_valsthrows MetaExceptionNoSuchObjectException;
  public abstract boolean dropPartition(String dbNameString tableName,
      List<Stringpart_valsthrows MetaException;
  public abstract List<PartitiongetPartitions(String dbName,
      String tableNameint maxthrows MetaException;
  public abstract void alterTable(String dbnameString nameTable newTable)
  public List<StringgetTables(String dbNameString pattern)
      throws MetaException;
  public List<StringgetAllTables(String dbNamethrows MetaException;
  public abstract List<StringlistPartitionNames(String db_name,
      String tbl_nameshort max_partsthrows MetaException;
  public abstract List<StringlistPartitionNamesByFilter(String db_name,
      String tbl_nameString filtershort max_partsthrows MetaException;
  public abstract void alterPartition(String db_nameString tbl_name,
      Partition new_partthrows InvalidObjectExceptionMetaException;
  public abstract boolean addIndex(Index index)
  public abstract Index getIndex(String dbNameString origTableNameString indexNamethrows MetaException;
  public abstract boolean dropIndex(String dbNameString origTableNameString indexNamethrows MetaException;
  public abstract List<IndexgetIndexes(String dbName,
      String origTableNameint maxthrows MetaException;
  public abstract List<StringlistIndexNames(String dbName,
      String origTableNameshort maxthrows MetaException;
  public abstract void alterIndex(String dbnameString baseTblNameString nameIndex newIndex)
  public abstract List<PartitiongetPartitionsByFilter(
      String dbNameString tblNameString filtershort maxParts)
  
  public abstract boolean addRole(String rowNameString ownerName)
  
  public abstract boolean removeRole(String roleNamethrows MetaExceptionNoSuchObjectException;
  
  public abstract boolean grantRole(Role roleString userNamePrincipalType principalType,
      String grantorPrincipalType grantorTypeboolean grantOption
  
  public abstract boolean revokeRole(Role roleString userNamePrincipalType principalType
  public abstract PrincipalPrivilegeSet getUserPrivilegeSet(String userName,
      List<StringgroupNamesthrows InvalidObjectExceptionMetaException;
  
  public abstract PrincipalPrivilegeSet getDBPrivilegeSet (String dbNameString userName
      List<StringgroupNames)  throws InvalidObjectExceptionMetaException;
  
  public abstract PrincipalPrivilegeSet getTablePrivilegeSet (String dbNameString tableName
      String userNameList<StringgroupNamesthrows InvalidObjectExceptionMetaException;
  
  public abstract PrincipalPrivilegeSet getPartitionPrivilegeSet (String dbNameString tableName
      String partitionString userNameList<StringgroupNamesthrows InvalidObjectExceptionMetaException;
  
  public abstract PrincipalPrivilegeSet getColumnPrivilegeSet (String dbNameString tableNameString partitionName
      String columnNameString userNameList<StringgroupNamesthrows InvalidObjectExceptionMetaException;
  
  public abstract List<MGlobalPrivilegelistPrincipalGlobalGrants(String principalName,
      PrincipalType principalType);
  
  public abstract List<MDBPrivilegelistPrincipalDBGrants(String principalName,
      PrincipalType principalTypeString dbName);
  public abstract List<MTablePrivilegelistAllTableGrants(
      String principalNamePrincipalType principalTypeString dbName,
      String tableName);
  
      String principalNamePrincipalType principalTypeString dbName,
      String tableNameString partName);
  
      String principalNamePrincipalType principalTypeString dbName,
      String tableNameString columnName);
      String principalNamePrincipalType principalTypeString dbName,
      String tableNameString partNameString columnName);
  
  public abstract boolean grantPrivileges (PrivilegeBag privileges
  
  public abstract boolean revokePrivileges  (PrivilegeBag privileges
  public abstract org.apache.hadoop.hive.metastore.api.Role getRole(
      String roleNamethrows NoSuchObjectException;
  public List<StringlistRoleNames();
  
  public List<MRoleMaplistRoles(String principalName,
      PrincipalType principalType);
  
  public abstract Partition getPartitionWithAuth(String dbNameString tblName,
      List<StringpartValsString user_nameList<Stringgroup_names)
  public abstract List<PartitiongetPartitionsWithAuth(String dbName,
      String tblNameshort maxPartsString userNameList<StringgroupNames)
New to GrepCode? Check out our FAQ X