Package com.attivio.util.ft
Class TransactionStorage.TransactionInput
- java.lang.Object
-
- java.io.InputStream
-
- com.attivio.util.ft.TransactionStorage.TransactionInput
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
FileTransactionStorage.FileInput
- Enclosing class:
- TransactionStorage
public abstract class TransactionStorage.TransactionInput extends java.io.InputStream
-
-
Constructor Summary
Constructors Constructor Description TransactionInput()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract longgetPos()intread()protected abstract bytereadByte()protected abstract voidreadBytes(byte[] buffer, int offset, int length)IngestDocumentreadDocument()bytereadFrameId()byte[]readId()Read an internal document id.protected abstract intreadInt()MessageIdreadMessageId()<T> TreadObject(java.lang.Class<T> typeClass)java.lang.StringreadString()protected abstract intreadUnsignedShort()voidreset()Reset the file pointer to the previous sync frame.voidseek(long pos)protected abstract voidseekInternal(long pos)booleansync()Find the next record.
-
-
-
Method Detail
-
getPos
public abstract long getPos() throws java.io.IOException- Throws:
java.io.IOException
-
seek
public final void seek(long pos) throws java.io.IOException- Throws:
java.io.IOException
-
seekInternal
protected abstract void seekInternal(long pos) throws java.io.IOException- Throws:
java.io.IOException
-
readInt
protected abstract int readInt() throws java.io.IOException- Throws:
java.io.IOException
-
readByte
protected abstract byte readByte() throws java.io.IOException- Throws:
java.io.IOException
-
readUnsignedShort
protected abstract int readUnsignedShort() throws java.io.IOException- Throws:
java.io.IOException
-
readBytes
protected abstract void readBytes(byte[] buffer, int offset, int length) throws java.io.IOException- Throws:
java.io.IOException
-
sync
public boolean sync() throws java.io.IOExceptionFind the next record.- Throws:
java.io.IOException
-
readMessageId
public MessageId readMessageId() throws java.io.IOException
- Throws:
java.io.IOException
-
readFrameId
public byte readFrameId() throws java.io.IOException- Throws:
java.io.IOException
-
readDocument
public IngestDocument readDocument() throws java.io.IOException
- Throws:
java.io.IOException
-
readObject
public <T> T readObject(java.lang.Class<T> typeClass) throws java.io.IOException- Throws:
java.io.IOException
-
reset
public final void reset() throws java.io.IOExceptionReset the file pointer to the previous sync frame.- Overrides:
resetin classjava.io.InputStream- Throws:
java.io.IOException
-
readId
public byte[] readId() throws java.io.IOExceptionRead an internal document id.- Throws:
java.io.IOException
-
readString
public java.lang.String readString() throws java.io.IOException- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
-