@Override public void writeData(ObjectDataOutput out) throws IOException { out.writeObject(predicate); out.writeObject(comparator); out.writeInt(page); out.writeInt(pageSize); out.writeUTF(iterationType.name()); out.writeInt(anchorList.size()); for (Map.Entry<Integer, Map.Entry<K, V>> anchor : anchorList) { out.writeInt(anchor.getKey()); Map.Entry<K, V> anchorEntry = anchor.getValue(); out.writeObject(anchorEntry.getKey()); out.writeObject(anchorEntry.getValue()); } }
@Override public void writeData(ObjectDataOutput out) throws IOException { out.writeObject(predicate); out.writeObject(comparator); out.writeInt(page); out.writeInt(pageSize); out.writeUTF(iterationType.name()); out.writeInt(anchorList.size()); for (Map.Entry<Integer, Map.Entry<K, V>> anchor : anchorList) { out.writeInt(anchor.getKey()); Map.Entry<K, V> anchorEntry = anchor.getValue(); out.writeObject(anchorEntry.getKey()); out.writeObject(anchorEntry.getValue()); } }