public static <T> Collector<T, ?, Long> bitOrLong(ToLongFunction<? super T> function) {
        return Collector.of(() -> new long[1],
            (s, v) -> s[0] = s[0] | function.applyAsLong(v),
            (s1, s2) -> {
                s1[0] = s1[0] | s2[0];
                return s1;
            },
            s -> s[0]
        );
    }
Get a {@link Collector} that calculates the <code>BIT_OR()</code> for any
type of {@link Number}.
jOOL/src/main/java/org/jooq/lambda/Agg.java