257258259260261262263264
case FLOAT8: return DatumFactory.createFloat8(val * datum.asFloat8()); case NULL: return datum; default: throw new InvalidOperationException(datum.type()); } }
277278279280281282283284
case FLOAT8: return DatumFactory.createFloat8(val / datum.asFloat8()); case NULL: return datum; default: throw new InvalidOperationException(datum.type()); } }
297298299300301302303304
case FLOAT8: return DatumFactory.createFloat8(val % datum.asFloat8()); case NULL: return datum; default: throw new InvalidOperationException(datum.type()); } }
137138139140141142143144
case BLOB: initFromBytes(); ((BlobDatum)datum).initFromBytes(); return DatumFactory.createBool(Arrays.equals(this.val, ((BlobDatum)datum).val)); default: throw new InvalidOperationException(datum.type()); } }
149150151152153154155156
case BLOB: initFromBytes(); ((BlobDatum)datum).initFromBytes(); return bb.compareTo(((BlobDatum) datum).bb); default: throw new InvalidOperationException(datum.type()); } }
public BooleanDatum equalsTo(Datum datum) { switch(datum.type()) { case BOOLEAN: return DatumFactory.createBool(this.val == ((BooleanDatum)datum).val); default: throw new InvalidOperationException(datum.type()); } }
165166167168169170171172
return 1; } else { return 0; } default: throw new InvalidOperationException(datum.type()); } }
135136137138139140141142
case FLOAT8: return DatumFactory.createBool(val == datum.asFloat8()); case NULL: return DatumFactory.createBool(false); default: throw new InvalidOperationException(); } }
195196197198199200201202
} } case NULL: return -1; default: throw new InvalidOperationException(); } }
215216217218219220221222
case FLOAT8: return DatumFactory.createFloat8(val + datum.asFloat8()); case NULL: return datum; default: throw new InvalidOperationException(datum.type()); } }