本文整理了Java中io.smartcat.cassandra.diagnostics.Query.create
方法的一些代码示例,展示了Query.create
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.create
方法的具体详情如下:
包路径:io.smartcat.cassandra.diagnostics.Query
类名称:Query
方法名:create
[英]Returns a new instance of Query.
[中]返回查询的新实例。
代码示例来源:origin: smartcat-labs/cassandra-diagnostics
private Query createGenericQuery(final long startTime, final long execTime, final String queryString,
final CQLStatement statement, final QueryState queryState, final QueryOptions options) {
return Query.create(startTime, execTime, queryState.getClientState().getRemoteAddress().toString(),
Query.StatementType.UNKNOWN, "", "", queryString, extractConsistencyLevel(options));
}
代码示例来源:origin: smartcat-labs/cassandra-diagnostics
private Query createGenericQuery(final long startTime, final long execTime, final String queryString,
final CQLStatement statement, final QueryState queryState, final QueryOptions options) {
return Query.create(startTime, execTime, queryState.getClientState().getRemoteAddress().toString(),
Query.StatementType.UNKNOWN, "", "", queryString, extractConsistencyLevel(options));
}
代码示例来源:origin: io.smartcat/cassandra-diagnostics-connector30
private Query createGenericQuery(final long startTime, final long execTime, final String queryString,
final CQLStatement statement, final QueryState queryState, final QueryOptions options) {
return Query.create(startTime, execTime, queryState.getClientState().getRemoteAddress().toString(),
Query.StatementType.UNKNOWN, "", "", queryString, extractConsistencyLevel(options));
}
代码示例来源:origin: io.smartcat/cassandra-diagnostics-connector21
private Query createGenericQuery(final long startTime, final long execTime, final String queryString,
final CQLStatement statement, final QueryState queryState, final QueryOptions options) {
return Query.create(startTime, execTime, queryState.getClientState().getRemoteAddress().toString(),
Query.StatementType.UNKNOWN, "", "", queryString, extractConsistencyLevel(options));
}
代码示例来源:origin: smartcat-labs/cassandra-diagnostics
private Query createQuery(final long startTime, final long execTime, final String queryString,
final SelectStatement statement, final QueryState queryState, final QueryOptions options) {
return Query.create(startTime, execTime, queryState.getClientState().getRemoteAddress().toString(),
Query.StatementType.SELECT, statement.keyspace(), statement.columnFamily(), queryString,
extractConsistencyLevel(options));
}
代码示例来源:origin: io.smartcat/cassandra-diagnostics-connector21
private Query createQuery(final long startTime, final long execTime, final String queryString,
final SelectStatement statement, final QueryState queryState, final QueryOptions options) {
return Query.create(startTime, execTime, queryState.getClientState().getRemoteAddress().toString(),
Query.StatementType.SELECT, statement.keyspace(), statement.columnFamily(), queryString,
extractConsistencyLevel(options));
}
代码示例来源:origin: io.smartcat/cassandra-diagnostics-connector21
private Query createQuery(final long startTime, final long execTime, final String queryString,
final ModificationStatement statement, final QueryState queryState, final QueryOptions options) {
return Query.create(startTime, execTime, queryState.getClientState().getRemoteAddress().toString(),
Query.StatementType.UPDATE, statement.keyspace(), statement.columnFamily(), queryString,
extractConsistencyLevel(options));
}
代码示例来源:origin: smartcat-labs/cassandra-diagnostics
private Query createQuery(final long startTime, final long execTime, final String queryString,
final SelectStatement statement, final QueryState queryState, final QueryOptions options) {
return Query.create(startTime, execTime, queryState.getClientState().getRemoteAddress().toString(),
Query.StatementType.SELECT, statement.keyspace(), statement.columnFamily(), queryString,
extractConsistencyLevel(options));
}
代码示例来源:origin: io.smartcat/cassandra-diagnostics-connector30
private Query createQuery(final long startTime, final long execTime, final String queryString,
final SelectStatement statement, final QueryState queryState, final QueryOptions options) {
return Query.create(startTime, execTime, queryState.getClientState().getRemoteAddress().toString(),
Query.StatementType.SELECT, statement.keyspace(), statement.columnFamily(), queryString,
extractConsistencyLevel(options));
}
代码示例来源:origin: io.smartcat/cassandra-diagnostics-connector30
private Query createQuery(final long startTime, final long execTime, final String queryString,
final ModificationStatement statement, final QueryState queryState, final QueryOptions options) {
return Query.create(startTime, execTime, queryState.getClientState().getRemoteAddress().toString(),
Query.StatementType.UPDATE, statement.keyspace(), statement.columnFamily(), queryString,
extractConsistencyLevel(options));
}
代码示例来源:origin: smartcat-labs/cassandra-diagnostics
private Query createQuery(final long startTime, final long execTime, final String queryString,
final ModificationStatement statement, final QueryState queryState, final QueryOptions options) {
return Query.create(startTime, execTime, queryState.getClientState().getRemoteAddress().toString(),
Query.StatementType.UPDATE, statement.keyspace(), statement.columnFamily(), queryString,
extractConsistencyLevel(options));
}
代码示例来源:origin: smartcat-labs/cassandra-diagnostics
private Query createQuery(final long startTime, final long execTime, final String queryString,
final ModificationStatement statement, final QueryState queryState, final QueryOptions options) {
return Query.create(startTime, execTime, queryState.getClientState().getRemoteAddress().toString(),
Query.StatementType.UPDATE, statement.keyspace(), statement.columnFamily(), queryString,
extractConsistencyLevel(options));
}
代码示例来源:origin: smartcat-labs/cassandra-diagnostics
private Query extractQuery(final long startTime, final long execTime, final Statement statement) {
final String queryString = statementQueryString(statement);
final Query.StatementType queryType = queryType(queryString);
return Query.create(startTime, execTime, host, queryType, statement.getKeyspace(), "", queryString,
extractConsistencyLevel(statement));
}
内容来源于网络,如有侵权,请联系作者删除!