|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.internal.core.index.Block
public abstract class Block
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.
| Field Summary | |
|---|---|
protected int |
blockSize
Size of the block |
protected Field |
field
Field in which the information is stored |
| Constructor Summary | |
|---|---|
Block(int blockSize)
|
|
| Method Summary | |
|---|---|
void |
clear()
Empties the block. |
void |
flush()
Flushes the block |
void |
read(java.io.RandomAccessFile raf,
int blockNum)
Loads the block with the given number in memory, reading it from a RandomAccessFile. |
void |
write(java.io.RandomAccessFile raf,
int blockNum)
Writes the block in a RandomAccessFile, giving it a block number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int blockSize
protected Field field
| Constructor Detail |
|---|
public Block(int blockSize)
| Method Detail |
|---|
public void clear()
public void flush()
public void read(java.io.RandomAccessFile raf,
int blockNum)
throws java.io.IOException
java.io.IOException
public void write(java.io.RandomAccessFile raf,
int blockNum)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||