Class SeekableReadableChannelWithBlockTracking<T extends SeekableByteChannel>
java.lang.Object
org.aksw.commons.io.hadoop.SeekableReadableChannelWithBlockTracking<T>
- All Implemented Interfaces:
Closeable, AutoCloseable, ByteChannel, Channel, ReadableByteChannel, SeekableByteChannel, WritableByteChannel, SeekableByteChannelDecorator
public class SeekableReadableChannelWithBlockTracking<T extends SeekableByteChannel>
extends Object
implements SeekableByteChannelDecorator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected NavigableMap<Long, Long> protected longprotected Tprotected int -
Constructor Summary
ConstructorsConstructorDescriptionSeekableReadableChannelWithBlockTracking(T delegate) SeekableReadableChannelWithBlockTracking(T delegate, int endOfBlockMarker) -
Method Summary
Modifier and TypeMethodDescriptionposition(long newPosition) intread(ByteBuffer byteBuffer) intwrite(ByteBuffer src)
-
Field Details
-
delegate
-
endOfBlockMarker
protected int endOfBlockMarker -
currentBlock
protected long currentBlock -
blockToSuccessor
-
-
Constructor Details
-
SeekableReadableChannelWithBlockTracking
-
SeekableReadableChannelWithBlockTracking
-
-
Method Details
-
getDecoratee
- Specified by:
getDecorateein interfaceSeekableByteChannelDecorator
-
read
- Specified by:
readin interfaceReadableByteChannel- Specified by:
readin interfaceSeekableByteChannel- Specified by:
readin interfaceSeekableByteChannelDecorator- Throws:
IOException
-
write
- Specified by:
writein interfaceSeekableByteChannel- Specified by:
writein interfaceSeekableByteChannelDecorator- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
position
- Specified by:
positionin interfaceSeekableByteChannel- Specified by:
positionin interfaceSeekableByteChannelDecorator- Throws:
IOException
-