edu.unh.sdb.datasource
Class DataBlockCollection

java.lang.Object
  extended by edu.unh.sdb.datasource.DataBlockCollection

public class DataBlockCollection
extends java.lang.Object

Represents a list of DataBlocks. Currently, all blocks must have the same RecordDescriptor.


Field Summary
protected  java.util.ArrayList<DataBlock> blockList
           
protected  RecordDescriptor recordDescriptor
           
 
Constructor Summary
DataBlockCollection(int size, RecordDescriptor recordDescriptor)
           
 
Method Summary
 void add(DataBlock block)
           
 void clear()
           
 DataBlock get(int i)
           
 RecordDescriptor getRecordDescriptor()
           
 int getStorageType()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

blockList

protected java.util.ArrayList<DataBlock> blockList

recordDescriptor

protected RecordDescriptor recordDescriptor
Constructor Detail

DataBlockCollection

public DataBlockCollection(int size,
                           RecordDescriptor recordDescriptor)
Method Detail

add

public void add(DataBlock block)

get

public DataBlock get(int i)

size

public int size()

clear

public void clear()

getRecordDescriptor

public RecordDescriptor getRecordDescriptor()

getStorageType

public int getStorageType()