Package org.apache.cassandra.cql3
Class BatchQueryOptions
- java.lang.Object
-
- org.apache.cassandra.cql3.BatchQueryOptions
-
public abstract class BatchQueryOptions extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static BatchQueryOptions
DEFAULT
protected QueryOptions
wrapped
-
Constructor Summary
Constructors Modifier Constructor Description protected
BatchQueryOptions(QueryOptions wrapped, java.util.List<java.lang.Object> queryOrIdList)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract QueryOptions
forStatement(int i)
ConsistencyLevel
getConsistency()
java.lang.String
getKeyspace()
long
getNowInSeconds(QueryState state)
java.util.List<java.lang.Object>
getQueryOrIdList()
ConsistencyLevel
getSerialConsistency()
long
getTimestamp(QueryState state)
void
prepareStatement(int i, java.util.List<ColumnSpecification> boundNames)
java.lang.String
toString()
static BatchQueryOptions
withoutPerStatementVariables(QueryOptions options)
static BatchQueryOptions
withPerStatementVariables(QueryOptions options, java.util.List<java.util.List<java.nio.ByteBuffer>> variables, java.util.List<java.lang.Object> queryOrIdList)
-
-
-
Field Detail
-
DEFAULT
public static BatchQueryOptions DEFAULT
-
wrapped
protected final QueryOptions wrapped
-
-
Constructor Detail
-
BatchQueryOptions
protected BatchQueryOptions(QueryOptions wrapped, java.util.List<java.lang.Object> queryOrIdList)
-
-
Method Detail
-
withoutPerStatementVariables
public static BatchQueryOptions withoutPerStatementVariables(QueryOptions options)
-
withPerStatementVariables
public static BatchQueryOptions withPerStatementVariables(QueryOptions options, java.util.List<java.util.List<java.nio.ByteBuffer>> variables, java.util.List<java.lang.Object> queryOrIdList)
-
forStatement
public abstract QueryOptions forStatement(int i)
-
prepareStatement
public void prepareStatement(int i, java.util.List<ColumnSpecification> boundNames)
-
getConsistency
public ConsistencyLevel getConsistency()
-
getKeyspace
public java.lang.String getKeyspace()
-
getSerialConsistency
public ConsistencyLevel getSerialConsistency()
-
getQueryOrIdList
public java.util.List<java.lang.Object> getQueryOrIdList()
-
getTimestamp
public long getTimestamp(QueryState state)
-
getNowInSeconds
public long getNowInSeconds(QueryState state)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-