|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for writers of indexes.
Method Summary | |
long |
close()
Close the index. |
long |
create(IndexProperties indexProperties)
create an Index |
long |
flush()
Flush the index. |
long |
getAppendPosition()
Get the append position |
java.nio.channels.FileLock |
getWriteLock()
Get a write-lock on this index. |
boolean |
gotoAppendPosition()
Goto the append position |
boolean |
isWriteLocked()
Has the Index been write-locked. |
long |
open(IndexProperties indexProperties)
|
boolean |
releaseWriteLock()
Release a FileLock. |
long |
writeHeader(byte headerType)
Write the header to the index. |
long |
writeItem(ManagedIndexItem item)
Write an IndexItem to the index. |
Method Detail |
public long open(IndexProperties indexProperties) throws java.io.IOException, IndexOpenException
java.io.IOException
IndexOpenException
public long create(IndexProperties indexProperties) throws java.io.IOException, IndexCreateException
java.io.IOException
IndexCreateException
public long writeHeader(byte headerType) throws java.io.IOException
headerType
- the type of header, e.g FileType.INLINE_INDEX or FileType.EXTERNAL_INDEX
java.io.IOException
public long writeItem(ManagedIndexItem item) throws java.io.IOException
java.io.IOException
public long getAppendPosition()
public boolean gotoAppendPosition() throws java.io.IOException
java.io.IOException
public long flush() throws java.io.IOException
java.io.IOException
public long close() throws java.io.IOException
java.io.IOException
public java.nio.channels.FileLock getWriteLock()
public boolean releaseWriteLock()
public boolean isWriteLocked()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |