VPartitionTupleBufferManager implements IPartitionedTupleBufferManager { @Override public int getNumPartitions() { return partitionArray.length; } VPartitionTupleBufferManager(IHyracksFrameMgrContext ctx, IPartitionedMemoryConstrain constrain,
            int partitions, int frameLimitInBytes); @Override void reset(); @Override int getNumPartitions(); @Override int getNumTuples(int partition); @Override int getPhysicalSize(int partitionId); @Override void clearPartition(int partitionId); @Override boolean insertTuple(int partition, byte[] byteArray, int[] fieldEndOffsets, int start, int size,
            TuplePointer pointer); @Override boolean insertTuple(int partition, IFrameTupleAccessor tupleAccessor, int tupleId, TuplePointer pointer); @Override void close(); @Override ITuplePointerAccessor getTupleAccessor(final RecordDescriptor recordDescriptor); @Override void flushPartition(int pid, IFrameWriter writer);  }
@Test public void testGetNumPartitions() throws Exception { assertEquals(PARTITION, bufferManager.getNumPartitions()); }