com.datastax.driver.core.querybuilder.Select.checkForBindMarkers()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(9.0k)|赞(0)|评价(0)|浏览(197)

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

Select.checkForBindMarkers介绍

暂无

代码示例

代码示例来源:origin: com.datastax.cassandra/cassandra-driver-core

/**
 * Adds a prepared {@code LIMIT} clause to this statement.
 *
 * @param marker the marker to use for the limit.
 * @return this statement.
 * @throws IllegalStateException if a {@code LIMIT} clause has already been provided.
 */
public Select limit(BindMarker marker) {
 if (this.limit != null)
  throw new IllegalStateException("A LIMIT value has already been provided");
 this.limit = marker;
 checkForBindMarkers(marker);
 return this;
}

代码示例来源:origin: com.datastax.cassandra/cassandra-driver-core

/**
 * Adds an {@code ORDER BY} clause to this statement.
 *
 * @param orderings the orderings to define for this query.
 * @return this statement.
 * @throws IllegalStateException if an {@code ORDER BY} clause has already been provided.
 */
public Select orderBy(Ordering... orderings) {
 if (this.orderings != null)
  throw new IllegalStateException("An ORDER BY clause has already been provided");
 if (orderings.length == 0)
  throw new IllegalArgumentException(
    "Invalid ORDER BY argument, the orderings must not be empty.");
 this.orderings = Arrays.asList(orderings);
 for (Ordering ordering : orderings) checkForBindMarkers(ordering);
 return this;
}

代码示例来源:origin: com.datastax.cassandra/cassandra-driver-core

/**
 * Adds a prepared {@code PER PARTITION LIMIT} clause to this statement.
 *
 * <p>Note: support for {@code PER PARTITION LIMIT} clause is only available from Cassandra 3.6
 * onwards.
 *
 * @param marker the marker to use for the limit per partition.
 * @return this statement.
 * @throws IllegalStateException if a {@code PER PARTITION LIMIT} clause has already been
 *     provided.
 * @throws IllegalStateException if this statement is a {@code SELECT DISTINCT} statement.
 */
public Select perPartitionLimit(BindMarker marker) {
 if (this.perPartitionLimit != null)
  throw new IllegalStateException("A PER PARTITION LIMIT value has already been provided");
 if (isDistinct)
  throw new IllegalStateException(
    "PER PARTITION LIMIT is not allowed with SELECT DISTINCT queries");
 this.perPartitionLimit = marker;
 checkForBindMarkers(marker);
 return this;
}

代码示例来源:origin: io.prestosql.cassandra/cassandra-driver

/**
 * Adds a prepared {@code LIMIT} clause to this statement.
 *
 * @param marker the marker to use for the limit.
 * @return this statement.
 * @throws IllegalStateException if a {@code LIMIT} clause has already been
 *                               provided.
 */
public Select limit(BindMarker marker) {
  if (this.limit != null)
    throw new IllegalStateException("A LIMIT value has already been provided");
  this.limit = marker;
  checkForBindMarkers(marker);
  return this;
}

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver

/**
 * Adds a prepared {@code LIMIT} clause to this statement.
 *
 * @param marker the marker to use for the limit.
 * @return this statement.
 * @throws IllegalStateException if a {@code LIMIT} clause has already been
 *                               provided.
 */
public Select limit(BindMarker marker) {
  if (this.limit != null)
    throw new IllegalStateException("A LIMIT value has already been provided");
  this.limit = marker;
  checkForBindMarkers(marker);
  return this;
}

代码示例来源:origin: com.yugabyte/cassandra-driver-core

/**
 * Adds a prepared {@code LIMIT} clause to this statement.
 *
 * @param marker the marker to use for the limit.
 * @return this statement.
 * @throws IllegalStateException if a {@code LIMIT} clause has already been
 *                               provided.
 */
public Select limit(BindMarker marker) {
  if (this.limit != null)
    throw new IllegalStateException("A LIMIT value has already been provided");
  this.limit = marker;
  checkForBindMarkers(marker);
  return this;
}

代码示例来源:origin: com.stratio.cassandra/cassandra-driver-core

/**
 * Adds a prepared LIMIT clause to this statement.
 *
 * @param marker the marker to use for the limit.
 * @return this statement.
 *
 * @throws IllegalStateException if a LIMIT clause has already been
 * provided.
 */
public Select limit(BindMarker marker) {
  if (this.limit != null)
    throw new IllegalStateException("A LIMIT value has already been provided");
  this.limit = marker;
  checkForBindMarkers(marker);
  return this;
}

代码示例来源:origin: io.prestosql.cassandra/cassandra-driver

/**
 * Adds an ORDER BY clause to this statement.
 *
 * @param orderings the orderings to define for this query.
 * @return this statement.
 * @throws IllegalStateException if an ORDER BY clause has already been
 *                               provided.
 */
public Select orderBy(Ordering... orderings) {
  if (this.orderings != null)
    throw new IllegalStateException("An ORDER BY clause has already been provided");
  this.orderings = Arrays.asList(orderings);
  for (int i = 0; i < orderings.length; i++)
    checkForBindMarkers(orderings[i]);
  return this;
}

代码示例来源:origin: com.yugabyte/cassandra-driver-core

