Skip to content
Snippets Groups Projects
Commit e92b9d9c authored by Russell Sears's avatar Russell Sears
Browse files

fix build errors

parent 09940e5b
No related branches found
No related tags found
No related merge requests found
......@@ -442,9 +442,9 @@ public class CassandraClient6 extends DB
}
HashMap<String,ByteIterator> vals=new HashMap<String,ByteIterator>();
vals.put("age","57");
vals.put("middlename","bradley");
vals.put("favoritecolor","blue");
vals.put("age",new StringByteIterator("57"));
vals.put("middlename",new StringByteIterator("bradley"));
vals.put("favoritecolor",new StringByteIterator("blue"));
int res=cli.insert("usertable","BrianFrankCooper",vals);
System.out.println("Result of insert: "+res);
......
......@@ -14,6 +14,7 @@ import java.util.HashMap;
import java.util.Iterator;
import java.util.Properties;
import java.util.Set;
import java.util.Map;
import java.util.Vector;
import org.bson.types.ObjectId;
......
......@@ -44,8 +44,8 @@ public class StringByteIterator extends ByteIterator {
* Create a copy of a map, converting the values from Strings to
* StringByteIterators.
*/
public static Map<String, ByteIterator> getByteIteratorMap(Map<String, String> m) {
Map<String, ByteIterator> ret =
public static HashMap<String, ByteIterator> getByteIteratorMap(Map<String, String> m) {
HashMap<String, ByteIterator> ret =
new HashMap<String,ByteIterator>();
for(String s: m.keySet()) {
......@@ -58,8 +58,8 @@ public class StringByteIterator extends ByteIterator {
* Create a copy of a map, converting the values from
* StringByteIterators to Strings.
*/
public static Map<String, String> getStringMap(Map<String, ByteIterator> m) {
Map<String, String> ret = new HashMap<String,String>();
public static HashMap<String, String> getStringMap(Map<String, ByteIterator> m) {
HashMap<String, String> ret = new HashMap<String,String>();
for(String s: m.keySet()) {
ret.put(s, m.get(s).toString());;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment