|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.store.access.conglomerate.GenericController
org.apache.derby.impl.store.access.conglomerate.GenericConglomerateController
org.apache.derby.impl.store.access.heap.HeapController
Field Summary |
Fields inherited from class org.apache.derby.impl.store.access.conglomerate.GenericController |
open_conglom |
Fields inherited from interface org.apache.derby.iapi.store.access.ConglomerateController |
LOCK_INS, LOCK_INS_PREVKEY, LOCK_READ, LOCK_UPD, LOCK_UPDATE_LOCKS, ROWISDUPLICATE |
Constructor Summary | |
HeapController()
|
Method Summary | |
private RecordHandle |
doInsert(DataValueDescriptor[] row)
Insert a new row into the heap. |
protected void |
getRowPositionFromRowLocation(RowLocation row_loc,
RowPosition pos)
Protected concrete impl of abstract methods of GenericConglomerateController class: |
protected Page |
getUserPageNoWait(long pageno)
|
protected Page |
getUserPageWait(long pageno)
|
int |
insert(DataValueDescriptor[] row)
Public Methods of This class: |
void |
insertAndFetchLocation(DataValueDescriptor[] row,
RowLocation templateRowLocation)
insert row and fetch it's row location in one operation. |
protected long |
load(TransactionManager xact_manager,
Heap heap,
boolean createConglom,
RowLocationRetRowSource rowSource)
|
boolean |
lockRow(long page_num,
int record_id,
int lock_operation,
boolean wait,
int lock_duration)
Lock the given record id/page num pair. |
protected boolean |
lockRow(RecordHandle rh,
int lock_oper,
boolean wait,
int lock_duration)
|
boolean |
lockRow(RowLocation loc,
int lock_operation,
boolean wait,
int lock_duration)
Lock the given row location. |
protected boolean |
lockRowAtSlotNoWaitExclusive(RecordHandle rh)
|
RowLocation |
newRowLocationTemplate()
Return a row location object of the correct type to be used in calls to insertAndFetchLocation. |
protected boolean |
purgeCommittedDeletes(Page page)
Check and purge committed deleted rows on a page. |
protected void |
queueDeletePostCommitWork(RowPosition pos)
|
protected void |
removePage(Page page)
|
void |
unlockRowAfterRead(RowLocation loc,
boolean forUpdate,
boolean row_qualified)
UnLock the given row location. |
Methods inherited from class org.apache.derby.impl.store.access.conglomerate.GenericConglomerateController |
close, closeForEndTransaction, delete, fetch, fetch, replace |
Methods inherited from class org.apache.derby.impl.store.access.conglomerate.GenericController |
checkConsistency, debugConglomerate, getEstimatedRowCount, getInternalTablePropertySet, getOpenConglom, getSpaceInfo, getTableProperties, init, isKeyed, isTableLocked, setEstimatedRowCount |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.derby.iapi.store.access.ConglomerateController |
checkConsistency, close, closeForEndTransaction, debugConglomerate, delete, fetch, fetch, getSpaceInfo, isKeyed, replace |
Methods inherited from interface org.apache.derby.iapi.store.access.ConglomPropertyQueryable |
getInternalTablePropertySet, getTableProperties |
Constructor Detail |
public HeapController()
Method Detail |
protected final void getRowPositionFromRowLocation(RowLocation row_loc, RowPosition pos) throws StandardException
getRowPositionFromRowLocation
in class GenericController
StandardException
protected void queueDeletePostCommitWork(RowPosition pos) throws StandardException
queueDeletePostCommitWork
in class GenericController
StandardException
protected final boolean purgeCommittedDeletes(Page page) throws StandardException
page
- A non-null, latched page must be passed in. If all
rows on page are purged, then page will be removed and
latch released.
StandardException
- Standard exception policy.private RecordHandle doInsert(DataValueDescriptor[] row) throws StandardException
Overflow policy: The current heap access method implements an algorithm that optimizes for fetch efficiency vs. space efficiency. A row will not be over flowed unless it is bigger than a page. If it is bigger than a page then it's initial part will be placed on a page and then subsequent parts will be overflowed to other pages.
row
- The row to insert.
StandardException
- Standard exception policy.protected long load(TransactionManager xact_manager, Heap heap, boolean createConglom, RowLocationRetRowSource rowSource) throws StandardException
StandardException
protected boolean lockRow(RecordHandle rh, int lock_oper, boolean wait, int lock_duration) throws StandardException
StandardException
protected Page getUserPageNoWait(long pageno) throws StandardException
StandardException
protected Page getUserPageWait(long pageno) throws StandardException
StandardException
protected boolean lockRowAtSlotNoWaitExclusive(RecordHandle rh) throws StandardException
StandardException
protected void removePage(Page page) throws StandardException
StandardException
public int insert(DataValueDescriptor[] row) throws StandardException
insert
in interface ConglomerateController
insert
in class GenericConglomerateController
StandardException
public void insertAndFetchLocation(DataValueDescriptor[] row, RowLocation templateRowLocation) throws StandardException
ConglomerateController
Insert a row into the conglomerate, and store its location in the provided destination row location. The row location must be of the correct type for this conglomerate (a new row location of the correct type can be obtained from newRowLocationTemplate()).
insertAndFetchLocation
in interface ConglomerateController
insertAndFetchLocation
in class GenericConglomerateController
StandardException
public boolean lockRow(RowLocation loc, int lock_operation, boolean wait, int lock_duration) throws StandardException
Should only be called by access.
This call can be made on a ConglomerateController that was opened for locking only.
RESOLVE (mikem) - move this call to ConglomerateManager so it is obvious that non-access clients should not call this.
lockRow
in interface ConglomerateController
lockRow
in class GenericConglomerateController
loc
- The "RowLocation" which describes the exact row to lock.wait
- Should the lock call wait to be granted?
StandardException
- Standard exception policy.public void unlockRowAfterRead(RowLocation loc, boolean forUpdate, boolean row_qualified) throws StandardException
Should only be called by access.
This call can be made on a ConglomerateController that was opened for locking only.
RESOLVE (mikem) - move this call to ConglomerateManager so it is obvious that non-access clients should not call this.
unlockRowAfterRead
in interface ConglomerateController
unlockRowAfterRead
in class GenericConglomerateController
loc
- The "RowLocation" which describes the row to unlock.forUpdate
- Row was previously Locked the record for read or update.
StandardException
- Standard exception policy.public boolean lockRow(long page_num, int record_id, int lock_operation, boolean wait, int lock_duration) throws StandardException
Should only be called by access, to lock "special" locks formed from the Recordhandle.* reserved constants for page specific locks.
This call can be made on a ConglomerateController that was opened for locking only.
RESOLVE (mikem) - move this call to ConglomerateManager so it is obvious that non-access clients should not call this.
lockRow
in interface ConglomerateController
lockRow
in class GenericConglomerateController
page_num
- Page number of row to lock.record_id
- Record id of row on page_num to lock.lock_operation
- Desc of what to lock for, ie. update, insert ...wait
- Should the lock call wait to be granted?
StandardException
- Standard exception policy.public RowLocation newRowLocationTemplate() throws StandardException
ConglomerateController
newRowLocationTemplate
in interface ConglomerateController
newRowLocationTemplate
in class GenericController
StandardException
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |