org.apache.derby.impl.store.raw.data |
|
Java Source File Name | Type | Comment |
AllocationActions.java | Interface | This interface describe the operations that has to do with page
allocation/deallocation. |
AllocationCache.java | Class | An auxiliary object to cache the allocation information for a file container. |
AllocExtent.java | Class | An allocation extent row manages the page status of page in the extent. |
AllocPage.java | Class | An allocation page of the file container.
This class extends a normal Stored page, with the exception that a hunk of
space may be 'borrowed' by the file container to store the file header.
The borrowed space is not visible to the alloc page even though it is
present in the page data array. |
AllocPageOperation.java | Class | |
BaseContainer.java | Class | BaseContainer is an abstract class that provides the locking bahaviour
for an object representing an active container, that is the actual
storage container, not the ContainerHandle interface. |
BaseContainerHandle.java | Class | A handle to an open container, implememts RawContainerHandle. |
BaseDataFileFactory.java | Class | Provides the abstract class with most of the implementation of DataFactory and
ModuleControl shared by all the different filesystem implementations.
RESOLVE (mikem - 2/19/98) -
Currently only getContainerClass() is abstract, there are probably more
routines which should be abstract. |
BasePage.java | Class | This class implements all the the generic locking behaviour for a Page.
It leaves method used to log and store the records up to sub-classes.
It is intended that the object can represent multiple pages from different
containers during its lifetime.
A page contains a set of records, which can be accessed by "slot",
which defines the order of the records on the page, or by "id" which
defines the identity of the records on the page. |
BufferedByteHolderInputStream.java | Class | |
ByteHolder.java | Interface | Holder for a growing sequence of bytes. |
ByteHolderInputStream.java | Class | |
CachedPage.java | Class | A base page that is cached. |
ChainAllocPageOperation.java | Class | |
CompressSpacePageOperation.java | Class | Log operation to implement compressing space from a container and returning
it to the operating system. |
ContainerActionOnCommit.java | Class | An Observer that can be attached to a transaction to
implement some action when the transaction
commits or rollsback in some way. |
ContainerBasicOperation.java | Class | A Container Operation change the state of the container. |
ContainerHandleActionOnCommit.java | Class | An abstract class that opens the container at commit and delegates
the actual work to a sub-class. |
ContainerOperation.java | Class | Log operation to create, drop or remove a container.
Both the doMe or the undoMe of a create actually caused the container
header to be modified and flushed before the log record is flushed. |
ContainerUndoOperation.java | Class | |
CopyRowsOperation.java | Class | Represents copying num_rows from one page to another page. |
DecryptInputStream.java | Class | A DecryptInputStream is used by stream container to access an encrypted
stream of bytes. |
DeleteOperation.java | Class | Represents a delete (or undelete) of a record in a page. |
DirectActions.java | Class | |
DirectAllocActions.java | Class | |
DropOnCommit.java | Class | |
D_BaseContainerHandle.java | Class | The D_BaseContainerHandle class provides diagnostic information about the
BaseContainerHandle class. |
D_DiagnosticUtil.java | Class | This class provides some utility functions used to debug on disk structures
of the store. |
D_RecordId.java | Class | The D_RecordId class provides diagnostic information about the
BaseContainerHandle class. |
D_StoredPage.java | Class | The D_StoredPage class provides diagnostic information about the StoredPage
class. |
EncryptContainerOperation.java | Class | Log operation to encrypt a container with a new encryption key or to encrypt
an unencrypted container while configuring the database for
encryption. |
EncryptContainerUndoOperation.java | Class | |
EncryptData.java | Class | This class is used to encrypt all the containers in the data segment with a
new encryption key when password/key is changed or when an existing database
is reconfigured for encryption. |
FileContainer.java | Class | FileContainer is an abstract base class for containers
which are based on files. |
InitPageOperation.java | Class | This operation initializes the page that is being allocated,
this operation does not change the alloc page information. |
InputStreamContainer.java | Class | A class that uses a ZipEntry to be a single container file,
but read-only. |
InsertOperation.java | Class | Represents an insert of a record onto a page. |
InvalidatePageOperation.java | Class | Represents invalidating a page due to deallocation. |
LoggableActions.java | Class | |
LoggableAllocActions.java | Class | |
LogicalPageOperation.java | Class | An abstract class that is used for logical log operation. |
LogicalUndoOperation.java | Class | LogicalUndoOperation is a compensation operation that rolls back the change of
an LogicalUndoable operation. |
LongColumnException.java | Class | An exception used to pass a specfic "error code" through
various layers of software. |
MemByteHolder.java | Class | A ByteHolder that stores all its bytes in memory. |
NoSpaceOnPage.java | Class | An exception used to pass a specfic "error code" through
various layers of software. |
OverflowInputStream.java | Class | A OverflowInputStream is used by store to turn a long column
into an InputStream. |
PageActions.java | Interface | |
PageBasicOperation.java | Class | A PageBasicOperation changed the content of a page, this is the root class of all
page oriented operation. |
PageVersion.java | Class | |
PhysicalPageOperation.java | Class | An abstract class that is used for physical log operation. |
PhysicalUndoOperation.java | Class | PhysicalUndoOperation is a compensation operation that rolls back the change of
an Undo-able operation. |
PurgeOperation.java | Class | USE WITH EXTREME Caution: Purge records from a Page. |
RAFContainer.java | Class | RAFContainer (short for RandomAccessFileContainer) is a concrete subclass of FileContainer
for FileContainers which are implemented on java.io.RandomAccessFile. |
RawField.java | Class | |
ReclaimSpace.java | Class | Post commit work to reclaim some space from the raw store. |
ReclaimSpaceHelper.java | Class | This class helps a BaseDataFactory reclaims unused space.
Space needs to be reclaimed in the following cases:
Row with long columns or overflow row pieces is deleted
Insertion of a row that has long columns or overflows to other row pieces is rolled back
Row is updated and the head row or some row pieces shrunk
Row is updated and some long columns are orphaned because they are updated
Row is updated and some long columns are created but the update rolled back
Row is updated and some new row pieces are created but the update rolled back
We can implement a lot of optimization if we know that btree does not overflow.
However, since that is not the case and Raw Store cannot tell if it is dealing
with a btree page or a heap page, they all have to be treated gingerly. |
RecordId.java | Class | Implementation of RecordHandle. |
RememberBytesInputStream.java | Class | A FilterInputStream that remembers read or skipped bytes.
In record mode this stream remembers all the bytes a
caller reads or skips. |
RemoveFileOperation.java | Class | |
RFResource.java | Class | |
SetReservedSpaceOperation.java | Class | Represents shrinking of the reserved space of a particular row on a page. |
SpaceInformation.java | Class | Manage the result information from a single call to
ConglomerateController.getSpaceInfo(). |
StoredFieldHeader.java | Class | A class to provide static methods to manipulate fields in the field header.
A class StoredPage uses to read/write field status and field data length.
No attributes exist in this class, this class provides a set of static
methods for writing field status and field data length, and for reading
field status and field data length.
Stored Field Header Format
The field header is broken into two sections. |
StoredPage.java | Class | |
StoredRecordHeader.java | Class | A class StoredPage uses to cache record headers by passing instances
to BasePage, and to write stored versions of record headers. |
StreamFileContainer.java | Class | The format of this stream file is:
(RH) (FH) (field data) (FH) (field data) ........ |
StreamFileContainerHandle.java | Class | A handle to an open stream container, implememts StreamContainerHandle. |
SyncOnCommit.java | Class | |
TempRAFContainer.java | Class | |
TruncateOnCommit.java | Class | |
UpdateFieldOperation.java | Class | Represents the update of a particular field of a row on a page. |
UpdateOperation.java | Class | Represents the update of a particular row on a page. |