io.smartcat.cassandra.diagnostics.Query.create()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(217)

本文整理了Java中io.smartcat.cassandra.diagnostics.Query.create方法的一些代码示例,展示了Query.create的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.create方法的具体详情如下:
包路径:io.smartcat.cassandra.diagnostics.Query
类名称:Query
方法名:create

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));
}

相关文章