Permalink
Browse files

added a fix for properly getting the splits when the Gora Key is a St…

…ring
  • Loading branch information...
1 parent 2843bcb commit 70edb1f826d8b81e2b11a05a214f1ff187a321f8 @jt6211 committed Mar 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 gora-accumulo/src/main/java/org/apache/gora/accumulo/store/AccumuloStore.java
@@ -767,7 +767,7 @@ else if (Tables.getTableState(conn.getInstance(), Tables.getTableId(conn.getInst
} else if (clazz.equals(Double.TYPE) || clazz.equals(Double.class)) {
return fromBytes(encoder, clazz, encoder.lastPossibleKey(8, er));
} else if (clazz.equals(String.class)) {
- throw new UnsupportedOperationException();
+ return fromBytes(encoder, clazz, er);
} else if (clazz.equals(Utf8.class)) {
return fromBytes(encoder, clazz, er);
}
@@ -799,7 +799,7 @@ else if (Tables.getTableState(conn.getInstance(), Tables.getTableId(conn.getInst
} else if (clazz.equals(Double.TYPE) || clazz.equals(Double.class)) {
return fromBytes(encoder, clazz, encoder.followingKey(8, per));
} else if (clazz.equals(String.class)) {
- throw new UnsupportedOperationException();
+ return fromBytes(encoder, clazz, Arrays.copyOf(per, per.length + 1));
} else if (clazz.equals(Utf8.class)) {
return fromBytes(encoder, clazz, Arrays.copyOf(per, per.length + 1));
}

0 comments on commit 70edb1f

Please sign in to comment.