Package org.apache.solr.update
Class TransactionLog.ChannelFastInputStream
- java.lang.Object
- 
- java.io.InputStream
- 
- org.apache.solr.common.util.DataInputInputStream
- 
- org.apache.solr.common.util.FastInputStream
- 
- org.apache.solr.update.TransactionLog.ChannelFastInputStream
 
 
 
 
- 
- All Implemented Interfaces:
- Closeable,- DataInput,- AutoCloseable
 - Enclosing class:
- TransactionLog
 
 public static class TransactionLog.ChannelFastInputStream extends org.apache.solr.common.util.FastInputStream
- 
- 
Field SummaryFields Modifier and Type Field Description protected FileChannelch
 - 
Constructor SummaryConstructors Constructor Description ChannelFastInputStream(FileChannel ch, long chPosition)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longgetBufferPos()where is the start of the buffer relative to the whole fileintgetBufferSize()intreadWrappedStream(byte[] target, int offset, int len)voidseek(long position)StringtoString()- 
Methods inherited from class org.apache.solr.common.util.FastInputStreamavailable, getBuffer, getEndInBuffer, getPositionInBuffer, peek, position, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, refill, skipBytes, wrap
 - 
Methods inherited from class java.io.InputStreammark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
 
- 
 
- 
- 
- 
Field Detail- 
chprotected FileChannel ch 
 
- 
 - 
Constructor Detail- 
ChannelFastInputStreampublic ChannelFastInputStream(FileChannel ch, long chPosition) 
 
- 
 - 
Method Detail- 
readWrappedStreampublic int readWrappedStream(byte[] target, int offset, int len) throws IOException- Overrides:
- readWrappedStreamin class- org.apache.solr.common.util.FastInputStream
- Throws:
- IOException
 
 - 
seekpublic void seek(long position) throws IOException- Throws:
- IOException
 
 - 
getBufferPospublic long getBufferPos() where is the start of the buffer relative to the whole file
 - 
getBufferSizepublic int getBufferSize() 
 - 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- org.apache.solr.common.util.FastInputStream
- Throws:
- IOException
 
 
- 
 
-