|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IndexFileWriter
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 |
|---|
long open(IndexProperties indexProperties)
throws java.io.IOException,
IndexOpenException
java.io.IOException
IndexOpenException
long create(IndexProperties indexProperties)
throws java.io.IOException,
IndexCreateException
java.io.IOException
IndexCreateException
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
long writeItem(ManagedIndexItem item)
throws java.io.IOException
java.io.IOExceptionlong getAppendPosition()
boolean gotoAppendPosition()
throws java.io.IOException
java.io.IOException
long flush()
throws java.io.IOException
java.io.IOException
long close()
throws java.io.IOException
java.io.IOExceptionjava.nio.channels.FileLock getWriteLock()
boolean releaseWriteLock()
boolean isWriteLocked()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||