PageRenderTime 38ms CodeModel.GetById 13ms RepoModel.GetById 0ms 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
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  1. namespace java org.apache.hadoop.hive.serde
  2. namespace php org.apache.hadoop.hive.serde
  3. namespace py org_apache_hadoop_hive_serde
  4. namespace cpp Hive
  5. // name of serialization scheme.
  6. const string SERIALIZATION_LIB = "serialization.lib"
  7. const string SERIALIZATION_CLASS = "serialization.class"
  8. const string SERIALIZATION_FORMAT = "serialization.format"
  9. const string SERIALIZATION_DDL = "serialization.ddl"
  10. const string SERIALIZATION_NULL_FORMAT = "serialization.null.format"
  11. const string SERIALIZATION_LAST_COLUMN_TAKES_REST = "serialization.last.column.takes.rest"
  12. const string SERIALIZATION_SORT_ORDER = "serialization.sort.order"
  13. const string SERIALIZATION_USE_JSON_OBJECTS = "serialization.use.json.object"
  14. const string FIELD_DELIM = "field.delim"
  15. const string COLLECTION_DELIM = "colelction.delim"
  16. const string LINE_DELIM = "line.delim"
  17. const string MAPKEY_DELIM = "mapkey.delim"
  18. const string QUOTE_CHAR = "quote.delim"
  19. const string ESCAPE_CHAR = "escape.delim"
  20. typedef string PrimitiveType
  21. typedef string CollectionType
  22. const string VOID_TYPE_NAME = "void";
  23. const string BOOLEAN_TYPE_NAME = "boolean";
  24. const string TINYINT_TYPE_NAME = "tinyint";
  25. const string SMALLINT_TYPE_NAME = "smallint";
  26. const string INT_TYPE_NAME = "int";
  27. const string BIGINT_TYPE_NAME = "bigint";
  28. const string FLOAT_TYPE_NAME = "float";
  29. const string DOUBLE_TYPE_NAME = "double";
  30. const string STRING_TYPE_NAME = "string";
  31. const string DATE_TYPE_NAME = "date";
  32. const string DATETIME_TYPE_NAME = "datetime";
  33. const string TIMESTAMP_TYPE_NAME = "timestamp";
  34. const string LIST_TYPE_NAME = "array";
  35. const string MAP_TYPE_NAME = "map";
  36. const string STRUCT_TYPE_NAME = "struct";
  37. const string UNION_TYPE_NAME = "uniontype";
  38. const string LIST_COLUMNS = "columns";
  39. const string LIST_COLUMN_TYPES = "columns.types";
  40. const 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 ],
  41. const set<string> CollectionTypes = [ LIST_TYPE_NAME MAP_TYPE_NAME ],