public static byte schemaToColumnType ( String s ) { switch ( s . toLowerCase ( ) ) { case "boolean" : case "smallint" : case "tinyint" : case "bigint" : // FIXME: make sure this is fixed by Tomas. case "int" : case "float" : case "double" : case "decimal" : return Vec . T_NUM ; case "timestamp" : case "date" : return Vec . T_TIME ; case "enum" : return Vec . T_CAT ; case "string" : case "varchar" : // case "binary": // Removed binary column type support for now case "char" : return Vec . T_STR ; default : throw new IllegalArgumentException ( "Unsupported Orc schema type: " + s ) ; } }
Transform Orc column types into H2O type .