<IMGSRC="../../../../resources/inherit.gif"ALT="extended by "><AHREF="../../../../com/yahoo/ycsb/DB.html"title="class in com.yahoo.ycsb">com.yahoo.ycsb.DB</A>
<IMGSRC="../../../../resources/inherit.gif"ALT="extended by "><B>com.yahoo.ycsb.db.CassandraClient</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>CassandraClient</B><DT>extends <AHREF="../../../../com/yahoo/ycsb/DB.html"title="class in com.yahoo.ycsb">DB</A></DL>
</PRE>
<P>
XXXX if we do replication, fix the consistency levels
<THALIGN="left"><B>Methods inherited from class com.yahoo.ycsb.<AHREF="../../../../com/yahoo/ycsb/DB.html"title="class in com.yahoo.ycsb">DB</A></B></TH>
public static final java.lang.String <B>CONNECTION_RETRY_PROPERTY</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><AHREF="../../../../constant-values.html#com.yahoo.ycsb.db.CassandraClient.CONNECTION_RETRY_PROPERTY">Constant Field Values</A></DL>
public static final java.lang.String <B>CONNECTION_RETRY_PROPERTY_DEFAULT</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><AHREF="../../../../constant-values.html#com.yahoo.ycsb.db.CassandraClient.CONNECTION_RETRY_PROPERTY_DEFAULT">Constant Field Values</A></DL>
public static final java.lang.String <B>OPERATION_RETRY_PROPERTY</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><AHREF="../../../../constant-values.html#com.yahoo.ycsb.db.CassandraClient.OPERATION_RETRY_PROPERTY">Constant Field Values</A></DL>
public static final java.lang.String <B>OPERATION_RETRY_PROPERTY_DEFAULT</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><AHREF="../../../../constant-values.html#com.yahoo.ycsb.db.CassandraClient.OPERATION_RETRY_PROPERTY_DEFAULT">Constant Field Values</A></DL>
throws <AHREF="../../../../com/yahoo/ycsb/DBException.html"title="class in com.yahoo.ycsb">DBException</A></PRE>
<DL>
<DD>Initialize any state for this DB.
Called once per DB instance; there is one DB instance per client thread.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><AHREF="../../../../com/yahoo/ycsb/DB.html#init()">init</A></CODE> in class <CODE><AHREF="../../../../com/yahoo/ycsb/DB.html"title="class in com.yahoo.ycsb">DB</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><AHREF="../../../../com/yahoo/ycsb/DBException.html"title="class in com.yahoo.ycsb">DBException</A></CODE></DL>
</DD>
</DL>
<HR>
<ANAME="cleanup()"><!-- --></A><H3>
cleanup</H3>
<PRE>
public void <B>cleanup</B>()
throws <AHREF="../../../../com/yahoo/ycsb/DBException.html"title="class in com.yahoo.ycsb">DBException</A></PRE>
<DL>
<DD>Cleanup any state for this DB.
Called once per DB instance; there is one DB instance per client thread.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><AHREF="../../../../com/yahoo/ycsb/DB.html#cleanup()">cleanup</A></CODE> in class <CODE><AHREF="../../../../com/yahoo/ycsb/DB.html"title="class in com.yahoo.ycsb">DB</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><AHREF="../../../../com/yahoo/ycsb/DBException.html"title="class in com.yahoo.ycsb">DBException</A></CODE></DL>
<DD>Read a record from the database. Each field/value pair from the result will be stored in a HashMap.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../../com/yahoo/ycsb/DB.html#read(java.lang.String, java.lang.String, java.util.Set, java.util.HashMap)">read</A></CODE> in class <CODE><AHREF="../../../../com/yahoo/ycsb/DB.html"title="class in com.yahoo.ycsb">DB</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>table</CODE> - The name of the table<DD><CODE>key</CODE> - The record key of the record to read.<DD><CODE>fields</CODE> - The list of fields to read, or null for all of them<DD><CODE>result</CODE> - A HashMap of field/value pairs for the result
<DT><B>Returns:</B><DD>Zero on success, a non-zero error code on error</DL>
<DD>Perform a range scan for a set of records in the database. Each field/value pair from the result will be stored in a HashMap.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../../com/yahoo/ycsb/DB.html#scan(java.lang.String, java.lang.String, int, java.util.Set, java.util.Vector)">scan</A></CODE> in class <CODE><AHREF="../../../../com/yahoo/ycsb/DB.html"title="class in com.yahoo.ycsb">DB</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>table</CODE> - The name of the table<DD><CODE>startkey</CODE> - The record key of the first record to read.<DD><CODE>recordcount</CODE> - The number of records to read<DD><CODE>fields</CODE> - The list of fields to read, or null for all of them<DD><CODE>result</CODE> - A Vector of HashMaps, where each HashMap is a set field/value pairs for one record
<DT><B>Returns:</B><DD>Zero on success, a non-zero error code on error</DL>
<DD>Update a record in the database. Any field/value pairs in the specified values HashMap will be written into the record with the specified
record key, overwriting any existing values with the same field name.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../../com/yahoo/ycsb/DB.html#update(java.lang.String, java.lang.String, java.util.HashMap)">update</A></CODE> in class <CODE><AHREF="../../../../com/yahoo/ycsb/DB.html"title="class in com.yahoo.ycsb">DB</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>table</CODE> - The name of the table<DD><CODE>key</CODE> - The record key of the record to write.<DD><CODE>values</CODE> - A HashMap of field/value pairs to update in the record
<DT><B>Returns:</B><DD>Zero on success, a non-zero error code on error</DL>
<DD>Insert a record in the database. Any field/value pairs in the specified values HashMap will be written into the record with the specified
record key.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../../com/yahoo/ycsb/DB.html#insert(java.lang.String, java.lang.String, java.util.HashMap)">insert</A></CODE> in class <CODE><AHREF="../../../../com/yahoo/ycsb/DB.html"title="class in com.yahoo.ycsb">DB</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>table</CODE> - The name of the table<DD><CODE>key</CODE> - The record key of the record to insert.<DD><CODE>values</CODE> - A HashMap of field/value pairs to insert in the record
<DT><B>Returns:</B><DD>Zero on success, a non-zero error code on error</DL>
public int <B>delete</B>(java.lang.String table,
java.lang.String key)</PRE>
<DL>
<DD>Delete a record from the database.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../../com/yahoo/ycsb/DB.html#delete(java.lang.String, java.lang.String)">delete</A></CODE> in class <CODE><AHREF="../../../../com/yahoo/ycsb/DB.html"title="class in com.yahoo.ycsb">DB</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>table</CODE> - The name of the table<DD><CODE>key</CODE> - The record key of the record to delete.
<DT><B>Returns:</B><DD>Zero on success, a non-zero error code on error</DL>