org.apache.hcatalog.data.schema
Class HCatSchemaUtils
java.lang.Object
org.apache.hcatalog.data.schema.HCatSchemaUtils
public class HCatSchemaUtils
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HCatSchemaUtils
public HCatSchemaUtils()
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)