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; }
/** * @param tx * @param pageId * @throws IOException */ private void clearBinAtPage(Transaction tx, long pageId) throws IOException { Page<HashBin<Key,Value>> page = tx.load(pageId, null); HashBin<Key, Value> bin = new HashBin<Key,Value>(); bin.setPage(page); page.set(bin); store(tx, 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; }
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; }
/** * @param tx * @param pageId * @throws IOException */ private void clearBinAtPage(Transaction tx, long pageId) throws IOException { Page<HashBin<Key,Value>> page = tx.load(pageId, null); HashBin<Key, Value> bin = new HashBin<Key,Value>(); bin.setPage(page); page.set(bin); store(tx, bin); }
/** * @param tx * @param pageId * @throws IOException */ private void clearBinAtPage(Transaction tx, long pageId) throws IOException { Page<HashBin<Key,Value>> page = tx.load(pageId, null); HashBin<Key, Value> bin = new HashBin<Key,Value>(); bin.setPage(page); page.set(bin); store(tx, bin); }
/** * @param tx * @param pageId * @throws IOException */ private void clearBinAtPage(Transaction tx, long pageId) throws IOException { Page<HashBin<Key,Value>> page = tx.load(pageId, null); HashBin<Key, Value> bin = new HashBin<Key,Value>(); bin.setPage(page); page.set(bin); store(tx, bin); }