214215216217218219220221
case FLOAT8: return DatumFactory.createFloat8(val + datum.asFloat8()); case NULL_TYPE: return datum; default: throw new InvalidOperationException(datum.type()); } }
234235236237238239240241
case FLOAT8: return DatumFactory.createFloat8(val - datum.asFloat8()); case NULL_TYPE: return datum; default: throw new InvalidOperationException(datum.type()); } }
254255256257258259260261
case FLOAT8: return DatumFactory.createFloat8(val * datum.asFloat8()); case NULL_TYPE: return datum; default: throw new InvalidOperationException(datum.type()); } }
274275276277278279280281
case FLOAT8: return DatumFactory.createFloat8(val / datum.asFloat8()); case NULL_TYPE: return datum; default: throw new InvalidOperationException(datum.type()); } }
294295296297298299300301
case FLOAT8: return DatumFactory.createFloat8(val % datum.asFloat8()); case NULL_TYPE: return datum; default: throw new InvalidOperationException(datum.type()); } }
144145146147148149150151
((BlobDatum)datum).initFromBytes(); return DatumFactory.createBool(Arrays.equals(this.val, ((BlobDatum)datum).val)); case NULL_TYPE: return datum; default: throw new InvalidOperationException(datum.type()); } }
158159160161162163164165
((BlobDatum)datum).initFromBytes(); return bb.compareTo(((BlobDatum) datum).bb); case NULL_TYPE: return -1; default: throw new InvalidOperationException(datum.type()); } }
156157158159160161162163
// Datum Comparator public BooleanDatum equalsTo(Datum datum) { switch(datum.type()) { case BOOLEAN: return DatumFactory.createBool(this.val == ((BooleanDatum)datum).val); default: throw new InvalidOperationException(datum.type()); } }
172173174175176177178179
return 1; } else { return 0; } default: throw new InvalidOperationException(datum.type()); } }
131132133134135136137138
case FLOAT8: return DatumFactory.createBool(val == datum.asFloat8()); case NULL_TYPE: return datum; default: throw new InvalidOperationException(); } }