public class DruidStatement extends Object implements Closeable
DruidMeta. Thread-safe.| Modifier and Type | Field and Description |
|---|---|
static long |
START_OFFSET |
| Constructor and Description |
|---|
DruidStatement(String connectionId,
int statementId,
Map<String,Object> queryContext,
SqlLifecycle sqlLifecycle,
Runnable onClose) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static List<org.apache.calcite.avatica.ColumnMetaData> |
createColumnMetaData(org.apache.calcite.rel.type.RelDataType rowType) |
DruidStatement |
execute() |
String |
getConnectionId() |
long |
getCurrentOffset() |
String |
getQuery() |
org.apache.calcite.rel.type.RelDataType |
getRowType() |
org.apache.calcite.avatica.Meta.Signature |
getSignature() |
int |
getStatementId() |
boolean |
isDone() |
org.apache.calcite.avatica.Meta.Frame |
nextFrame(long fetchOffset,
int fetchMaxRowCount) |
DruidStatement |
prepare(String query,
long maxRowCount,
AuthenticationResult authenticationResult) |
public static final long START_OFFSET
public static List<org.apache.calcite.avatica.ColumnMetaData> createColumnMetaData(org.apache.calcite.rel.type.RelDataType rowType)
public DruidStatement prepare(String query, long maxRowCount, AuthenticationResult authenticationResult)
public DruidStatement execute()
public String getConnectionId()
public int getStatementId()
public String getQuery()
public org.apache.calcite.avatica.Meta.Signature getSignature()
public org.apache.calcite.rel.type.RelDataType getRowType()
public long getCurrentOffset()
public boolean isDone()
public org.apache.calcite.avatica.Meta.Frame nextFrame(long fetchOffset,
int fetchMaxRowCount)
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.