|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.timeindexing.io.AbstractIndexIO
com.timeindexing.io.AbstractFileIO
com.timeindexing.io.ExternalIndexIO
com.timeindexing.io.ShadowIndexIO
This does I/O for a shadow Index with external data.
Constructor Summary | |
ShadowIndexIO(StoredIndex indexMgr)
Construct a shadow Index. |
Method Summary | |
long |
create(IndexProperties indexProperties)
Operation on creation. |
long |
flush()
Operation on flush. |
protected long |
open()
Open an index to read it. |
long |
open(IndexProperties indexProperties)
Open an index file to read it. |
protected long |
processData(java.nio.ByteBuffer buffer)
Processing of the data. |
long |
readDataHeader(byte headerType)
Read an index header from the header stream. |
long |
readMetaData()
Read all the meta data. |
long |
writeDataHeader(byte headerType)
Write the data file header. |
Methods inherited from class com.timeindexing.io.ExternalIndexIO |
alignForData, bufferedDataWrite, bufferedIndexWrite, calculateAppendPosition, close, convertDataReference, getItem, gotoAppendPosition, gotoFirstPosition, memoryMapData, processIndexItem, readDataIntoBuffer, seekToData, seekToIndex, setAppendPosition |
Methods inherited from class com.timeindexing.io.AbstractFileIO |
addItem, alignForIndexItem, awaitWork, bufferedWrite, drainWriteQueue, flushBuffer, getAppendPosition, getItem, getWriteLock, isWriteLocked, loadIndex, readData, readData, readData, readHeader, readIndexItem, readIndexItem, readItem, readItem, readNormalData, readReferenceData, releaseWriteLock, requestReadWork, requestWriteWork, run, seekToData, seekToIndex, setItemSize, skipData, timeOut, writeFromWorkQueue, writeHeader, writeItem, writeNormal, writeReference |
Methods inherited from class com.timeindexing.io.AbstractIndexIO |
getIndex, getThread, initThread, startThread, stopThread |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.timeindexing.io.IndexInteractor |
addItem, getIndex, getItem |
Methods inherited from interface com.timeindexing.io.IndexFileReader |
close, convertDataReference, getItem, gotoAppendPosition, gotoFirstPosition, loadIndex, readData, readData, readData, readHeader, readItem, readItem, setAppendPosition |
Methods inherited from interface com.timeindexing.io.IndexFileWriter |
close, getAppendPosition, getWriteLock, gotoAppendPosition, isWriteLocked, releaseWriteLock, writeHeader, writeItem |
Constructor Detail |
public ShadowIndexIO(StoredIndex indexMgr)
Method Detail |
public long create(IndexProperties indexProperties) throws java.io.IOException, IndexCreateException
create
in interface IndexFileWriter
create
in class ExternalIndexIO
java.io.IOException
IndexCreateException
public long open(IndexProperties indexProperties) throws java.io.IOException, IndexOpenException
open
in interface IndexFileReader
open
in class ExternalIndexIO
java.io.IOException
IndexOpenException
protected long open() throws java.io.IOException, IndexOpenException
open
in class ExternalIndexIO
java.io.IOException
IndexOpenException
public long readMetaData() throws java.io.IOException, IndexOpenException
readMetaData
in interface IndexFileReader
readMetaData
in class ExternalIndexIO
java.io.IOException
IndexOpenException
protected long processData(java.nio.ByteBuffer buffer) throws java.io.IOException
processData
in class ExternalIndexIO
java.io.IOException
public long flush() throws java.io.IOException
flush
in interface IndexFileWriter
flush
in class ExternalIndexIO
java.io.IOException
public long readDataHeader(byte headerType) throws java.io.IOException
readDataHeader
in class ExternalIndexIO
java.io.IOException
public long writeDataHeader(byte headerType) throws java.io.IOException
writeDataHeader
in class ExternalIndexIO
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |