Class DecodedDataBlock
java.lang.Object
org.aksw.commons.io.hadoop.binseach.bz2.DecodedDataBlock
- All Implemented Interfaces:
AutoCloseable, Block, Segment, ChannelFactory<Seekable>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BlockSourceprotected longprotected ChannelFactory<Seekable> -
Constructor Summary
ConstructorsConstructorDescriptionDecodedDataBlock(BlockSource blockSource, long blockStart, ChannelFactory<Seekable> channelFactory) -
Method Summary
-
Field Details
-
blockSource
-
blockStart
protected long blockStart -
channelFactory
-
-
Constructor Details
-
DecodedDataBlock
public DecodedDataBlock(BlockSource blockSource, long blockStart, ChannelFactory<Seekable> channelFactory)
-
-
Method Details
-
hasNext
- Specified by:
hasNextin interfaceBlock- Throws:
IOException
-
hasPrev
- Specified by:
hasPrevin interfaceBlock- Throws:
IOException
-
nextBlock
- Specified by:
nextBlockin interfaceBlock- Throws:
IOException
-
prevBlock
- Specified by:
prevBlockin interfaceBlock- Throws:
IOException
-
getOffset
-
getBufferSource
-
getBlockStart
public long getBlockStart() -
getChannelFactory
-
newChannel
- Specified by:
newChannelin interfaceChannelFactory<Seekable>
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
length
- Specified by:
lengthin interfaceSegment- Throws:
IOException
-