private ResponsePacket executeDelete(QueryTemplatePacket template,ISpaceProxy space,Transaction txn) throws RemoteException, TransactionException, UnusableEntryException, InterruptedException {
  ResponsePacket packet=new ResponsePacket();
  template.setOperationID(getOperationID());
  template.setExplainPlan(getExplainPlan());
  if (isReturnResult()) {
    int max=getRownumLimit();
    ArrayList<IEntryPacket> entries=template.take(space,getRouting(),getProjectionTemplate(),txn,getTimeout(),getReadModifier(),getIfExists(),max,getMinEntriesToWaitFor(),getQueryResultType());
    packet.setResultSet(entries);
    packet.setIntResult(entries.size());
  }
 else {
    template.setRouting(getRouting());
    int cleared=_executor.clear(template,space,txn,getReadModifier());
    packet.setIntResult(cleared);
  }
  return packet;
}

private ResponsePacket executeDelete ( QueryTemplatePacket template , ISpaceProxy space , Transaction txn ) throws RemoteException , TransactionException , UnusableEntryException , InterruptedException { ResponsePacket packet = new ResponsePacket ( ) ; template . setOperationID ( getOperationID ( ) ) ; template . setExplainPlan ( getExplainPlan ( ) ) ; if ( isReturnResult ( ) ) { int max = getRownumLimit ( ) ; ArrayList < IEntryPacket > entries = template . take ( space , getRouting ( ) , getProjectionTemplate ( ) , txn , getTimeout ( ) , getReadModifier ( ) , getIfExists ( ) , max , getMinEntriesToWaitFor ( ) , getQueryResultType ( ) ) ; packet . setResultSet ( entries ) ; packet . setIntResult ( entries . size ( ) ) ; } else { template . setRouting ( getRouting ( ) ) ; int cleared = _executor . clear ( template , space , txn , getReadModifier ( ) ) ; packet . setIntResult ( cleared ) ; } return packet ; }
execute delete operation with given template
