public class QueryOptions extends Object
Constructor and Description |
---|
QueryOptions()
No Args Constructor
|
Modifier and Type | Method and Description |
---|---|
com.datastax.oss.driver.api.core.ConsistencyLevel |
getConsistencyLevel()
Query Consistency Level as Object
|
String |
toString()
Convert to JSON string
|
QueryOptions |
withAllColumns()
Set to use all columns
|
QueryOptions |
withConsistencyLevel(String consistencyLevel)
Set consistency level
|
QueryOptions |
withLimit(Integer limit)
Set query limit
|
QueryOptions |
withoutLimit()
Clear query limit
|
QueryOptions |
withoutPersistNulls()
Set to not persist nulls
|
QueryOptions |
withoutProfile()
Clear execution profile
|
QueryOptions |
withoutTTL()
Clear TTL
|
QueryOptions |
withPersistNulls()
Set to persist nulls
|
QueryOptions |
withPrimaryKeysOnly()
Set to only use primary keys
|
QueryOptions |
withProfile(String profile)
Set execution profile
|
QueryOptions |
withTTL(Integer ttl)
Set TTL
|
public String toString()
public com.datastax.oss.driver.api.core.ConsistencyLevel getConsistencyLevel()
public QueryOptions withAllColumns()
public QueryOptions withConsistencyLevel(String consistencyLevel)
consistencyLevel
- consistency level to use for querypublic QueryOptions withLimit(Integer limit)
limit
- limit for querypublic QueryOptions withPrimaryKeysOnly()
public QueryOptions withProfile(String profile)
profile
- execution profile for querypublic QueryOptions withPersistNulls()
public QueryOptions withTTL(Integer ttl)
ttl
- TTL for querypublic QueryOptions withoutLimit()
public QueryOptions withoutPersistNulls()
public QueryOptions withoutProfile()
public QueryOptions withoutTTL()
Copyright © 2019. All rights reserved.