core/src/main/java/com/orientechnologies/orient/core/iterator/ORecordIteratorCluster.java
@Override
  public ORecordIteratorCluster<REC> setLiveUpdated(boolean iLiveUpdated) {
    super.setLiveUpdated(iLiveUpdated);

    // SET THE RANGE LIMITS
    if (iLiveUpdated) {
      firstClusterEntry = 0L;
      lastClusterEntry = Long.MAX_VALUE;
    } else {
      final long[] range = database.getStorage().getClusterDataRange(current.getClusterId());
      firstClusterEntry = range[0];
      lastClusterEntry = range[1];
    }

    totalAvailableRecords = database.countClusterElements(current.getClusterId());

    return this;
  }
@Override
  public ORecordIteratorCluster<REC> setLiveUpdated(boolean iLiveUpdated) {
    super.setLiveUpdated(iLiveUpdated);

    // SET THE RANGE LIMITS
    if (iLiveUpdated) {
      firstClusterEntry = 0L;
      lastClusterEntry = Long.MAX_VALUE;
    } else {
      final long[] range = database.getStorage().getClusterDataRange(current.getClusterId());
      firstClusterEntry = range[0];
      lastClusterEntry = range[1];
    }

    totalAvailableRecords = database.countClusterElements(current.getClusterId());

    return this;
  }
@ Override public ORecordIteratorCluster < REC > setLiveUpdated ( boolean iLiveUpdated ) { super . setLiveUpdated ( iLiveUpdated ) ; // SET THE RANGE LIMITS
 if ( iLiveUpdated ) { firstClusterEntry = 0L ; lastClusterEntry = Long . MAX_VALUE ; } else { final long [ ] range = database . getStorage ( ) . getClusterDataRange ( current . getClusterId ( ) ) ; firstClusterEntry = range [ 0 ] ; lastClusterEntry = range [ 1 ] ; } totalAvailableRecords = database . countClusterElements ( current . getClusterId ( ) ) ; return this ; }
Tell to the iterator that the upper limit must be checked at every cycle. Useful when concurrent deletes or additions change
the size of the cluster while you're browsing it. Default is false.

@param iLiveUpdated True to activate it, otherwise false (default)

@see #isLiveUpdated()
Tell to the iterator that the upper limit must be checked at every cycle . Useful when concurrent deletes or additions change the size of the cluster while you re browsing it . Default is false .