org.apache.xindice.core.filer
Class Paged.Page
java.lang.Object
|
+--org.apache.xindice.core.filer.Paged.Page
- All Implemented Interfaces:
- java.lang.Comparable
- Enclosing class:
- Paged
- public final class Paged.Page
- extends java.lang.Object
- implements java.lang.Comparable
Paged file's page
Constructor Summary |
Paged.Page(java.lang.Long pageNum)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Paged.Page
public Paged.Page(java.lang.Long pageNum)
read
public void read()
throws java.io.IOException
- Reads a page into the memory, once. Subsequent calls are ignored.
write
public void write()
throws java.io.IOException
- Writes out the header into the this.data, and adds a page to the set of
dirty pages.
flush
public void flush()
throws java.io.IOException
- Flushes content of the dirty page into the file
getPageNum
public java.lang.Long getPageNum()
getPageHeader
public Paged.PageHeader getPageHeader()
setKey
public void setKey(Key key)
getKey
public Key getKey()
streamTo
public void streamTo(java.io.OutputStream os)
throws java.io.IOException
streamFrom
public void streamFrom(java.io.InputStream is)
throws java.io.IOException
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
Copyright (c) 1999-2004 The Apache Software Foundation. All Rights Reserved.