PageRenderTime 27ms CodeModel.GetById 8ms app.highlight 15ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/release-0.0.0-rc0/hive/external/serde/if/serde.thrift

#
Thrift | 51 lines | 40 code | 10 blank | 1 comment | 0 complexity | f367416a60d3bf9d14df40e1fdb1ef1a MD5 | raw file
 1
 2namespace java org.apache.hadoop.hive.serde
 3namespace php org.apache.hadoop.hive.serde
 4namespace py org_apache_hadoop_hive_serde
 5namespace cpp Hive
 6
 7  // name of serialization scheme.
 8const string SERIALIZATION_LIB = "serialization.lib"
 9const string SERIALIZATION_CLASS = "serialization.class"
10const string SERIALIZATION_FORMAT = "serialization.format"
11const string SERIALIZATION_DDL = "serialization.ddl"
12const string SERIALIZATION_NULL_FORMAT = "serialization.null.format"
13const string SERIALIZATION_LAST_COLUMN_TAKES_REST = "serialization.last.column.takes.rest"
14const string SERIALIZATION_SORT_ORDER = "serialization.sort.order"
15const string SERIALIZATION_USE_JSON_OBJECTS = "serialization.use.json.object"
16
17const string FIELD_DELIM = "field.delim"
18const string COLLECTION_DELIM = "colelction.delim"
19const string LINE_DELIM = "line.delim"
20const string MAPKEY_DELIM = "mapkey.delim"
21const string QUOTE_CHAR = "quote.delim"
22const string ESCAPE_CHAR = "escape.delim"
23
24typedef string PrimitiveType
25typedef string CollectionType
26
27const string VOID_TYPE_NAME       = "void";
28const string BOOLEAN_TYPE_NAME  = "boolean";
29const string TINYINT_TYPE_NAME   = "tinyint";
30const string SMALLINT_TYPE_NAME  = "smallint";
31const string INT_TYPE_NAME       = "int";
32const string BIGINT_TYPE_NAME    = "bigint";
33const string FLOAT_TYPE_NAME     = "float";
34const string DOUBLE_TYPE_NAME    = "double";
35const string STRING_TYPE_NAME    = "string";
36const string DATE_TYPE_NAME      = "date";
37const string DATETIME_TYPE_NAME  = "datetime";
38const string TIMESTAMP_TYPE_NAME = "timestamp";
39
40const string LIST_TYPE_NAME = "array";
41const string MAP_TYPE_NAME  = "map";
42const string STRUCT_TYPE_NAME  = "struct";
43const string UNION_TYPE_NAME  = "uniontype";
44
45const string LIST_COLUMNS = "columns";
46const string LIST_COLUMN_TYPES = "columns.types";
47
48const set<string> PrimitiveTypes  = [ VOID_TYPE_NAME BOOLEAN_TYPE_NAME TINYINT_TYPE_NAME SMALLINT_TYPE_NAME INT_TYPE_NAME BIGINT_TYPE_NAME FLOAT_TYPE_NAME DOUBLE_TYPE_NAME STRING_TYPE_NAME  DATE_TYPE_NAME DATETIME_TYPE_NAME TIMESTAMP_TYPE_NAME ],
49const set<string> CollectionTypes = [ LIST_TYPE_NAME MAP_TYPE_NAME ],
50
51