@Override public Datum terminate(FunctionContext ctx) { if (((LastValueContext) ctx).last == null) { return NullDatum.get(); } else { return ((LastValueContext) ctx).last; } }
@Override public byte[] getTextBytes(int fieldId) { return NullDatum.get().asTextBytes(); }
outTuple.put(resultColumnIdIndexes[tupleIndex], DatumFactory.createInt8(nullDatum.asInt8())); } else if (type == TajoDataTypes.Type.INT4) { outTuple.put(resultColumnIdIndexes[tupleIndex], DatumFactory.createInt4(nullDatum.asInt4())); } else if (type == TajoDataTypes.Type.INT2) { outTuple.put(resultColumnIdIndexes[tupleIndex], DatumFactory.createInt2(nullDatum.asInt2())); } else if (type == TajoDataTypes.Type.FLOAT4) { outTuple.put(resultColumnIdIndexes[tupleIndex], DatumFactory.createFloat4(nullDatum.asFloat4())); } else if (type == TajoDataTypes.Type.FLOAT8) { outTuple.put(resultColumnIdIndexes[tupleIndex], DatumFactory.createFloat8(nullDatum.asFloat8())); } else { outTuple.put(resultColumnIdIndexes[tupleIndex], DatumFactory.createNullDatum());
outTuple.put(resultColumnIdIndexes[tupleIndex], DatumFactory.createInt8(nullDatum.asInt8())); } else if (type == TajoDataTypes.Type.INT4) { outTuple.put(resultColumnIdIndexes[tupleIndex], DatumFactory.createInt4(nullDatum.asInt4())); } else if (type == TajoDataTypes.Type.INT2) { outTuple.put(resultColumnIdIndexes[tupleIndex], DatumFactory.createInt2(nullDatum.asInt2())); } else if (type == TajoDataTypes.Type.FLOAT4) { outTuple.put(resultColumnIdIndexes[tupleIndex], DatumFactory.createFloat4(nullDatum.asFloat4())); } else if (type == TajoDataTypes.Type.FLOAT8) { outTuple.put(resultColumnIdIndexes[tupleIndex], DatumFactory.createFloat8(nullDatum.asFloat8())); } else { outTuple.put(resultColumnIdIndexes[tupleIndex], DatumFactory.createNullDatum());
@Override public Datum extract(TimeMeta tm) { return NullDatum.get(); } }
@Override public byte[] getTextBytes(int fieldId) { return NullDatum.get().asTextBytes(); }
@Override public Datum[] getValues() { Datum[] datum = new Datum[size]; Arrays.fill(datum, NullDatum.get()); return datum; } }
public LazyTuple(Schema schema, byte[][] textBytes, long offset) { this(schema, textBytes, offset, NullDatum.get().asTextBytes(), new TextSerializerDeserializer(schema)); }