public interface KahaDBMetaData<T>
Modifier and Type | Field and Description |
---|---|
static int |
CLOSED_STATE
Indicates that this meta data instance has been closed and is no longer active.
|
static int |
OPEN_STATE
Indicates that this meta data instance has been opened and is active.
|
Modifier and Type | Method and Description |
---|---|
Location |
getLastUpdateLocation()
Returns the Journal Location value that indicates that last recorded update
that was successfully performed for this KahaDB store implementation.
|
Page<T> |
getPage()
Gets the Page in the store PageFile where the KahaDBMetaData instance is stored.
|
int |
getState()
Gets the state flag of this meta data instance.
|
void |
initialize(Transaction tx)
For a newly created KahaDBMetaData instance this method is called to allow
the instance to create all of it's internal indices and other state data.
|
void |
load(Transaction tx)
Instructs this object to load its internal data structures from the KahaDB PageFile
and prepare itself for use.
|
void |
read(DataInput in)
Reads the serialized for of this object from the KadaDB PageFile and prepares it
for use.
|
void |
setLastUpdateLocation(Location location)
Updates the value of the last successful update.
|
void |
setPage(Page<T> page)
Sets the Page instance used to load and store the KahaDBMetaData instance.
|
void |
setState(int value)
Sets the current value of the state flag.
|
void |
write(DataOutput out)
Writes the object into a serialized form which can be read back in again using the
read method.
|
static final int OPEN_STATE
static final int CLOSED_STATE
Page<T> getPage()
void setPage(Page<T> page)
page
- the new Page value to use.int getState()
void setState(int value)
value
- the new value to assign to the state flag.Location getLastUpdateLocation()
void setLastUpdateLocation(Location location)
location
- the new value to assign the last update location field.void initialize(Transaction tx) throws IOException
tx
- the Transaction instance under which the operation is executed.IOException
- if an error occurs while creating the meta data structures.void load(Transaction tx) throws IOException
tx
- the Transaction instance under which the operation is executed.IOException
- if an error occurs while creating the meta data structures.void read(DataInput in) throws IOException
in
- the DataInput instance used to read this objects serialized form.IOException
- if an error occurs while reading the serialized form.void write(DataOutput out) throws IOException
out
- the DataOutput instance to use to write the current state to a serialized form.IOException
- if an error occurs while serializing this instance.Copyright © 2005–2017 The Apache Software Foundation. All rights reserved.