public class HCatSchemaUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HCatSchemaUtils.CollectionBuilder |
static class |
HCatSchemaUtils.HCatSchemaBuilder |
static class |
HCatSchemaUtils.MapBuilder |
Constructor and Description |
---|
HCatSchemaUtils() |
Modifier and Type | Method and Description |
---|---|
static FieldSchema |
getFieldSchema(HCatFieldSchema hcatFieldSchema) |
static List<FieldSchema> |
getFieldSchemas(List<HCatFieldSchema> hcatFieldSchemas) |
static HCatFieldSchema |
getHCatFieldSchema(FieldSchema fs)
Convert a HCatFieldSchema to a FieldSchema
|
static HCatSchema |
getHCatSchema(List<? extends FieldSchema> fslist) |
static HCatSchema |
getHCatSchema(Schema schema) |
static HCatSchema |
getHCatSchema(String schemaString) |
static HCatSchema |
getHCatSchema(TypeInfo typeInfo) |
static HCatSchema |
getHCatSchemaFromTypeString(String typeString) |
static HCatSchemaUtils.CollectionBuilder |
getListSchemaBuilder() |
static HCatSchemaUtils.MapBuilder |
getMapSchemaBuilder() |
static HCatSchemaUtils.CollectionBuilder |
getStructSchemaBuilder() |
public static HCatSchemaUtils.CollectionBuilder getStructSchemaBuilder()
public static HCatSchemaUtils.CollectionBuilder getListSchemaBuilder()
public static HCatSchemaUtils.MapBuilder getMapSchemaBuilder()
public static HCatFieldSchema getHCatFieldSchema(FieldSchema fs) throws HCatException
fs
- FieldSchema to convertHCatException
public static HCatSchema getHCatSchema(Schema schema) throws HCatException
HCatException
public static HCatSchema getHCatSchema(List<? extends FieldSchema> fslist) throws HCatException
HCatException
public static HCatSchema getHCatSchema(TypeInfo typeInfo) throws HCatException
HCatException
public static HCatSchema getHCatSchemaFromTypeString(String typeString) throws HCatException
HCatException
public static HCatSchema getHCatSchema(String schemaString) throws HCatException
HCatException
public static FieldSchema getFieldSchema(HCatFieldSchema hcatFieldSchema)
public static List<FieldSchema> getFieldSchemas(List<HCatFieldSchema> hcatFieldSchemas)
Copyright © 2017 The Apache Software Foundation. All rights reserved.