111112113114115116117118
public BooleanDatum equalsTo(Datum datum) { switch (datum.type()) { case BIT: return DatumFactory.createBool(this.val == (((BitDatum) datum).val)); default: throw new InvalidOperationException(datum.type()); } }
127128129130131132133134
return 1; } else { return 0; } default: throw new InvalidOperationException(datum.type()); } }
99100101102103104105106
public BooleanDatum equalsTo(Datum datum) { switch (datum.type()) { case INET4: return DatumFactory.createBool(this.address == ((Inet4Datum)datum).address); default: throw new InvalidOperationException(datum.type()); } }
119120121122123124125126
return -1; } } default: throw new InvalidOperationException(datum.type()); } }
130131132133134135136137
case FLOAT8: return DatumFactory.createBool(val == datum.asFloat8()); case NULL: return DatumFactory.createBool(false); default: throw new InvalidOperationException(); } }
190191192193194195196197
} } case NULL: return -1; default: throw new InvalidOperationException(); } }
210211212213214215216217
case FLOAT8: return DatumFactory.createFloat8(val + datum.asFloat8()); case NULL: return datum; default: throw new InvalidOperationException(datum.type()); } }
230231232233234235236237
case FLOAT8: return DatumFactory.createFloat8(val - datum.asFloat8()); case NULL: return datum; default: throw new InvalidOperationException(datum.type()); } }
250251252253254255256257
case FLOAT8: return DatumFactory.createFloat8(val * datum.asFloat8()); case NULL: return datum; default: throw new InvalidOperationException(); } }
270271272273274275276277
case FLOAT8: return DatumFactory.createFloat8(val / datum.asFloat8()); case NULL: return datum; default: throw new InvalidOperationException(datum.type()); } }