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 Summary
FieldsFields inherited from class org.apache.solr.common.util.FastInputStream
buf, end, in, pos, readFromStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longwhere is the start of the buffer relative to the whole fileintintreadWrappedStream(byte[] target, int offset, int len) voidseek(long position) toString()Methods inherited from class org.apache.solr.common.util.FastInputStream
available, getBuffer, getEndInBuffer, getPositionInBuffer, peek, position, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, refill, skipBytes, wrapMethods inherited from class org.apache.solr.common.util.DataInputInputStream
readDirectByteBufferMethods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
ch
-
-
Constructor Details
-
ChannelFastInputStream
-
-
Method Details
-
readWrappedStream
- Overrides:
readWrappedStreamin classorg.apache.solr.common.util.FastInputStream- Throws:
IOException
-
seek
- Throws:
IOException
-
getBufferPos
public long getBufferPos()where is the start of the buffer relative to the whole file -
getBufferSize
public int getBufferSize() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.apache.solr.common.util.FastInputStream- Throws:
IOException
-
toString
-