krati.core.array
Interface AddressArray

All Superinterfaces:
Array, LongArray, Persistable
All Known Implementing Classes:
DynamicLongArray, StaticLongArray

public interface AddressArray
extends LongArray, Persistable

AddressArray is for maintaining address pointers (long values) to data stored in segments.

Author:
jwu

Method Summary
 EntryPersistListener getPersistListener()
          Gets the listener that is called whenever an entry is persisted.
 void setCompactionAddress(int index, long address, long scn)
          Sets the compaction address (produced by a compactor) at a specified index.
 void setPersistListener(EntryPersistListener persistListener)
          Sets the listener that is called whenever an entry is persisted.
 
Methods inherited from interface krati.array.LongArray
get, getInternalArray, set
 
Methods inherited from interface krati.array.Array
clear, hasIndex, length
 
Methods inherited from interface krati.Persistable
getHWMark, getLWMark, persist, saveHWMark, sync
 

Method Detail

getPersistListener

EntryPersistListener getPersistListener()
Gets the listener that is called whenever an entry is persisted.


setPersistListener

void setPersistListener(EntryPersistListener persistListener)
Sets the listener that is called whenever an entry is persisted.

Parameters:
persistListener -

setCompactionAddress

void setCompactionAddress(int index,
                          long address,
                          long scn)
                          throws Exception
Sets the compaction address (produced by a compactor) at a specified index.

Parameters:
index - - the index to address array
address - - the address value for update
scn - - the scn associated with this change
Throws:
Exception


Copyright © 2011. All Rights Reserved.