PageRenderTime 27ms CodeModel.GetById 13ms app.highlight 10ms RepoModel.GetById 2ms app.codeStats 0ms

/tags/release-0.1-rc2/hive/external/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/Constants.java

#
Java | 111 lines | 69 code | 37 blank | 5 comment | 0 complexity | 83eb6ed61c7c873b300b32982b1d9017 MD5 | raw file
  1/**
  2 * Autogenerated by Thrift
  3 *
  4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  5 */
  6package org.apache.hadoop.hive.serde;
  7
  8import java.util.List;
  9import java.util.ArrayList;
 10import java.util.Map;
 11import java.util.HashMap;
 12import java.util.EnumMap;
 13import java.util.Set;
 14import java.util.HashSet;
 15import java.util.EnumSet;
 16import java.util.Collections;
 17import java.util.BitSet;
 18import java.nio.ByteBuffer;
 19import java.util.Arrays;
 20import org.slf4j.Logger;
 21import org.slf4j.LoggerFactory;
 22
 23public class Constants {
 24
 25  public static final String SERIALIZATION_LIB = "serialization.lib";
 26
 27  public static final String SERIALIZATION_CLASS = "serialization.class";
 28
 29  public static final String SERIALIZATION_FORMAT = "serialization.format";
 30
 31  public static final String SERIALIZATION_DDL = "serialization.ddl";
 32
 33  public static final String SERIALIZATION_NULL_FORMAT = "serialization.null.format";
 34
 35  public static final String SERIALIZATION_LAST_COLUMN_TAKES_REST = "serialization.last.column.takes.rest";
 36
 37  public static final String SERIALIZATION_SORT_ORDER = "serialization.sort.order";
 38
 39  public static final String SERIALIZATION_USE_JSON_OBJECTS = "serialization.use.json.object";
 40
 41  public static final String FIELD_DELIM = "field.delim";
 42
 43  public static final String COLLECTION_DELIM = "colelction.delim";
 44
 45  public static final String LINE_DELIM = "line.delim";
 46
 47  public static final String MAPKEY_DELIM = "mapkey.delim";
 48
 49  public static final String QUOTE_CHAR = "quote.delim";
 50
 51  public static final String ESCAPE_CHAR = "escape.delim";
 52
 53  public static final String VOID_TYPE_NAME = "void";
 54
 55  public static final String BOOLEAN_TYPE_NAME = "boolean";
 56
 57  public static final String TINYINT_TYPE_NAME = "tinyint";
 58
 59  public static final String SMALLINT_TYPE_NAME = "smallint";
 60
 61  public static final String INT_TYPE_NAME = "int";
 62
 63  public static final String BIGINT_TYPE_NAME = "bigint";
 64
 65  public static final String FLOAT_TYPE_NAME = "float";
 66
 67  public static final String DOUBLE_TYPE_NAME = "double";
 68
 69  public static final String STRING_TYPE_NAME = "string";
 70
 71  public static final String DATE_TYPE_NAME = "date";
 72
 73  public static final String DATETIME_TYPE_NAME = "datetime";
 74
 75  public static final String TIMESTAMP_TYPE_NAME = "timestamp";
 76
 77  public static final String LIST_TYPE_NAME = "array";
 78
 79  public static final String MAP_TYPE_NAME = "map";
 80
 81  public static final String STRUCT_TYPE_NAME = "struct";
 82
 83  public static final String UNION_TYPE_NAME = "uniontype";
 84
 85  public static final String LIST_COLUMNS = "columns";
 86
 87  public static final String LIST_COLUMN_TYPES = "columns.types";
 88
 89  public static final Set<String> PrimitiveTypes = new HashSet<String>();
 90  static {
 91    PrimitiveTypes.add("void");
 92    PrimitiveTypes.add("boolean");
 93    PrimitiveTypes.add("tinyint");
 94    PrimitiveTypes.add("smallint");
 95    PrimitiveTypes.add("int");
 96    PrimitiveTypes.add("bigint");
 97    PrimitiveTypes.add("float");
 98    PrimitiveTypes.add("double");
 99    PrimitiveTypes.add("string");
100    PrimitiveTypes.add("date");
101    PrimitiveTypes.add("datetime");
102    PrimitiveTypes.add("timestamp");
103  }
104
105  public static final Set<String> CollectionTypes = new HashSet<String>();
106  static {
107    CollectionTypes.add("array");
108    CollectionTypes.add("map");
109  }
110
111}