Package org.teiid.internal.core.index
Class Block
- java.lang.Object
-
- org.teiid.internal.core.index.Block
-
- Direct Known Subclasses:
FileListBlock
,IndexBlock
public abstract class Block extends Object
A block is a container that can hold information (a list of file names, a list of words, ...), be saved on the disk and loaded in memory.
-
-
Constructor Summary
Constructors Constructor Description Block(int blockSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
read(RandomAccessFile raf, int blockNum)
Loads the block with the given number in memory, reading it from a RandomAccessFile.
-
-
-
Field Detail
-
blockSize
protected int blockSize
Size of the block
-
field
protected Field field
Field in which the information is stored
-
-
Method Detail
-
read
public void read(RandomAccessFile raf, int blockNum) throws IOException
Loads the block with the given number in memory, reading it from a RandomAccessFile.- Throws:
IOException
-
-