PageRenderTime 34ms CodeModel.GetById 26ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/release-0.1-rc2/hive/external/odbc/src/cpp/thriftserverconstants.h

#
C Header | 64 lines | 23 code | 11 blank | 30 comment | 0 complexity | da121baf3800f1c1750b7ee919704591 MD5 | raw file
 1/**************************************************************************//**
 2 *
 3 * Licensed to the Apache Software Foundation (ASF) under one
 4 * or more contributor license agreements.  See the NOTICE file
 5 * distributed with this work for additional information
 6 * regarding copyright ownership.  The ASF licenses this file
 7 * to you under the Apache License, Version 2.0 (the
 8 * "License"); you may not use this file except in compliance
 9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 ******************************************************************************
20 *
21 * @file thriftserverconstants.h
22 * @brief Provides constants necessary for Hive Client interaction with Hive Server
23 *
24 *****************************************************************************/
25
26
27#ifndef __thrift_server_constants_h__
28#define __thrift_server_constants_h__
29
30/// Maximum number of characters needed to display any field
31static const int MAX_DISPLAY_SIZE = 334;
32/// Maximum number of bytes needed to store any field
33static const int MAX_BYTE_LENGTH  = 334;
34
35
36/// Default null format string representation
37static const char* DEFAULT_NULL_FORMAT = "\\N";
38
39/// Schema map property key for field delimiters
40static const char* FIELD_DELIM = "field.delim";
41/// Schema map property key for null format
42static const char* SERIALIZATION_NULL_FORMAT = "serialization.null.format";
43
44
45// From: serde/src/gen-java/org/apache/hadoop/hive/serde/Constants.java
46
47static const char* VOID_TYPE_NAME      = "void";
48static const char* BOOLEAN_TYPE_NAME   = "boolean";
49static const char* TINYINT_TYPE_NAME   = "tinyint";
50static const char* SMALLINT_TYPE_NAME  = "smallint";
51static const char* INT_TYPE_NAME       = "int";
52static const char* BIGINT_TYPE_NAME    = "bigint";
53static const char* FLOAT_TYPE_NAME     = "float";
54static const char* DOUBLE_TYPE_NAME    = "double";
55static const char* STRING_TYPE_NAME    = "string";
56static const char* DATE_TYPE_NAME      = "date";
57static const char* DATETIME_TYPE_NAME  = "datetime";
58static const char* TIMESTAMP_TYPE_NAME = "timestamp";
59static const char* LIST_TYPE_NAME      = "array";
60static const char* MAP_TYPE_NAME       = "map";
61static const char* STRUCT_TYPE_NAME    = "struct";
62
63
64#endif // __thrift_server_constants_h__