VPartitionTupleBufferManager implements IPartitionedTupleBufferManager { @Override public int getNumPartitions() { return partitionArray.length; } VPartitionTupleBufferManager(IPartitionedMemoryConstrain constrain, int partitions,
            IDeallocatableFramePool framePool);  VPartitionTupleBufferManager(IHyracksFrameMgrContext ctx, IPartitionedMemoryConstrain constrain,
            int partitions, int frameLimitInBytes); @Override void setConstrain(IPartitionedMemoryConstrain constrain); @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 cancelInsertTuple(int partition); static int calculateActualSize(int[] fieldEndOffsets, int size); @Override void close(); @Override ITuplePointerAccessor getTuplePointerAccessor(final RecordDescriptor recordDescriptor); @Override void flushPartition(int pid, IFrameWriter writer); static final IPartitionedMemoryConstrain NO_CONSTRAIN; }
@Test public void testGetNumPartitions() throws Exception { assertEquals(PARTITION, bufferManager.getNumPartitions()); }