|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xindice.core.filer.Paged
Paged is a paged file foundation that is used by both the BTree class and the HashFiler. It provides flexible paged I/O and page caching functionality.
Inner Class Summary | |
class |
Paged.FileHeader
FileHeader |
class |
Paged.Page
Page |
class |
Paged.PageHeader
PageHeader |
Constructor Summary | |
Paged()
|
|
Paged(java.io.File file)
|
Method Summary | |
boolean |
close()
|
boolean |
create()
|
abstract Paged.FileHeader |
createFileHeader()
createFileHeader must be implemented by a Paged implementation in order to create an appropriate subclass instance of a FileHeader. |
abstract Paged.FileHeader |
createFileHeader(boolean read)
createFileHeader must be implemented by a Paged implementation in order to create an appropriate subclass instance of a FileHeader. |
abstract Paged.FileHeader |
createFileHeader(long pageCount)
createFileHeader must be implemented by a Paged implementation in order to create an appropriate subclass instance of a FileHeader. |
abstract Paged.FileHeader |
createFileHeader(long pageCount,
int pageSize)
createFileHeader must be implemented by a Paged implementation in order to create an appropriate subclass instance of a FileHeader. |
abstract Paged.PageHeader |
createPageHeader()
createPageHeader must be implemented by a Paged implementation in order to create an appropriate subclass instance of a PageHeader. |
static int[] |
deleteArrayInt(int[] vals,
int idx)
|
static long[] |
deleteArrayLong(long[] vals,
int idx)
|
static short[] |
deleteArrayShort(short[] vals,
int idx)
|
static Value[] |
deleteArrayValue(Value[] vals,
int idx)
|
boolean |
drop()
|
boolean |
exists()
|
void |
flush()
|
Paged.FileHeader |
getFileHeader()
getFileHeader returns the FileHeader |
static int[] |
insertArrayInt(int[] vals,
int val,
int idx)
|
static long[] |
insertArrayLong(long[] vals,
long val,
int idx)
|
static short[] |
insertArrayShort(short[] vals,
short val,
int idx)
|
static Value[] |
insertArrayValue(Value[] vals,
Value val,
int idx)
|
boolean |
isOpened()
|
boolean |
open()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Paged()
public Paged(java.io.File file)
Method Detail |
public Paged.FileHeader getFileHeader()
public boolean exists()
public boolean create() throws DBException
public boolean open() throws DBException
public boolean close() throws DBException
public boolean isOpened()
public boolean drop() throws DBException
public void flush() throws DBException
public abstract Paged.FileHeader createFileHeader()
public abstract Paged.FileHeader createFileHeader(boolean read) throws java.io.IOException
read
- If true, reads the FileHeader from diskjava.io.IOException
- if an exception occurspublic abstract Paged.FileHeader createFileHeader(long pageCount)
pageCount
- The number of pages to allocate for primary storagepublic abstract Paged.FileHeader createFileHeader(long pageCount, int pageSize)
pageCount
- The number of pages to allocate for primary storagepageSize
- The size of a Page (should be a multiple of a FS block)public abstract Paged.PageHeader createPageHeader()
public static Value[] insertArrayValue(Value[] vals, Value val, int idx)
public static Value[] deleteArrayValue(Value[] vals, int idx)
public static long[] insertArrayLong(long[] vals, long val, int idx)
public static long[] deleteArrayLong(long[] vals, int idx)
public static int[] insertArrayInt(int[] vals, int val, int idx)
public static int[] deleteArrayInt(int[] vals, int idx)
public static short[] insertArrayShort(short[] vals, short val, int idx)
public static short[] deleteArrayShort(short[] vals, int idx)
|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |