|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.io.TableAccess
public abstract class TableAccess
This abstract class defines the methods for accessing the database table representation.
| Constructor Summary | |
|---|---|
TableAccess(MetaData md,
String pf)
Constructor. |
|
| Method Summary | |
|---|---|
abstract void |
close()
Closes the table access. |
abstract void |
delete(int pre,
int nr)
Deletes the specified number of entries from the database. |
abstract void |
flush()
Flushes the table contents. |
abstract void |
insert(int pre,
byte[] entries)
Inserts the specified entries into the database. |
abstract int |
read1(int p,
int o)
Reads a byte value and returns it as an integer value. |
abstract int |
read2(int p,
int o)
Reads a short value and returns it as an integer value. |
abstract int |
read4(int p,
int o)
Reads an integer value. |
abstract long |
read5(int p,
int o)
Reads a 5-byte value and returns it as a long value. |
abstract void |
set(int pre,
byte[] entries)
Copies the specified entry into the database. |
abstract void |
write1(int p,
int o,
int v)
Writes a byte value to the specified position. |
abstract void |
write2(int p,
int o,
int v)
Writes a short value to the specified position. |
abstract void |
write4(int p,
int o,
int v)
Writes an integer value to the specified position. |
abstract void |
write5(int p,
int o,
long v)
Writes a 5-byte value to the specified position. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableAccess(MetaData md,
String pf)
md - meta datapf - file prefix| Method Detail |
|---|
public abstract void flush()
throws IOException
IOException - I/O exception
public abstract void close()
throws IOException
IOException - I/O exception
public abstract int read1(int p,
int o)
p - pre valueo - offset
public abstract int read2(int p,
int o)
p - pre valueo - offset
public abstract int read4(int p,
int o)
p - pre valueo - offset
public abstract long read5(int p,
int o)
p - pre valueo - offset
public abstract void write1(int p,
int o,
int v)
p - pre valueo - offsetv - value to be written
public abstract void write2(int p,
int o,
int v)
p - pre valueo - offsetv - value to be written
public abstract void write4(int p,
int o,
int v)
p - pre valueo - offsetv - value to be written
public abstract void write5(int p,
int o,
long v)
p - pre valueo - offsetv - value to be written
public abstract void delete(int pre,
int nr)
pre - pre value of the first node to deletenr - number of entries to be deleted
public abstract void insert(int pre,
byte[] entries)
pre - pre valueentries - array of bytes containing the entries to insert
public abstract void set(int pre,
byte[] entries)
pre - pre valueentries - array of bytes containing the entries to insert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||