@Override public Object scanUnsafe(Attr key) { if (key == Attr.BUFFERED) { if (iterable instanceof Collection) return ((Collection) iterable).size(); if (iterable instanceof Tuple2) return ((Tuple2) iterable).size(); } return null; }
@Override public int hashCode() { int result = size(); result = 31 * result + t1.hashCode(); result = 31 * result + t2.hashCode(); return result; }
@Override public Object scanUnsafe(Attr key) { if (key == Attr.BUFFERED) { if (iterable instanceof Collection) return ((Collection) iterable).size(); if (iterable instanceof Tuple2) return ((Tuple2) iterable).size(); } return null; }
@Override public int hashCode() { int result = size(); result = 31 * result + t1.hashCode(); result = 31 * result + t2.hashCode(); return result; }