public class FormatHiveAvro extends Format
Constructor and Description |
---|
FormatHiveAvro() |
Modifier and Type | Method and Description |
---|---|
void |
bottom(String table)
Format the bottom of the schema.
|
void |
init()
Reset so we can use this again.
|
void |
top(String schema,
String table,
boolean noDoc)
Format the top portion of the Hive schema file.
|
void |
writeField(ColumnInfo column,
boolean writeDefault)
Format the "middle" of the schema.
|
baos, getBuffer, getProperties, setFileName, setFileSuffix, validateDirectory, writFile
public void init()
public void top(String schema, String table, boolean noDoc) throws IOException
top
in class Format
schema
- the name of the schematable
- the name of the tablenoDoc
- unused. Specific to avro.IOException
- if an IO error occurspublic void bottom(String table)
public void writeField(ColumnInfo column, boolean writeDefault)
writeField
in class Format
column
- the name of the columnwriteDefault
- whether or not to include default valuesCopyright © 2016–2017. All rights reserved.