private static VectorExpressionWriter genVectorExpressionWritableLong( SettableLongObjectInspector fieldObjInspector) throws HiveException { return new VectorExpressionWriterLong() { private Object obj; public VectorExpressionWriter init(SettableLongObjectInspector objInspector) throws HiveException { super.init(objInspector); this.obj = initValue(null); return this; } @Override public Object writeValue(long value) throws HiveException { ((SettableLongObjectInspector) this.objectInspector).set(this.obj, value); return this.obj; } @Override public Object setValue(Object field, long value) throws HiveException { if (null == field) { field = initValue(null); } ((SettableLongObjectInspector) this.objectInspector).set(field, value); return field; } @Override public Object initValue(Object ignored) { return ((SettableLongObjectInspector) this.objectInspector) .create(0L); } }.init(fieldObjInspector); }
private static VectorExpressionWriter genVectorExpressionWritableLong( SettableLongObjectInspector fieldObjInspector) throws HiveException { return new VectorExpressionWriterLong() { private Object obj; public VectorExpressionWriter init(SettableLongObjectInspector objInspector) throws HiveException { super.init(objInspector); this.obj = initValue(null); return this; } @Override public Object writeValue(long value) throws HiveException { ((SettableLongObjectInspector) this.objectInspector).set(this.obj, value); return this.obj; } @Override public Object setValue(Object field, long value) throws HiveException { if (null == field) { field = initValue(null); } ((SettableLongObjectInspector) this.objectInspector).set(field, value); return field; } @Override public Object initValue(Object ignored) { return ((SettableLongObjectInspector) this.objectInspector) .create(0L); } }.init(fieldObjInspector); }
private static VectorExpressionWriter genVectorExpressionWritableLong( SettableLongObjectInspector fieldObjInspector) throws HiveException { return new VectorExpressionWriterLong() { private Object obj; public VectorExpressionWriter init(SettableLongObjectInspector objInspector) throws HiveException { super.init(objInspector); this.obj = initValue(null); return this; } @Override public Object writeValue(long value) throws HiveException { ((SettableLongObjectInspector) this.objectInspector).set(this.obj, value); return this.obj; } @Override public Object setValue(Object field, long value) throws HiveException { if (null == field) { field = initValue(null); } ((SettableLongObjectInspector) this.objectInspector).set(field, value); return field; } @Override public Object initValue(Object ignored) { return ((SettableLongObjectInspector) this.objectInspector) .create(0L); } }.init(fieldObjInspector); }