|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.timeindexing.index.DefaultIndexHeader
com.timeindexing.io.IndexDecoder
This opens an Index header file and determines what type of of index is represented.
Constructor Summary | |
protected |
IndexDecoder()
Construct a decoder. |
|
IndexDecoder(java.io.File file)
Construct a decoder. |
|
IndexDecoder(java.lang.String filename)
Construct a decoder. |
Method Summary | |
long |
close()
Operation on close |
boolean |
exists(java.lang.String filename)
Does the index header file exist |
protected long |
getHeaderLength()
Determine the length of a Header |
java.lang.String |
getHeaderPathName()
Get the header path name. |
boolean |
isOpen()
Is the IndexHeader open |
boolean |
open()
Open an index header to read it. |
boolean |
open(java.lang.String filename)
Open an index header to read it. |
protected java.lang.Object |
processDataPath(HeaderOptionProcess what,
java.nio.ByteBuffer readBuf)
Process a data path |
protected java.lang.Object |
processDataType(HeaderOptionProcess what,
java.nio.ByteBuffer readBuf)
Process a data type |
protected java.lang.Object |
processDescription(HeaderOptionProcess what,
java.nio.ByteBuffer readBuf)
Process a description |
protected java.lang.Object |
processIndexPath(HeaderOptionProcess what,
java.nio.ByteBuffer readBuf)
Process a index path |
protected java.lang.Boolean |
processIsInTimeOrder(HeaderOptionProcess what,
java.nio.ByteBuffer readBuf)
Is the index in time order |
protected java.lang.Boolean |
processNoDataFileHeader(HeaderOptionProcess what,
java.nio.ByteBuffer readBuf)
Is there a header on the data file |
protected java.lang.Object |
processReferenceMapping(HeaderOptionProcess what,
java.nio.ByteBuffer readBuf)
Process the referenced indexes mapping |
long |
read()
Read an index header from the header stream. |
long |
readFromChannel(java.nio.channels.FileChannel channel,
long headerSize)
Read an index header from the header stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.timeindexing.index.ManagedIndexHeader |
addIndexURI, getAllOptions, getIndexURI, getOption, hasIndexURI, hasOption, listOptions, notInTimeOrder, setDataPathName, setDataSize, setDescription, setEndTime, setFirstDataTime, setFirstOffset, setFirstTime, setID, setIndexDataType, setIndexPathName, setIndexType, setItemSize, setLastDataTime, setLastOffset, setLastTime, setLength, setName, setOption, setOptions, setReadOnly, setStartTime, setTerminated, setURI, syncHeader |
Methods inherited from interface com.timeindexing.index.ExtendedIndexHeader |
addDataType, getAnnotationStyle, getDataSize, getDataType, getFirstOffset, getItemSize, getLastOffset, hasAnnotations, hasDataType |
Methods inherited from interface com.timeindexing.index.IndexHeader |
getDataPathName, getDescription, getEndTime, getFirstDataTime, getFirstTime, getID, getIndexDataType, getIndexPathName, getIndexType, getLastDataTime, getLastTime, getLength, getName, getStartTime, getURI, isFixedSizeData, isInTimeOrder, isReadOnly, isTerminated |
Constructor Detail |
protected IndexDecoder()
public IndexDecoder(java.lang.String filename) throws java.io.IOException
public IndexDecoder(java.io.File file) throws java.io.IOException
Method Detail |
public java.lang.String getHeaderPathName()
public boolean open(java.lang.String filename) throws java.io.IOException
open
in interface IndexHeaderReader
java.io.IOException
public boolean open() throws java.io.IOException
java.io.IOException
public boolean exists(java.lang.String filename)
public boolean isOpen()
isOpen
in interface IndexHeaderReader
public long close() throws java.io.IOException
close
in interface IndexHeaderReader
java.io.IOException
public long read() throws java.io.IOException
read
in interface IndexHeaderReader
java.io.IOException
public long readFromChannel(java.nio.channels.FileChannel channel, long headerSize) throws java.io.IOException
java.io.IOException
protected long getHeaderLength() throws java.io.IOException
java.io.IOException
protected java.lang.Object processDescription(HeaderOptionProcess what, java.nio.ByteBuffer readBuf)
protected java.lang.Object processIndexPath(HeaderOptionProcess what, java.nio.ByteBuffer readBuf)
protected java.lang.Object processDataPath(HeaderOptionProcess what, java.nio.ByteBuffer readBuf)
protected java.lang.Object processDataType(HeaderOptionProcess what, java.nio.ByteBuffer readBuf)
protected java.lang.Boolean processIsInTimeOrder(HeaderOptionProcess what, java.nio.ByteBuffer readBuf)
protected java.lang.Boolean processNoDataFileHeader(HeaderOptionProcess what, java.nio.ByteBuffer readBuf)
protected java.lang.Object processReferenceMapping(HeaderOptionProcess what, java.nio.ByteBuffer readBuf)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |