public static class Schema.ColumnSchema
extends java.lang.Object
| Constructor and Description |
|---|
Schema.ColumnSchema(Schema.ColumnSchema cs)
copy ctor
|
Schema.ColumnSchema(java.lang.String a,
ColumnType t)
construct a ColumnSchema for a native type
|
Schema.ColumnSchema(java.lang.String a,
Schema s)
construct a Column schema for a RECORD column type
|
Schema.ColumnSchema(java.lang.String a,
Schema s,
ColumnType t)
construct a column schema for a complex column type
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(Schema.ColumnSchema fschema,
Schema.ColumnSchema fother)
Compare two field schema for equality
|
int |
getIndex()
access function to get the column name
|
java.lang.String |
getName()
access function to get the column name
|
Schema |
getSchema() |
ColumnType |
getType()
access function to get the column type
|
java.lang.String |
toString()
string representation of the schema
|
public Schema.ColumnSchema(java.lang.String a,
ColumnType t)
a - column namet - native column typepublic Schema.ColumnSchema(java.lang.String a,
Schema s)
a - column names - column schemapublic Schema.ColumnSchema(java.lang.String a,
Schema s,
ColumnType t)
throws ParseException
a - column names - column schemat - complex column typeParseExceptionpublic Schema.ColumnSchema(Schema.ColumnSchema cs)
cs - source column schemapublic java.lang.String getName()
public ColumnType getType()
public int getIndex()
public static boolean equals(Schema.ColumnSchema fschema, Schema.ColumnSchema fother)
fschema - one column schema to be comparedfother - the other column schema to be comparedpublic java.lang.String toString()
toString in class java.lang.Objectpublic Schema getSchema()
Copyright © 2007-2012 The Apache Software Foundation