final OCommandRequest cmd = formatCommand(QUERY_KEYS, name);
return (Iterable<Object>) getDatabase().command(cmd).execute();
}
public Iterator<Entry<Object, Set<OIdentifiable>>> iterator() {
final OCommandRequest cmd = formatCommand(QUERY_ENTRIES, name);
final Collection<ODocument> result = getDatabase().command(cmd).execute();
Map<Object, Set<OIdentifiable>> map = new HashMap<Object, Set<OIdentifiable>>();
for (ODocument d : result) {
Set<OIdentifiable> rids = map.get(d.field("key"));