public static LazyPrimitive<? extends ObjectInspector, ? extends Writable> createLazyPrimitiveBinaryClass(PrimitiveObjectInspector poi) { PrimitiveCategory pc = poi.getPrimitiveCategory(); switch (pc) { case BOOLEAN: return new LazyDioBoolean((LazyBooleanObjectInspector) poi); case BYTE: return new LazyDioByte((LazyByteObjectInspector) poi); case SHORT: return new LazyDioShort((LazyShortObjectInspector) poi); case INT: return new LazyDioInteger((LazyIntObjectInspector) poi); case LONG: return new LazyDioLong((LazyLongObjectInspector) poi); case FLOAT: return new LazyDioFloat((LazyFloatObjectInspector) poi); case DOUBLE: return new LazyDioDouble((LazyDoubleObjectInspector) poi); case BINARY: return new LazyDioBinary((LazyBinaryObjectInspector) poi); case DECIMAL: return new LazyDioHiveDecimal((LazyHiveDecimalObjectInspector) poi); default: throw new RuntimeException("Hive Internal Error: no LazyObject for " + poi); } }
public static LazyPrimitive<? extends ObjectInspector, ? extends Writable> createLazyPrimitiveBinaryClass(PrimitiveObjectInspector poi) { PrimitiveCategory pc = poi.getPrimitiveCategory(); switch (pc) { case BOOLEAN: return new LazyDioBoolean((LazyBooleanObjectInspector) poi); case BYTE: return new LazyDioByte((LazyByteObjectInspector) poi); case SHORT: return new LazyDioShort((LazyShortObjectInspector) poi); case INT: return new LazyDioInteger((LazyIntObjectInspector) poi); case LONG: return new LazyDioLong((LazyLongObjectInspector) poi); case FLOAT: return new LazyDioFloat((LazyFloatObjectInspector) poi); case DOUBLE: return new LazyDioDouble((LazyDoubleObjectInspector) poi); default: throw new RuntimeException("Hive Internal Error: no LazyObject for " + poi); } }
public static LazyPrimitive<? extends ObjectInspector, ? extends Writable> createLazyPrimitiveBinaryClass(PrimitiveObjectInspector poi) { PrimitiveCategory pc = poi.getPrimitiveCategory(); switch (pc) { case BOOLEAN: return new LazyDioBoolean((LazyBooleanObjectInspector) poi); case BYTE: return new LazyDioByte((LazyByteObjectInspector) poi); case SHORT: return new LazyDioShort((LazyShortObjectInspector) poi); case INT: return new LazyDioInteger((LazyIntObjectInspector) poi); case LONG: return new LazyDioLong((LazyLongObjectInspector) poi); case FLOAT: return new LazyDioFloat((LazyFloatObjectInspector) poi); case DOUBLE: return new LazyDioDouble((LazyDoubleObjectInspector) poi); default: throw new RuntimeException("Hive Internal Error: no LazyObject for " + poi); } }
public static LazyPrimitive<? extends ObjectInspector, ? extends Writable> createLazyPrimitiveBinaryClass(PrimitiveObjectInspector poi) { PrimitiveCategory pc = poi.getPrimitiveCategory(); switch (pc) { case BOOLEAN: return new LazyDioBoolean((LazyBooleanObjectInspector) poi); case BYTE: return new LazyDioByte((LazyByteObjectInspector) poi); case SHORT: return new LazyDioShort((LazyShortObjectInspector) poi); case INT: return new LazyDioInteger((LazyIntObjectInspector) poi); case LONG: return new LazyDioLong((LazyLongObjectInspector) poi); case FLOAT: return new LazyDioFloat((LazyFloatObjectInspector) poi); case DOUBLE: return new LazyDioDouble((LazyDoubleObjectInspector) poi); default: throw new RuntimeException("Hive Internal Error: no LazyObject for " + poi); } }
public static LazyPrimitive<? extends ObjectInspector, ? extends Writable> createLazyPrimitiveBinaryClass(PrimitiveObjectInspector poi) { PrimitiveCategory pc = poi.getPrimitiveCategory(); switch (pc) { case BOOLEAN: return new LazyDioBoolean((LazyBooleanObjectInspector) poi); case BYTE: return new LazyDioByte((LazyByteObjectInspector) poi); case SHORT: return new LazyDioShort((LazyShortObjectInspector) poi); case INT: return new LazyDioInteger((LazyIntObjectInspector) poi); case LONG: return new LazyDioLong((LazyLongObjectInspector) poi); case FLOAT: return new LazyDioFloat((LazyFloatObjectInspector) poi); case DOUBLE: return new LazyDioDouble((LazyDoubleObjectInspector) poi); case BINARY: return new LazyDioBinary((LazyBinaryObjectInspector) poi); case DECIMAL: return new LazyDioHiveDecimal((LazyHiveDecimalObjectInspector) poi); default: throw new RuntimeException("Hive Internal Error: no LazyObject for " + poi); } }