290291292293294295296297
case FLOAT8: return DatumFactory.createFloat8(val % datum.asFloat8()); case NULL: return datum; default: throw new InvalidOperationException(datum.type()); } }
106107108109110111112
} public abstract int size(); public Datum plus(Datum datum) { throw new InvalidOperationException(datum.type); }
110111112113114115116
public Datum plus(Datum datum) { throw new InvalidOperationException(datum.type); } public Datum minus(Datum datum) { throw new InvalidOperationException(datum.type); }
114115116117118119120
public Datum minus(Datum datum) { throw new InvalidOperationException(datum.type); } public Datum multiply(Datum datum) { throw new InvalidOperationException(datum.type); }
118119120121122123124
public Datum multiply(Datum datum) { throw new InvalidOperationException(datum.type); } public Datum divide(Datum datum) { throw new InvalidOperationException(datum.type); }
122123124125126127128
public Datum divide(Datum datum) { throw new InvalidOperationException(datum.type); } public Datum modular(Datum datum) { throw new InvalidOperationException(datum.type); }
137138139140141142143144
case FLOAT8: return DatumFactory.createBool(val == datum.asFloat8()); case NULL: return DatumFactory.createBool(false); default: throw new InvalidOperationException(); } }
197198199200201202203204
} } case NULL: return -1; default: throw new InvalidOperationException(); } }
217218219220221222223224
case FLOAT8: return DatumFactory.createFloat8(val + datum.asFloat8()); case NULL: return datum; default: throw new InvalidOperationException(datum.type()); } }
237238239240241242243244
case FLOAT8: return DatumFactory.createFloat8(val - datum.asFloat8()); case NULL: return datum; default: throw new InvalidOperationException(datum.type()); } }