public class ConcatInput extends java.lang.Object implements DurableInput
DurableInput atop a series of DurableInputs.DurableInput.Bounds, DurableInput.Pool| Modifier and Type | Field and Description |
|---|---|
IntMap<DurableInput> |
inputs |
| Constructor and Description |
|---|
ConcatInput(java.lang.Iterable<DurableInput> inputs,
DurableInput.Bounds bounds) |
| Modifier and Type | Method and Description |
|---|---|
DurableInput.Bounds |
bounds() |
void |
close()
Closes the input, freeing any resources associated with it.
|
DurableInput |
duplicate() |
DurableInput.Pool |
pool() |
long |
position() |
int |
read(java.nio.ByteBuffer dst)
Copies as many byte as possible into
dst, and returns the number of bytes. |
byte |
readByte()
Reads and advances past the next
int8 value. |
char |
readChar()
Reads and advances past the next
int16 value. |
double |
readDouble()
Reads and advances past the next
float64 value. |
float |
readFloat()
Reads and advances past the next
float32 value. |
int |
readInt()
Reads and advances past the next
int32 value. |
long |
readLong()
Reads and advances past the next
int64 value. |
short |
readShort()
Reads and advances past the next
int16 value. |
long |
remaining() |
DurableInput |
seek(long position)
Updates the position of the input, and returns itself.
|
DurableInput |
slice(long start,
long end) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasInputStream, from, hasRemaining, hexBytes, peekPrefix, readBoolean, readFully, readFully, readLine, readPrefix, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, readUVLQ, readVLQ, size, skipBlock, skipBytes, skipBytes, sliceBlock, sliceBytes, slicePrefixedBlockpublic final IntMap<DurableInput> inputs
public ConcatInput(java.lang.Iterable<DurableInput> inputs, DurableInput.Bounds bounds)
public DurableInput.Pool pool()
pool in interface DurableInputpublic DurableInput.Bounds bounds()
bounds in interface DurableInputpublic DurableInput duplicate()
duplicate in interface DurableInputpublic DurableInput slice(long start, long end)
slice in interface DurableInput[start, end)public void close()
DurableInputclose in interface DurableInputclose in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic DurableInput seek(long position)
DurableInputseek in interface DurableInputpublic long remaining()
remaining in interface DurableInputpublic long position()
position in interface DurableInputpublic int read(java.nio.ByteBuffer dst)
DurableInputdst, and returns the number of bytes.read in interface DurableInputpublic byte readByte()
DurableInputint8 value.readByte in interface DurableInputreadByte in interface java.io.DataInputpublic short readShort()
DurableInputint16 value.readShort in interface DurableInputreadShort in interface java.io.DataInputpublic char readChar()
DurableInputint16 value.readChar in interface DurableInputreadChar in interface java.io.DataInputpublic int readInt()
DurableInputint32 value.readInt in interface DurableInputreadInt in interface java.io.DataInputpublic long readLong()
DurableInputint64 value.readLong in interface DurableInputreadLong in interface java.io.DataInputpublic float readFloat()
DurableInputfloat32 value.readFloat in interface DurableInputreadFloat in interface java.io.DataInputpublic double readDouble()
DurableInputfloat64 value.readDouble in interface DurableInputreadDouble in interface java.io.DataInput