@Override public void readData(ObjectDataInput in) throws IOException { predicate = in.readObject(); comparator = in.readObject(); page = in.readInt(); pageSize = in.readInt(); iterationType = IterationType.valueOf(in.readUTF()); int size = in.readInt(); anchorList = new ArrayList<Map.Entry<Integer, Map.Entry<K, V>>>(size); for (int i = 0; i < size; i++) { int anchorPage = in.readInt(); Object anchorKey = in.readObject(); Object anchorValue = in.readObject(); Map.Entry anchorEntry = new SimpleImmutableEntry(anchorKey, anchorValue); anchorList.add(new SimpleImmutableEntry<Integer, Map.Entry<K, V>>(anchorPage, anchorEntry)); } }
@Override public void readData(ObjectDataInput in) throws IOException { predicate = in.readObject(); comparator = in.readObject(); page = in.readInt(); pageSize = in.readInt(); iterationType = IterationType.valueOf(in.readUTF()); int size = in.readInt(); anchorList = new ArrayList<Map.Entry<Integer, Map.Entry<K, V>>>(size); for (int i = 0; i < size; i++) { int anchorPage = in.readInt(); Object anchorKey = in.readObject(); Object anchorValue = in.readObject(); Map.Entry anchorEntry = new SimpleImmutableEntry(anchorKey, anchorValue); anchorList.add(new SimpleImmutableEntry<Integer, Map.Entry<K, V>>(anchorPage, anchorEntry)); } }