public void writePayload(HashBin<Key, Value> bin, DataOutput os) throws IOException { os.writeInt(bin.data.size()); for (Map.Entry<Key, Value> entry : bin.data.entrySet()) { hashIndex.getKeyMarshaller().writePayload(entry.getKey(), os); hashIndex.getValueMarshaller().writePayload(entry.getValue(), os); } }
public HashBin<Key, Value> readPayload(DataInput is) throws IOException { HashBin<Key, Value> bin = new HashBin<Key, Value>(); int size = is.readInt(); for(int i=0; i < size; i++) { Key key = hashIndex.getKeyMarshaller().readPayload(is); Value value = hashIndex.getValueMarshaller().readPayload(is); bin.data.put(key, value); } return bin; }
public void writePayload(HashBin<Key, Value> bin, DataOutput os) throws IOException { os.writeInt(bin.data.size()); for (Map.Entry<Key, Value> entry : bin.data.entrySet()) { hashIndex.getKeyMarshaller().writePayload(entry.getKey(), os); hashIndex.getValueMarshaller().writePayload(entry.getValue(), os); } }
public void writePayload(HashBin<Key, Value> bin, DataOutput os) throws IOException { os.writeInt(bin.data.size()); for (Map.Entry<Key, Value> entry : bin.data.entrySet()) { hashIndex.getKeyMarshaller().writePayload(entry.getKey(), os); hashIndex.getValueMarshaller().writePayload(entry.getValue(), os); } }
public void writePayload(HashBin<Key, Value> bin, DataOutput os) throws IOException { os.writeInt(bin.data.size()); for (Map.Entry<Key, Value> entry : bin.data.entrySet()) { hashIndex.getKeyMarshaller().writePayload(entry.getKey(), os); hashIndex.getValueMarshaller().writePayload(entry.getValue(), os); } }
public HashBin<Key, Value> readPayload(DataInput is) throws IOException { HashBin<Key, Value> bin = new HashBin<Key, Value>(); int size = is.readInt(); for(int i=0; i < size; i++) { Key key = hashIndex.getKeyMarshaller().readPayload(is); Value value = hashIndex.getValueMarshaller().readPayload(is); bin.data.put(key, value); } return bin; }
public HashBin<Key, Value> readPayload(DataInput is) throws IOException { HashBin<Key, Value> bin = new HashBin<Key, Value>(); int size = is.readInt(); for(int i=0; i < size; i++) { Key key = hashIndex.getKeyMarshaller().readPayload(is); Value value = hashIndex.getValueMarshaller().readPayload(is); bin.data.put(key, value); } return bin; }
public HashBin<Key, Value> readPayload(DataInput is) throws IOException { HashBin<Key, Value> bin = new HashBin<Key, Value>(); int size = is.readInt(); for(int i=0; i < size; i++) { Key key = hashIndex.getKeyMarshaller().readPayload(is); Value value = hashIndex.getValueMarshaller().readPayload(is); bin.data.put(key, value); } return bin; }