APISonar


org.apache.ambari.view.hive.client.ColumnDescription.DataTypes.DATE

> org > apache > ambari > view > hive > client > ColumnDescription > DataTypes > DATE
org APIs apache APIs ambari APIs view APIs hive APIs client APIs ColumnDescription APIs DataTypes APIs DATE APIs

Example 1
public static ColumnDescription.DataTypes detectHiveDataType(Object object) {
    // detect Integer
    if (isInteger(object)) return ColumnDescription.DataTypes.INT;
    if (isLong(object)) return ColumnDescription.DataTypes.BIGINT;
    if (isBoolean(object)) return ColumnDescription.DataTypes.BOOLEAN;
    if (isDouble(object)) return ColumnDescription.DataTypes.DOUBLE;
    if (isDate(object)) return ColumnDescription.DataTypes.DATE;
    if (isChar(object)) return ColumnDescription.DataTypes.CHAR;

    return ColumnDescription.DataTypes.STRING;
  }