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) |
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(PlannerFactory plannerFactory,
String query,
long maxRowCount) |
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(PlannerFactory plannerFactory, String query, long maxRowCount)
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 Closeable
close
in interface AutoCloseable
Copyright © 2011–2017. All rights reserved.