public HiveIntervalDayTimeConverter(PrimitiveObjectInspector inputOI, SettableHiveIntervalDayTimeObjectInspector outputOI) { this.inputOI = inputOI; this.outputOI = outputOI; r = outputOI.create(new HiveIntervalDayTime()); }
@Override public Object writeValue(HiveIntervalDayTime value) throws HiveException { return ((SettableHiveIntervalDayTimeObjectInspector) this.objectInspector).set(obj, value); }
@Override public Object writeValue(HiveIntervalDayTimeWritable value) throws HiveException { return ((SettableHiveIntervalDayTimeObjectInspector) this.objectInspector).set(obj, value); }
@Override public Object initValue(Object ignored) { return ((SettableHiveIntervalDayTimeObjectInspector) this.objectInspector) .create(new HiveIntervalDayTime()); } }.init(fieldObjInspector);
@Override public Object writeValue(HiveIntervalDayTimeWritable value) throws HiveException { return ((SettableHiveIntervalDayTimeObjectInspector) this.objectInspector).set(obj, value); }
@Override public Object initValue(Object ignored) { return ((SettableHiveIntervalDayTimeObjectInspector) this.objectInspector) .create(new HiveIntervalDayTime()); } }.init(fieldObjInspector);
@Override public Object writeValue(HiveIntervalDayTime value) throws HiveException { return ((SettableHiveIntervalDayTimeObjectInspector) this.objectInspector).set(obj, value); }
public HiveIntervalDayTimeConverter(PrimitiveObjectInspector inputOI, SettableHiveIntervalDayTimeObjectInspector outputOI) { this.inputOI = inputOI; this.outputOI = outputOI; r = outputOI.create(new HiveIntervalDayTime()); }
public Object convert(Object input) { if (input == null) { return null; } return outputOI.set(r, PrimitiveObjectInspectorUtils.getHiveIntervalDayTime(input, inputOI)); } }
public HiveIntervalDayTimeConverter(PrimitiveObjectInspector inputOI, SettableHiveIntervalDayTimeObjectInspector outputOI) { this.inputOI = inputOI; this.outputOI = outputOI; r = outputOI.create(new HiveIntervalDayTime()); }
@Override public Object writeValue(HiveIntervalDayTime value) throws HiveException { interval.set(value); return ((SettableHiveIntervalDayTimeObjectInspector) this.objectInspector).set(obj, interval); }
public HiveIntervalDayTimeConverter(PrimitiveObjectInspector inputOI, SettableHiveIntervalDayTimeObjectInspector outputOI) { this.inputOI = inputOI; this.outputOI = outputOI; r = outputOI.create(new HiveIntervalDayTime()); }
@Override public Object writeValue(HiveIntervalDayTime value) throws HiveException { interval.set(value); return ((SettableHiveIntervalDayTimeObjectInspector) this.objectInspector).set(obj, interval); }
public HiveIntervalDayTimeConverter(PrimitiveObjectInspector inputOI, SettableHiveIntervalDayTimeObjectInspector outputOI) { this.inputOI = inputOI; this.outputOI = outputOI; r = outputOI.create(new HiveIntervalDayTime()); }
@Override public Object writeValue(HiveIntervalDayTimeWritable value) throws HiveException { interval.set(value.getHiveIntervalDayTime()); return ((SettableHiveIntervalDayTimeObjectInspector) this.objectInspector).set(obj, interval); }
@Override public Object initValue(Object ignored) { return ((SettableHiveIntervalDayTimeObjectInspector) this.objectInspector) .create(new HiveIntervalDayTime()); } }.init(fieldObjInspector);
@Override public Object setValue(Object field, HiveIntervalDayTime value) { if (null == field) { field = initValue(null); } interval.set(value); return ((SettableHiveIntervalDayTimeObjectInspector) this.objectInspector).set(field, interval); }
@Override public Object writeValue(HiveIntervalDayTimeWritable value) throws HiveException { interval.set(value.getHiveIntervalDayTime()); return ((SettableHiveIntervalDayTimeObjectInspector) this.objectInspector).set(obj, interval); }
@Override public Object setValue(Object field, HiveIntervalDayTime value) { if (null == field) { field = initValue(null); } interval.set(value); return ((SettableHiveIntervalDayTimeObjectInspector) this.objectInspector).set(field, interval); }
@Override public Object setValue(Object field, HiveIntervalDayTimeWritable value) { if (null == field) { field = initValue(null); } interval.set(value.getHiveIntervalDayTime()); return ((SettableHiveIntervalDayTimeObjectInspector) this.objectInspector).set(field, interval); }