public boolean hasCommand(String indexName, String command) {
        return commands.contains(new IndexCommand(indexName, command));
    }
Returns whether a particular command is prsent in this index info
config-model/src/main/java/com/yahoo/schema/derived/IndexInfo.java