final class PhysicalRowIdManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private RecordFile |
file
The file we're talking to and the associated page manager.
|
private FreePhysicalRowIdPageManager |
freePageManager
The FreePage manager
|
private PageManager |
pageManager
The page manager
|
| Constructor and Description |
|---|
PhysicalRowIdManager(PageManager pageManager)
Creates a new rowid manager using the indicated record file.
|
| Modifier and Type | Method and Description |
|---|---|
private Location |
alloc(int size)
Allocate a new rowid with the indicated size.
|
private Location |
allocNew(int size,
long start)
Allocates a new rowid.
|
(package private) void |
delete(Location rowid)
Deletes a record.
|
(package private) byte[] |
fetch(Location rowid)
Retrieves a record.
|
private void |
free(Location id) |
(package private) Location |
insert(byte[] data,
int start,
int length)
Inserts a new record.
|
(package private) Location |
update(Location rowid,
byte[] data,
int start,
int length)
Updates an existing record.
|
private void |
write(Location rowid,
byte[] data,
int start,
int length)
Writes out data to a rowid.
|
private RecordFile file
private PageManager pageManager
private FreePhysicalRowIdPageManager freePageManager
PhysicalRowIdManager(PageManager pageManager) throws java.io.IOException
java.io.IOException - If we had an issue while creating the fileLocation insert(byte[] data, int start, int length) throws java.io.IOException
java.io.IOExceptionLocation update(Location rowid, byte[] data, int start, int length) throws java.io.IOException
java.io.IOExceptionvoid delete(Location rowid) throws java.io.IOException
java.io.IOExceptionbyte[] fetch(Location rowid) throws java.io.IOException
java.io.IOExceptionprivate Location alloc(int size) throws java.io.IOException
java.io.IOExceptionprivate Location allocNew(int size, long start) throws java.io.IOException
java.io.IOExceptionprivate void free(Location id) throws java.io.IOException
java.io.IOExceptionprivate void write(Location rowid, byte[] data, int start, int length) throws java.io.IOException
java.io.IOException