public static boolean isDistributedCacheUsed(String str){
  String[] parts=str.split(Instruction.INSTRUCTION_DELIM);
  for (  String inst : parts) {
    String opcode=getOpCode(inst);
    if (opcode.equalsIgnoreCase(AppendM.OPCODE) || opcode.equalsIgnoreCase(MapMult.OPCODE) || opcode.equalsIgnoreCase(MapMultChain.OPCODE)|| opcode.equalsIgnoreCase(PMMJ.OPCODE)|| opcode.equalsIgnoreCase(UAggOuterChain.OPCODE)|| opcode.equalsIgnoreCase(GroupedAggregateM.OPCODE)|| isDistQuaternaryOpcode(opcode)|| BinaryM.isOpcode(opcode)) {
      return true;
    }
  }
  return false;
}

public static boolean isDistributedCacheUsed ( String str ) { String [ ] parts = str . split ( Instruction . INSTRUCTION_DELIM ) ; for ( String inst : parts ) { String opcode = getOpCode ( inst ) ; if ( opcode . equalsIgnoreCase ( AppendM . OPCODE ) || opcode . equalsIgnoreCase ( MapMult . OPCODE ) || opcode . equalsIgnoreCase ( MapMultChain . OPCODE ) || opcode . equalsIgnoreCase ( PMMJ . OPCODE ) || opcode . equalsIgnoreCase ( UAggOuterChain . OPCODE ) || opcode . equalsIgnoreCase ( GroupedAggregateM . OPCODE ) || isDistQuaternaryOpcode ( opcode ) || BinaryM . isOpcode ( opcode ) ) { return true ; } } return false ; }
evaluates if at least one instruction of the given instruction set used the distributed cache ; this call can also be used for individual instructions .
