public ConnectorState currentState(int... partitions){
  ConnectorState currentState=couchbaseReader.currentState();
  if (partitions.length == 0) {
    return currentState;
  }
  ConnectorState state=new ConnectorState();
  for (  int partition : partitions) {
    state.put(currentState.get((short)partition));
  }
  return state;
}

public ConnectorState currentState ( int ... partitions ) { ConnectorState currentState = couchbaseReader . currentState ( ) ; if ( partitions . length == 0 ) { return currentState ; } ConnectorState state = new ConnectorState ( ) ; for ( int partition : partitions ) { state . put ( currentState . get ( ( short ) partition ) ) ; } return state ; }
initialize connector state for given partitions with current vbucketuuid and sequence number .
