Package org.aksw.commons.io.hadoop
Class ReadableChannelWithBlockAdvertisement
- java.lang.Object
-
- org.aksw.commons.io.hadoop.binseach.bz2.ReadableByteChannelBase
-
- org.aksw.commons.io.hadoop.ReadableChannelWithBlockAdvertisement
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,ReadableByteChannel
public class ReadableChannelWithBlockAdvertisement extends ReadableByteChannelBase
-
-
Field Summary
Fields Modifier and Type Field Description protected InputStreamdecodedInprotected longdecodedStartPosprotected PushbackInputStreampushbackInprotected longreadCountprotected org.apache.hadoop.fs.Seekableseekable-
Fields inherited from class org.aksw.commons.io.hadoop.binseach.bz2.ReadableByteChannelBase
isOpen, maxReadSize
-
-
Constructor Summary
Constructors Constructor Description ReadableChannelWithBlockAdvertisement(InputStream decodedIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intonBlockEnd(ByteBuffer dst, long oldPos, long newPos)protected intreadActual(ByteBuffer dst)-
Methods inherited from class org.aksw.commons.io.hadoop.binseach.bz2.ReadableByteChannelBase
close, isOpen, isUnderlyingEntityKnownToBeClosed, read
-
-
-
-
Field Detail
-
decodedIn
protected InputStream decodedIn
-
seekable
protected org.apache.hadoop.fs.Seekable seekable
-
decodedStartPos
protected long decodedStartPos
-
pushbackIn
protected PushbackInputStream pushbackIn
-
readCount
protected long readCount
-
-
Constructor Detail
-
ReadableChannelWithBlockAdvertisement
public ReadableChannelWithBlockAdvertisement(InputStream decodedIn)
-
-
Method Detail
-
readActual
protected int readActual(ByteBuffer dst) throws IOException
- Specified by:
readActualin classReadableByteChannelBase- Throws:
IOException
-
onBlockEnd
protected int onBlockEnd(ByteBuffer dst, long oldPos, long newPos)
-
-