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 BatchQueryOptionsDEFAULTprotected QueryOptionswrapped
-
Constructor Summary
Constructors Modifier Constructor Description protectedBatchQueryOptions(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 QueryOptionsforStatement(int i)ConsistencyLevelgetConsistency()java.lang.StringgetKeyspace()intgetNowInSeconds(QueryState state)java.util.List<java.lang.Object>getQueryOrIdList()ConsistencyLevelgetSerialConsistency()longgetTimestamp(QueryState state)voidprepareStatement(int i, java.util.List<ColumnSpecification> boundNames)java.lang.StringtoString()static BatchQueryOptionswithoutPerStatementVariables(QueryOptions options)static BatchQueryOptionswithPerStatementVariables(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 int getNowInSeconds(QueryState state)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-