private void cloneLobs(Value[] values) { for (int i = 0; i < values.length; i++) { Value v = values[i]; Value v2 = v.copyToResult(); if (v2 != v) { session.addTemporaryLob(v2); values[i] = v2; } } }
@Override public Integer partition(Value value) { boolean isNull = checkNull(value); if (isNull) { return getDefaultNodeIndex(); } long v = value.getLong(); return (int) (v % getTableNodes().length); }