|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.db.store.Inode
public class Inode
Represents the indexes for a BLOB or CLOB. The inode contains 16 long values
0) length of the saved file 1-14) direct fragment addresses (to 112k) 15) pointer to the indirect block
0-511) single indirect fragment addresses (4M, 2^12) 512-767) double indirect block addresses (128G, 2^37) 768-1023) triple indirect fragment addresses (to 1P, 2^50)
| Field Summary | |
|---|---|
static int |
BLOCK_SIZE
|
static int |
DIRECT_BLOCKS
|
static long |
DIRECT_MAX
|
static int |
DOUBLE_INDIRECT_BLOCKS
|
static long |
DOUBLE_INDIRECT_MAX
|
static long |
FRAGMENT_MAX
|
static int |
FRAGMENT_SIZE
|
static int |
INDIRECT_BLOCKS
|
static int |
INLINE_BLOB_SIZE
|
static long |
INLINE_MAX
|
static int |
INODE_BLOCK_SIZE
|
static int |
INODE_SIZE
|
static int |
MINI_FRAG_BLOB_SIZE
|
static int |
MINI_FRAG_MAX
|
static int |
MINI_FRAG_SIZE
|
static int |
SINGLE_INDIRECT_BLOCKS
|
static long |
SINGLE_INDIRECT_MAX
|
static int |
TRIPLE_INDIRECT_BLOCKS
|
| Constructor Summary | |
|---|---|
Inode()
|
|
Inode(Store store)
|
|
Inode(Store store,
StoreTransaction xa)
|
|
| Method Summary | |
|---|---|
byte[] |
getBuffer()
Returns the buffer. |
long |
getLength()
Returns the length. |
Store |
getStore()
Returns the backing store. |
void |
init(Store store,
StoreTransaction xa,
byte[] buffer,
int offset)
|
java.io.InputStream |
openInputStream()
Opens a read stream to the inode. |
java.io.OutputStream |
openOutputStream()
Opens a byte output stream to the inode. |
java.io.Reader |
openReader()
Opens a char reader to the inode. |
java.io.Writer |
openWriter()
Opens a char writer to the inode. |
static long |
readLong(byte[] buffer,
int offset)
Reads the long. |
void |
remove()
Deletes the inode |
static void |
writeLong(byte[] buffer,
int offset,
long v)
Writes the long. |
void |
writeToStream(OutputStreamWithBuffer os)
Writes the inode value to a stream. |
void |
writeToStream(OutputStreamWithBuffer os,
long offset,
long length)
Writes the inode value to a stream. |
void |
writeToWriter(java.io.Writer writer)
Writes the inode value to a stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int INODE_SIZE
public static final int INLINE_BLOB_SIZE
public static final int BLOCK_SIZE
public static final int INODE_BLOCK_SIZE
public static final int FRAGMENT_SIZE
public static final int MINI_FRAG_SIZE
public static final int MINI_FRAG_BLOB_SIZE
public static final int INDIRECT_BLOCKS
public static final int DIRECT_BLOCKS
public static final int SINGLE_INDIRECT_BLOCKS
public static final int DOUBLE_INDIRECT_BLOCKS
public static final int TRIPLE_INDIRECT_BLOCKS
public static final long INLINE_MAX
public static final int MINI_FRAG_MAX
public static final long DIRECT_MAX
public static final long SINGLE_INDIRECT_MAX
public static final long FRAGMENT_MAX
public static final long DOUBLE_INDIRECT_MAX
| Constructor Detail |
|---|
public Inode()
public Inode(Store store,
StoreTransaction xa)
public Inode(Store store)
| Method Detail |
|---|
public Store getStore()
public byte[] getBuffer()
public long getLength()
public void init(Store store,
StoreTransaction xa,
byte[] buffer,
int offset)
public java.io.InputStream openInputStream()
public void writeToStream(OutputStreamWithBuffer os)
throws java.io.IOException
java.io.IOException
public void writeToStream(OutputStreamWithBuffer os,
long offset,
long length)
throws java.io.IOException
java.io.IOException
public void writeToWriter(java.io.Writer writer)
throws java.io.IOException
java.io.IOExceptionpublic java.io.OutputStream openOutputStream()
public java.io.Reader openReader()
public java.io.Writer openWriter()
public void remove()
public static long readLong(byte[] buffer,
int offset)
public static void writeLong(byte[] buffer,
int offset,
long v)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||