| Constructor and Description |
|---|
Schema.ColumnSchema(Schema.ColumnSchema cs)
copy ctor
|
Schema.ColumnSchema(String a,
ColumnType t)
construct a ColumnSchema for a native type
|
Schema.ColumnSchema(String a,
Schema s)
construct a Column schema for a RECORD column type
|
Schema.ColumnSchema(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
|
String |
getName()
access function to get the column name
|
Schema |
getSchema() |
ColumnType |
getType()
access function to get the column type
|
String |
toString()
string representation of the schema
|
public Schema.ColumnSchema(String a, ColumnType t)
a - column namet - native column typepublic Schema.ColumnSchema(String a, Schema s)
a - column names - column schemapublic Schema.ColumnSchema(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 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 String toString()
public Schema getSchema()
Copyright © 2007-2012 The Apache Software Foundation