Class ReadableByteChannelForLinesMatchingPrefix
java.lang.Object
org.aksw.commons.io.hadoop.binseach.v2.ReadableByteChannelForLinesMatchingPrefix
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,org.aksw.commons.io.buffer.array.HasArrayOps<byte[]>,org.aksw.commons.io.input.ReadableChannel<byte[]>,org.aksw.commons.io.input.ReadableSource<byte[]>
public class ReadableByteChannelForLinesMatchingPrefix
extends Object
implements org.aksw.commons.io.input.ReadableChannel<byte[]>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.aksw.commons.io.buffer.ring.RingBufferForBytesprotected org.aksw.commons.io.input.ReadableChannel<byte[]>protected byteprotected booleanprotected booleanprotected longprotected longprotected org.aksw.commons.io.binseach.BinSearchScanState -
Constructor Summary
ConstructorsConstructorDescriptionReadableByteChannelForLinesMatchingPrefix(org.aksw.commons.io.input.ReadableChannel<byte[]> channel, org.aksw.commons.io.binseach.BinSearchScanState state) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.commons.io.input.ReadableSource
readRaw
-
Field Details
-
channel
protected org.aksw.commons.io.input.ReadableChannel<byte[]> channel -
state
protected org.aksw.commons.io.binseach.BinSearchScanState state -
delimiter
protected byte delimiter -
position
protected long position -
knownDelimPos
protected long knownDelimPos -
isCurrentLineValidated
protected boolean isCurrentLineValidated -
buffer
protected org.aksw.commons.io.buffer.ring.RingBufferForBytes buffer -
endReached
protected boolean endReached
-
-
Constructor Details
-
ReadableByteChannelForLinesMatchingPrefix
public ReadableByteChannelForLinesMatchingPrefix(org.aksw.commons.io.input.ReadableChannel<byte[]> channel, org.aksw.commons.io.binseach.BinSearchScanState state)
-
-
Method Details
-
read
- Specified by:
readin interfaceorg.aksw.commons.io.input.ReadableSource<byte[]>- Throws:
IOException
-
isOpen
public boolean isOpen() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getArrayOps
public org.aksw.commons.io.buffer.array.ArrayOps<byte[]> getArrayOps()- Specified by:
getArrayOpsin interfaceorg.aksw.commons.io.buffer.array.HasArrayOps<byte[]>
-