com.cloudera.sqoop.hive
Class HiveTypes

java.lang.Object
  extended by com.cloudera.sqoop.hive.HiveTypes

public final class HiveTypes
extends java.lang.Object

Defines conversion between SQL types and Hive types.


Field Summary
static org.apache.commons.logging.Log LOG
           
 
Method Summary
static boolean isHiveTypeImprovised(int sqlType)
           
static java.lang.String toHiveType(int sqlType)
          Given JDBC SQL types coming from another database, what is the best mapping to a Hive-specific type?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Method Detail

toHiveType

public static java.lang.String toHiveType(int sqlType)
Given JDBC SQL types coming from another database, what is the best mapping to a Hive-specific type?


isHiveTypeImprovised

public static boolean isHiveTypeImprovised(int sqlType)
Returns:
true if a sql type can't be translated to a precise match in Hive, and we have to cast it to something more generic.


Copyright © 2010 Cloudera, Inc.