| Constructor and Description |
|---|
SchemaImpl()
An empty schema without any columns.
|
SchemaImpl(List<String> names,
Map<String,TypeToken> nameToType) |
SchemaImpl(List<String> names,
Map<String,TypeToken> nameToType,
Set<String> nullableNames) |
| Modifier and Type | Method and Description |
|---|---|
static SchemaImpl |
create(List<String> names,
Map<String,TypeToken> nameToType) |
Schema |
createSubSchema(List<String> columnNames) |
boolean |
equals(Object obj) |
int |
getColumnCount() |
String |
getColumnName(int index) |
List<String> |
getColumnNames() |
TypeToken |
getColumnType(int index) |
TypeToken |
getColumnType(String name) |
Map<String,TypeToken> |
getTypeMap() |
int |
hashCode() |
boolean |
isNullable(String columnName) |
String |
toString() |
static void |
validateNames(List<String> names) |
public SchemaImpl()
public int getColumnCount()
getColumnCount in interface Schemapublic String getColumnName(int index)
getColumnName in interface Schemapublic TypeToken getColumnType(int index)
getColumnType in interface Schemapublic List<String> getColumnNames()
getColumnNames in interface Schemapublic TypeToken getColumnType(String name)
getColumnType in interface Schemapublic Map<String,TypeToken> getTypeMap()
getTypeMap in interface Schemapublic boolean isNullable(String columnName)
isNullable in interface Schemapublic Schema createSubSchema(List<String> columnNames)
createSubSchema in interface SchemaCopyright © 2014. All rights reserved.