slumberdb/slumberdb-core/src/main/java/org/boon/slumberdb/base/BaseStringBinaryKeyValueStore.java
public KeyValueIterable<K, V> search(K startKey) {
        final KeyValueIterable<String, byte[]> search = store.search(toKeyString(startKey));
        final Iterator<Entry<String, byte[]>> iterator = search.iterator();
        return new KeyValueIterable<K, V>() {
            @Override
            public void close() {
                search.close();
            }

            @Override
            public Iterator<Entry<K, V>> iterator() {
                return new Iterator<Entry<K, V>>() {
                    @Override
                    public boolean hasNext() {
                        return iterator.hasNext();
                    }

                    @Override
                    public Entry<K, V> next() {
                        final Entry<String, byte[]> next = iterator.next();

                        return new Entry<>(toKeyObject(next.key()),
                                toValueObject(next.value()));
                    }

                    @Override
                    public void remove() {
                        iterator.remove();
                    }
                };
            }
        };
    }
public KeyValueIterable<K, V> search(K startKey) {
        final KeyValueIterable<String, byte[]> search = store.search(toKeyString(startKey));
        final Iterator<Entry<String, byte[]>> iterator = search.iterator();
        return new KeyValueIterable<K, V>() {
            @Override
            public void close() {
                search.close();
            }

            @Override
            public Iterator<Entry<K, V>> iterator() {
                return new Iterator<Entry<K, V>>() {
                    @Override
                    public boolean hasNext() {
                        return iterator.hasNext();
                    }

                    @Override
                    public Entry<K, V> next() {
                        final Entry<String, byte[]> next = iterator.next();

                        return new Entry<>(toKeyObject(next.key()),
                                toValueObject(next.value()));
                    }

                    @Override
                    public void remove() {
                        iterator.remove();
                    }
                };
            }
        };
    }
Search for a key in the key / value store.

@param startKey
@return