org.apache.hcatalog.data.schema
Class HCatSchemaUtils

java.lang.Object
  extended by org.apache.hcatalog.data.schema.HCatSchemaUtils

public class HCatSchemaUtils
extends java.lang.Object


Nested Class Summary
 class HCatSchemaUtils.CollectionBuilder
           
 class HCatSchemaUtils.HCatSchemaBuilder
           
 class HCatSchemaUtils.MapBuilder
           
 
Constructor Summary
HCatSchemaUtils()
           
 
Method Summary
static org.apache.hadoop.hive.metastore.api.FieldSchema getFieldSchema(HCatFieldSchema hcatFieldSchema)
           
static java.util.List<org.apache.hadoop.hive.metastore.api.FieldSchema> getFieldSchemas(java.util.List<HCatFieldSchema> hcatFieldSchemas)
           
static HCatFieldSchema getHCatFieldSchema(org.apache.hadoop.hive.metastore.api.FieldSchema fs)
          Convert a HCatFieldSchema to a FieldSchema
static HCatSchema getHCatSchema(java.util.List<? extends org.apache.hadoop.hive.metastore.api.FieldSchema> fslist)
           
static HCatSchema getHCatSchema(org.apache.hadoop.hive.metastore.api.Schema schema)
           
static HCatSchema getHCatSchema(java.lang.String schemaString)
           
static HCatSchema getHCatSchema(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo typeInfo)
           
static HCatSchema getHCatSchemaFromTypeString(java.lang.String typeString)
           
static HCatSchemaUtils.CollectionBuilder getListSchemaBuilder()
           
static HCatSchemaUtils.MapBuilder getMapSchemaBuilder()
           
static HCatSchemaUtils.CollectionBuilder getStructSchemaBuilder()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HCatSchemaUtils

public HCatSchemaUtils()
Method Detail

getStructSchemaBuilder

public static HCatSchemaUtils.CollectionBuilder getStructSchemaBuilder()

getListSchemaBuilder

public static HCatSchemaUtils.CollectionBuilder getListSchemaBuilder()

getMapSchemaBuilder

public static HCatSchemaUtils.MapBuilder getMapSchemaBuilder()

getHCatFieldSchema

public static HCatFieldSchema getHCatFieldSchema(org.apache.hadoop.hive.metastore.api.FieldSchema fs)
                                          throws HCatException
Convert a HCatFieldSchema to a FieldSchema

Parameters:
fs - FieldSchema to convert
Returns:
HCatFieldSchema representation of FieldSchema
Throws:
HCatException

getHCatSchema

public static HCatSchema getHCatSchema(org.apache.hadoop.hive.metastore.api.Schema schema)
                                throws HCatException
Throws:
HCatException

getHCatSchema

public static HCatSchema getHCatSchema(java.util.List<? extends org.apache.hadoop.hive.metastore.api.FieldSchema> fslist)
                                throws HCatException
Throws:
HCatException

getHCatSchema

public static HCatSchema getHCatSchema(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo typeInfo)
                                throws HCatException
Throws:
HCatException

getHCatSchemaFromTypeString

public static HCatSchema getHCatSchemaFromTypeString(java.lang.String typeString)
                                              throws HCatException
Throws:
HCatException

getHCatSchema

public static HCatSchema getHCatSchema(java.lang.String schemaString)
                                throws HCatException
Throws:
HCatException

getFieldSchema

public static org.apache.hadoop.hive.metastore.api.FieldSchema getFieldSchema(HCatFieldSchema hcatFieldSchema)

getFieldSchemas

public static java.util.List<org.apache.hadoop.hive.metastore.api.FieldSchema> getFieldSchemas(java.util.List<HCatFieldSchema> hcatFieldSchemas)