@Override
    public void deleteAll() {
        if (isOperationLogEnabled) {
            if (!isFullSnapshot()) {
                operationChangeLog.add(new Operation(CLEAR));
            } else {
                operationChangeLog.clear();
                forceFullSnapshot = true;
            }
        }
        if (primaryKeyData != null) {
            primaryKeyData.clear();
        }
        if (indexData != null) {
            for (TreeMap<Object, Set<StreamEvent>> aIndexedData : indexData.values()) {
                aIndexedData.clear();
            }
        }
    }
EventHolder implementation where events will be indexed and stored. This will offer faster access compared to
other EventHolder implementations. User can only add unique events based on a given primary key.
modules/siddhi-core/src/main/java/io/siddhi/core/table/holder/IndexEventHolder.java