/*
***************************************************************************************
* Copyright (C) 2006 EsperTech, Inc. All rights reserved. *
* http://www.espertech.com/esper *
* http://www.espertech.com *
* ---------------------------------------------------------------------------------- *
* The software in this package is published under the terms of the GPL license *
* a copy of which has been included with this distribution in the license.txt file. *
***************************************************************************************
*/
package com.espertech.esper.core.service;
import com.espertech.esper.client.EventBean;
import com.espertech.esper.client.EventType;
/**
* The result of executing a prepared query.
*/
public class EPPreparedQueryResult {
private final EventType eventType;
private final EventBean[] result;
/**
* Ctor.
*
* @param eventType is the type of event produced by the query
* @param result the result rows
*/
public EPPreparedQueryResult(EventType eventType, EventBean[] result) {
this.eventType = eventType;
this.result = result;
}
/**
* Returs the event type representing the selected columns.
*
* @return metadata
*/
public EventType getEventType() {
return eventType;
}
/**
* Returns the query result.
*
* @return result rows
*/
public EventBean[] getResult() {
return result;
}
}