Back to home page

OSCL-LXR

 
 

    


0001 /**
0002  * Licensed to the Apache Software Foundation (ASF) under one
0003  * or more contributor license agreements.  See the NOTICE file
0004  * distributed with this work for additional information
0005  * regarding copyright ownership.  The ASF licenses this file
0006  * to you under the Apache License, Version 2.0 (the
0007  * "License"); you may not use this file except in compliance
0008  * with the License.  You may obtain a copy of the License at
0009  *
0010  *     http://www.apache.org/licenses/LICENSE-2.0
0011  *
0012  * Unless required by applicable law or agreed to in writing, software
0013  * distributed under the License is distributed on an "AS IS" BASIS,
0014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0015  * See the License for the specific language governing permissions and
0016  * limitations under the License.
0017  */
0018 
0019 package org.apache.hive.service.cli.operation;
0020 
0021 import java.util.Set;
0022 
0023 import org.apache.hadoop.hive.common.classification.InterfaceAudience;
0024 import org.apache.hadoop.hive.common.classification.InterfaceStability;
0025 
0026 @InterfaceAudience.Public
0027 @InterfaceStability.Evolving
0028 public interface TableTypeMapping {
0029   /**
0030    * Map client's table type name to hive's table type
0031    * @param clientTypeName
0032    * @return
0033    */
0034   String[] mapToHiveType(String clientTypeName);
0035 
0036   /**
0037    * Map hive's table type name to client's table type
0038    * @param hiveTypeName
0039    * @return
0040    */
0041   String mapToClientType(String hiveTypeName);
0042 
0043   /**
0044    * Get all the table types of this mapping
0045    * @return
0046    */
0047   Set<String> getTableTypeNames();
0048 }