public class QueryState extends Object
Modifier and Type | Class and Description |
---|---|
static class |
QueryState.StateType
An enumeration that represents how a ResultSet was created.
|
Modifier and Type | Field and Description |
---|---|
MetaDataOperation |
metaDataOperation |
Object[] |
operationArgs |
String |
sql |
QueryState.StateType |
type |
Constructor and Description |
---|
QueryState()
Not intended for external use.
|
QueryState(MetaDataOperation op,
Object... args)
Constructor encapsulating a metadata operation's result set.
|
QueryState(QueryState.StateType type,
String sql,
MetaDataOperation op,
Object... args)
Not intended for external use.
|
QueryState(String sql)
Constructor encapsulating a SQL query used to create a result set.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static QueryState |
fromProto(org.apache.calcite.avatica.proto.Common.QueryState protoState) |
MetaDataOperation |
getMetaDataOperation() |
Object[] |
getOperationArgs() |
String |
getSql() |
QueryState.StateType |
getType() |
int |
hashCode() |
ResultSet |
invoke(Connection conn,
Statement statement) |
org.apache.calcite.avatica.proto.Common.QueryState |
toProto() |
public final QueryState.StateType type
public final String sql
public final MetaDataOperation metaDataOperation
public final Object[] operationArgs
public QueryState(String sql)
sql
- The SQL query.public QueryState(MetaDataOperation op, Object... args)
op
- A pointer to the DatabaseMetaData
operation being invoked.args
- The arguments to the method being invoked.public QueryState(QueryState.StateType type, String sql, MetaDataOperation op, Object... args)
public QueryState()
public QueryState.StateType getType()
QueryState.StateType
for this encapsulated state.public String getSql()
public MetaDataOperation getMetaDataOperation()
public Object[] getOperationArgs()
public ResultSet invoke(Connection conn, Statement statement) throws SQLException
SQLException
public org.apache.calcite.avatica.proto.Common.QueryState toProto()
public static QueryState fromProto(org.apache.calcite.avatica.proto.Common.QueryState protoState)
Copyright © 2012-2024 Apache Software Foundation. All Rights Reserved.