|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.healthmarketscience.jackcess.UsageMap
public class UsageMap
Describes which database pages a particular table uses
Nested Class Summary | |
---|---|
class |
UsageMap.PageCursor
Utility class to traverse over the pages in the UsageMap. |
Field Summary | |
---|---|
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 |
Method Summary | |
---|---|
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()
|
Database |
getDatabase()
|
JetFormat |
getFormat()
|
PageChannel |
getPageChannel()
|
int |
getPageCount()
|
static UsageMap |
read(Database database,
ByteBuffer buf,
boolean assumeOutOfRangeBitsOn)
|
static UsageMap |
read(Database database,
int pageNum,
int rowNum,
boolean assumeOutOfRangeBitsOn)
|
void |
removePageNumber(int pageNumber)
Remove a page number from this usage map |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte MAP_TYPE_INLINE
public static final byte MAP_TYPE_REFERENCE
Method Detail |
---|
public Database getDatabase()
public JetFormat getFormat()
public PageChannel getPageChannel()
public static UsageMap read(Database database, ByteBuffer buf, boolean assumeOutOfRangeBitsOn) throws IOException
database
- database that contains this usage mapbuf
- buffer which contains the usage map row info
IOException
public static UsageMap read(Database database, int pageNum, int rowNum, boolean assumeOutOfRangeBitsOn) throws IOException
database
- database that contains this usage mappageNum
- Page number that this usage map is contained inrowNum
- Number of the row on the page that contains this usage map
IOException
public UsageMap.PageCursor cursor()
public int getPageCount()
public boolean containsPageNumber(int pageNumber)
public void addPageNumber(int pageNumber) throws IOException
IOException
public void removePageNumber(int pageNumber) throws IOException
IOException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |