@Override public boolean hasNext() { if (!iterator.hasNext() && count == batchSize) { iterator = context.bindAndExecute(ps, lastVaryingComponentValue).iterator(); count = 0; } return iterator.hasNext(); }
private T proxify(T clusteredEntity) { CQLPersistenceContext duplicate = context.duplicate(clusteredEntity); return proxifier.buildProxy(clusteredEntity, duplicate); }