PageRenderTime 43ms CodeModel.GetById 11ms RepoModel.GetById 0ms 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
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  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. #ifndef __thrift_server_constants_h__
  26. #define __thrift_server_constants_h__
  27. /// Maximum number of characters needed to display any field
  28. static const int MAX_DISPLAY_SIZE = 334;
  29. /// Maximum number of bytes needed to store any field
  30. static const int MAX_BYTE_LENGTH = 334;
  31. /// Default null format string representation
  32. static const char* DEFAULT_NULL_FORMAT = "\\N";
  33. /// Schema map property key for field delimiters
  34. static const char* FIELD_DELIM = "field.delim";
  35. /// Schema map property key for null format
  36. static const char* SERIALIZATION_NULL_FORMAT = "serialization.null.format";
  37. // From: serde/src/gen-java/org/apache/hadoop/hive/serde/Constants.java
  38. static const char* VOID_TYPE_NAME = "void";
  39. static const char* BOOLEAN_TYPE_NAME = "boolean";
  40. static const char* TINYINT_TYPE_NAME = "tinyint";
  41. static const char* SMALLINT_TYPE_NAME = "smallint";
  42. static const char* INT_TYPE_NAME = "int";
  43. static const char* BIGINT_TYPE_NAME = "bigint";
  44. static const char* FLOAT_TYPE_NAME = "float";
  45. static const char* DOUBLE_TYPE_NAME = "double";
  46. static const char* STRING_TYPE_NAME = "string";
  47. static const char* DATE_TYPE_NAME = "date";
  48. static const char* DATETIME_TYPE_NAME = "datetime";
  49. static const char* TIMESTAMP_TYPE_NAME = "timestamp";
  50. static const char* LIST_TYPE_NAME = "array";
  51. static const char* MAP_TYPE_NAME = "map";
  52. static const char* STRUCT_TYPE_NAME = "struct";
  53. #endif // __thrift_server_constants_h__