@Override
  public long size(Object start, Object end) {
    byte[] startBytes = ByteComparator.MIN_BYTES;
    byte[] endBytes = ByteComparator.MAX_BYTES;
    return map.subMap(new Pair(start, startBytes), new Pair(end, endBytes)).size();
  }
A dummy implementation of an IndexMap. Keeps all of the entries in memory, but in serialized
form.
geode-core/src/main/java/org/apache/geode/internal/cache/persistence/query/mock/IndexMapImpl.java