|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hcatalog.data.schema.HCatFieldSchema
public class HCatFieldSchema
Nested Class Summary | |
---|---|
static class |
HCatFieldSchema.Category
|
static class |
HCatFieldSchema.Type
|
Constructor Summary | |
---|---|
HCatFieldSchema(java.lang.String fieldName,
HCatFieldSchema.Type type,
HCatFieldSchema.Type mapKeyType,
HCatSchema mapValueSchema,
java.lang.String comment)
Constructor for constructing a MAP type HCatFieldSchema, passing type of key and value |
|
HCatFieldSchema(java.lang.String fieldName,
HCatFieldSchema.Type type,
HCatSchema subSchema,
java.lang.String comment)
Constructor for constructing a ARRAY type or STRUCT type HCatFieldSchema, passing type and subschema |
|
HCatFieldSchema(java.lang.String fieldName,
HCatFieldSchema.Type type,
java.lang.String comment)
Constructor constructing a primitive datatype HCatFieldSchema |
Method Summary | |
---|---|
HCatSchema |
getArrayElementSchema()
|
HCatFieldSchema.Category |
getCategory()
Returns category of the field |
java.lang.String |
getComment()
|
HCatFieldSchema.Type |
getMapKeyType()
|
HCatSchema |
getMapValueSchema()
|
java.lang.String |
getName()
Returns name of the field |
HCatSchema |
getStructSubSchema()
|
HCatFieldSchema.Type |
getType()
Returns type of the field |
java.lang.String |
getTypeString()
|
boolean |
isComplex()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HCatFieldSchema(java.lang.String fieldName, HCatFieldSchema.Type type, java.lang.String comment) throws HCatException
fieldName
- Name of the primitive fieldtype
- Type of the primitive field
HCatException
- if call made on non-primitive typespublic HCatFieldSchema(java.lang.String fieldName, HCatFieldSchema.Type type, HCatSchema subSchema, java.lang.String comment) throws HCatException
fieldName
- Name of the array or struct fieldtype
- Type of the field - either Type.ARRAY or Type.STRUCTsubSchema
- - subschema of the struct, or element schema of the elements in the array
HCatException
- if call made on Primitive or Map typespublic HCatFieldSchema(java.lang.String fieldName, HCatFieldSchema.Type type, HCatFieldSchema.Type mapKeyType, HCatSchema mapValueSchema, java.lang.String comment) throws HCatException
fieldName
- Name of the array or struct fieldtype
- Type of the field - must be Type.MAPmapKeyType
- - key type of the MapmapValueSchema
- - subschema of the value of the Map
HCatException
- if call made on non-Map typesMethod Detail |
---|
public boolean isComplex()
public HCatFieldSchema.Type getType()
public HCatFieldSchema.Category getCategory()
public java.lang.String getName()
public java.lang.String getComment()
public HCatSchema getStructSubSchema() throws HCatException
HCatException
public HCatSchema getArrayElementSchema() throws HCatException
HCatException
public HCatFieldSchema.Type getMapKeyType() throws HCatException
HCatException
public HCatSchema getMapValueSchema() throws HCatException
HCatException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getTypeString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |