SerializableHashTable extends SimpleSerializableHashTable { @Override public void reset() { super.reset(); currentByteSize = 0; } SerializableHashTable(int tableSize, final IHyracksFrameMgrContext ctx,
            ISimpleFrameBufferManager bufferManager);  SerializableHashTable(int tableSize, final IHyracksFrameMgrContext ctx,
            ISimpleFrameBufferManager bufferManager, double garbageCollectionThreshold); @Override void reset(); @Override void close(); @Override boolean isGarbageCollectionNeeded(); @Override int collectGarbage(ITuplePointerAccessor bufferAccessor, ITuplePartitionComputer tpc); @Override String printInfo(); void getSlotInfo(int contentFrameIndex, int contentOffsetIndex, SlotInfoPair<Integer, Integer> slotInfo);  }
@Test public void testBatchDeletePartition() throws Exception { testInsert(); for (int i = 0; i < NUM_PART; i++) { nsTable.delete(i); assertFalse(nsTable.getTuplePointer(i, 0, pointer)); assertEquals(0, nsTable.getTupleCount(i)); for (int j = i; j < num; j += NUM_PART) { pointer.reset(j, j); nsTable.insert(i, pointer); } assertGetValue(); } }
@Test public void testInsert() throws Exception { for (int i = 0; i < num; i++) { pointer.reset(i, i); nsTable.insert(i % NUM_PART, pointer); } assertGetValue(); }