public class UsageMap extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
UsageMap.PageCursor
Utility class to traverse over the pages in the UsageMap.
|
| Modifier and Type | Field and Description |
|---|---|
static byte |
MAP_TYPE_INLINE
Inline map type
|
static byte |
MAP_TYPE_REFERENCE
Reference map type, for maps that are too large to fit inline
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPageNumber(int pageNumber)
Add a page number to this usage map
|
boolean |
containsPageNumber(int pageNumber)
Determines if the given page number is contained in this map.
|
UsageMap.PageCursor |
cursor() |
DatabaseImpl |
getDatabase() |
JetFormat |
getFormat() |
PageChannel |
getPageChannel() |
int |
getPageCount() |
static UsageMap |
read(DatabaseImpl database,
ByteBuffer buf) |
void |
removePageNumber(int pageNumber)
Remove a page number from this usage map
|
String |
toString() |
public static final byte MAP_TYPE_INLINE
public static final byte MAP_TYPE_REFERENCE
public DatabaseImpl getDatabase()
public JetFormat getFormat()
public PageChannel getPageChannel()
public static UsageMap read(DatabaseImpl database, ByteBuffer buf) throws IOException
database - database that contains this usage mapbuf - buffer which contains the usage map row infoIOExceptionpublic UsageMap.PageCursor cursor()
public int getPageCount()
public boolean containsPageNumber(int pageNumber)
public void addPageNumber(int pageNumber)
throws IOException
IOExceptionpublic void removePageNumber(int pageNumber)
throws IOException
IOExceptionCopyright © 2005–2025 OpenHMS. All rights reserved.