本文整理了Java中com.datastax.driver.core.querybuilder.Select.setDirty()
方法的一些代码示例,展示了Select.setDirty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Select.setDirty()
方法的具体详情如下:
包路径:com.datastax.driver.core.querybuilder.Select
类名称:Select
方法名:setDirty
暂无
代码示例来源:origin: com.datastax.cassandra/cassandra-driver-core
/**
* Adds a {@code LIMIT} clause to this statement.
*
* @param limit the limit to set.
* @return this statement.
* @throws IllegalArgumentException if {@code limit <= 0}.
* @throws IllegalStateException if a {@code 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;
setDirty();
return this;
}
代码示例来源:origin: com.datastax.cassandra/cassandra-driver-core
/**
* Adds a {@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 perPartitionLimit the limit to set per partition.
* @return this statement.
* @throws IllegalArgumentException if {@code perPartitionLimit <= 0}.
* @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(int perPartitionLimit) {
if (perPartitionLimit <= 0)
throw new IllegalArgumentException(
"Invalid PER PARTITION LIMIT value, must be strictly positive");
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 = perPartitionLimit;
setDirty();
return this;
}
代码示例来源:origin: io.prestosql.cassandra/cassandra-driver
/**
* Adds a {@code LIMIT} clause to this statement.
*
* @param limit the limit to set.
* @return this statement.
* @throws IllegalArgumentException if {@code limit <= 0}.
* @throws IllegalStateException if a {@code 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;
setDirty();
return this;
}
代码示例来源:origin: com.yugabyte/cassandra-driver-core
/**
* Adds a {@code LIMIT} clause to this statement.
*
* @param limit the limit to set.
* @return this statement.
* @throws IllegalArgumentException if {@code limit <= 0}.
* @throws IllegalStateException if a {@code 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;
setDirty();
return this;
}
代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver
/**
* Adds a {@code LIMIT} clause to this statement.
*
* @param limit the limit to set.
* @return this statement.
* @throws IllegalArgumentException if {@code limit <= 0}.
* @throws IllegalStateException if a {@code 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;
setDirty();
return this;
}
代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver
/**
* Adds a {@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 perPartitionLimit the limit to set per partition.
* @return this statement.
* @throws IllegalArgumentException if {@code perPartitionLimit <= 0}.
* @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(int perPartitionLimit) {
if (perPartitionLimit <= 0)
throw new IllegalArgumentException("Invalid PER PARTITION LIMIT value, must be strictly positive");
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 = perPartitionLimit;
setDirty();
return this;
}
代码示例来源:origin: io.prestosql.cassandra/cassandra-driver
/**
* Adds a {@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 perPartitionLimit the limit to set per partition.
* @return this statement.
* @throws IllegalArgumentException if {@code perPartitionLimit <= 0}.
* @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(int perPartitionLimit) {
if (perPartitionLimit <= 0)
throw new IllegalArgumentException("Invalid PER PARTITION LIMIT value, must be strictly positive");
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 = perPartitionLimit;
setDirty();
return this;
}
代码示例来源:origin: com.yugabyte/cassandra-driver-core
/**
* Adds a {@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 perPartitionLimit the limit to set per partition.
* @return this statement.
* @throws IllegalArgumentException if {@code perPartitionLimit <= 0}.
* @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(int perPartitionLimit) {
if (perPartitionLimit <= 0)
throw new IllegalArgumentException("Invalid PER PARTITION LIMIT value, must be strictly positive");
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 = perPartitionLimit;
setDirty();
return this;
}
内容来源于网络,如有侵权,请联系作者删除!