Skip to content
Snippets Groups Projects
Commit a997f7e6 authored by Bill Havanki's avatar Bill Havanki Committed by Sean Busbey
Browse files

Fix Accumulo retrieval of values for scan and read

parent ff4342d8
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,7 @@ public class AccumuloClient extends DB {
}
@Override
public void cleanup() throws DBException
{
try {
......@@ -104,7 +105,7 @@ public class AccumuloClient extends DB {
}
} catch (MutationsRejectedException e) {
throw new DBException(e);
}
}
}
/**
......@@ -180,8 +181,7 @@ public class AccumuloClient extends DB {
// Pick out the results we care about.
for (Entry<Key, Value> entry : getRow(new Text(key), null)) {
Value v = entry.getValue();
byte[] buf = new byte[v.getSize()];
v.copy(buf);
byte[] buf = v.get();
result.put(entry.getKey().getColumnQualifier().toString(),
new ByteArrayByteIterator(buf));
}
......@@ -249,7 +249,7 @@ public class AccumuloClient extends DB {
}
// Now add the key to the hashmap.
Value v = entry.getValue();
byte[] buf = new byte[v.getSize()];
byte[] buf = v.get();
currentHM.put(entry.getKey().getColumnQualifier().toString(), new ByteArrayByteIterator(buf));
}
......
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