@Override public Object copyObject(Object o) { return o == null ? null : new LazyDouble((LazyDouble) o); }
return new LazyFloat((LazyFloatObjectInspector) oi); case DOUBLE: return new LazyDouble((LazyDoubleObjectInspector) oi); case STRING: return new LazyString((LazyStringObjectInspector) oi);
@Override public Object copyObject(Object o) { return o == null ? null : new LazyDouble((LazyDouble) o); }
@Override public Object copyObject(Object o) { return o == null ? null : new LazyDouble((LazyDouble) o); }
@Override public Object copyObject(Object o) { return o == null ? null : new LazyDouble((LazyDouble) o); }
@Override public Object copyObject(Object o) { return o == null ? null : new LazyDouble((LazyDouble) o); }
@Override public Object copyObject(Object o) { return o == null ? null : new LazyDouble((LazyDouble) o); }
/** * Create a lazy primitive class given the type name. */ public static LazyPrimitive<?, ?> createLazyPrimitiveClass( PrimitiveObjectInspector oi) { PrimitiveCategory p = oi.getPrimitiveCategory(); switch (p) { case BOOLEAN: return new LazyBoolean((LazyBooleanObjectInspector) oi); case BYTE: return new LazyByte((LazyByteObjectInspector) oi); case SHORT: return new LazyShort((LazyShortObjectInspector) oi); case INT: return new LazyInteger((LazyIntObjectInspector) oi); case LONG: return new LazyLong((LazyLongObjectInspector) oi); case FLOAT: return new LazyFloat((LazyFloatObjectInspector) oi); case DOUBLE: return new LazyDouble((LazyDoubleObjectInspector) oi); case STRING: return new LazyString((LazyStringObjectInspector) oi); default: throw new RuntimeException("Internal error: no LazyObject for " + p); } }
return new LazyFloat((LazyFloatObjectInspector) oi); case DOUBLE: return new LazyDouble((LazyDoubleObjectInspector) oi); case STRING: return new LazyString((LazyStringObjectInspector) oi);
return new LazyFloat((LazyFloatObjectInspector) oi); case DOUBLE: return new LazyDouble((LazyDoubleObjectInspector) oi); case STRING: return new LazyString((LazyStringObjectInspector) oi);
return new LazyFloat((LazyFloatObjectInspector) oi); case DOUBLE: return new LazyDouble((LazyDoubleObjectInspector) oi); case STRING: return new LazyString((LazyStringObjectInspector) oi);
return new LazyFloat((LazyFloatObjectInspector) oi); case DOUBLE: return new LazyDouble((LazyDoubleObjectInspector) oi); case STRING: return new LazyString((LazyStringObjectInspector) oi);