public Iterator<Object[]> query(long timestamp, Map<String, Object> parameterMap,
                                    CompiledCondition compiledCondition, CompiledSelection compiledSelection,
                                    Attribute[] outputAttributes)
            throws ConnectionUnavailableException {
        S state = stateHolder.getState();
        try {
            return query(timestamp, parameterMap, compiledCondition, compiledSelection, outputAttributes,
                    recordTableHandlerCallback, state);
        } finally {
            stateHolder.returnState(state);
        }
    }
@param timestamp                     the timestamp of the event used to match from record table
@param containsConditionParameterMap map of matching StreamVariable Ids and their values corresponding to the
                                     compiled condition
@param compiledCondition             the compiledCondition against which records should be matched
@param recordTableHandlerCallback    call back to do operations on the record table
@param state                         current state
@return if matching record found or not
@throws ConnectionUnavailableException
modules/siddhi-core/src/main/java/io/siddhi/core/table/record/RecordTableHandler.java