/**
 * Adds an ORDER BY clause to this statement.
 *
 * @param orderings the orderings to define for this query.
 * @return this statement.
 * @throws IllegalStateException if an ORDER BY clause has already been
 *                               provided.
 */
public Select orderBy(Ordering... orderings) {
  if (this.orderings != null)
    throw new IllegalStateException("An ORDER BY clause has already been provided");
  this.orderings = Arrays.asList(orderings);
  for (int i = 0; i < orderings.length; i++)
    checkForBindMarkers(orderings[i]);
  return this;
}

代码示例来源:origin: com.stratio.cassandra/cassandra-driver-core

/**
 * Adds an ORDER BY clause to this statement.
 *
 * @param orderings the orderings to define for this query.
 * @return this statement.
 *
 * @throws IllegalStateException if an ORDER BY clause has already been
 * provided.
 */
public Select orderBy(Ordering... orderings) {
  if (this.orderings != null)
    throw new IllegalStateException("An ORDER BY clause has already been provided");
  this.orderings = Arrays.asList(orderings);
  for (int i = 0; i < orderings.length; i++)
    checkForBindMarkers(orderings[i]);
  return this;
}

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver

/**
 * Adds an ORDER BY clause to this statement.
 *
 * @param orderings the orderings to define for this query.
 * @return this statement.
 * @throws IllegalStateException if an ORDER BY clause has already been
 *                               provided.
 */
public Select orderBy(Ordering... orderings) {
  if (this.orderings != null)
    throw new IllegalStateException("An ORDER BY clause has already been provided");
  this.orderings = Arrays.asList(orderings);
  for (int i = 0; i < orderings.length; i++)
    checkForBindMarkers(orderings[i]);
  return this;
}

代码示例来源:origin: com.stratio.cassandra/cassandra-driver-core

/**
 * Adds a LIMIT clause to this statement.
 *
 * @param limit the limit to set.
 * @return this statement.
 *
 * @throws IllegalArgumentException if {@code limit &gte; 0}.
 * @throws IllegalStateException if a LIMIT clause has already been
 * provided.
 */
public Select limit(int limit) {
  if (limit <= 0)
    throw new IllegalArgumentException("Invalid LIMIT value, must be strictly positive");
  if (this.limit != null)
    throw new IllegalStateException("A LIMIT value has already been provided");
  this.limit = limit;
  checkForBindMarkers(null);
  return this;
}

代码示例来源:origin: com.yugabyte/cassandra-driver-core

/**
 * Adds a prepared {@code PER PARTITION LIMIT} clause to this statement.
 * <p>
 * Note: support for {@code PER PARTITION LIMIT} clause is only available from
 * Cassandra 3.6 onwards.
 *
 * @param marker the marker to use for the limit per partition.
 * @return this statement.
 * @throws IllegalStateException if a {@code PER PARTITION LIMIT} clause has already been
 *                               provided.
 * @throws IllegalStateException if this statement is a {@code SELECT DISTINCT} statement.
 */
public Select perPartitionLimit(BindMarker marker) {
  if (this.perPartitionLimit != null)
    throw new IllegalStateException("A PER PARTITION LIMIT value has already been provided");
  if (isDistinct)
    throw new IllegalStateException("PER PARTITION LIMIT is not allowed with SELECT DISTINCT queries");
  this.perPartitionLimit = marker;
  checkForBindMarkers(marker);
  return this;
}

代码示例来源:origin: io.prestosql.cassandra/cassandra-driver

/**
 * Adds a prepared {@code PER PARTITION LIMIT} clause to this statement.
 * <p>
 * Note: support for {@code PER PARTITION LIMIT} clause is only available from
 * Cassandra 3.6 onwards.
 *
 * @param marker the marker to use for the limit per partition.
 * @return this statement.
 * @throws IllegalStateException if a {@code PER PARTITION LIMIT} clause has already been
 *                               provided.
 * @throws IllegalStateException if this statement is a {@code SELECT DISTINCT} statement.
 */
public Select perPartitionLimit(BindMarker marker) {
  if (this.perPartitionLimit != null)
    throw new IllegalStateException("A PER PARTITION LIMIT value has already been provided");
  if (isDistinct)
    throw new IllegalStateException("PER PARTITION LIMIT is not allowed with SELECT DISTINCT queries");
  this.perPartitionLimit = marker;
  checkForBindMarkers(marker);
  return this;
}

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver

/**
 * Adds a prepared {@code PER PARTITION LIMIT} clause to this statement.
 * <p>
 * Note: support for {@code PER PARTITION LIMIT} clause is only available from
 * Cassandra 3.6 onwards.
 *
 * @param marker the marker to use for the limit per partition.
 * @return this statement.
 * @throws IllegalStateException if a {@code PER PARTITION LIMIT} clause has already been
 *                               provided.
 * @throws IllegalStateException if this statement is a {@code SELECT DISTINCT} statement.
 */
public Select perPartitionLimit(BindMarker marker) {
  if (this.perPartitionLimit != null)
    throw new IllegalStateException("A PER PARTITION LIMIT value has already been provided");
  if (isDistinct)
    throw new IllegalStateException("PER PARTITION LIMIT is not allowed with SELECT DISTINCT queries");
  this.perPartitionLimit = marker;
  checkForBindMarkers(marker);
  return this;
}

相关文章