public abstract class StreamInput extends InputStream
| コンストラクタと説明 |
|---|
StreamInput() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
abstract void |
close()
Closes the stream to further operations.
|
Version |
getVersion() |
boolean |
readBoolean()
Reads a boolean.
|
abstract byte |
readByte()
Reads and returns a single byte.
|
byte[] |
readByteArray() |
abstract void |
readBytes(byte[] b,
int offset,
int len)
Reads a specified number of bytes into an array at the specified offset.
|
org.apache.lucene.util.BytesRef |
readBytesRef() |
org.apache.lucene.util.BytesRef |
readBytesRef(int length) |
BytesReference |
readBytesReference()
Reads a bytes reference from this stream, might hold an actual reference to the underlying
bytes of the stream.
|
BytesReference |
readBytesReference(int length)
Reads a bytes reference from this stream, might hold an actual reference to the underlying
bytes of the stream.
|
double |
readDouble() |
double[] |
readDoubleArray() |
float |
readFloat() |
float[] |
readFloatArray() |
void |
readFully(byte[] b) |
Object |
readGenericValue() |
GeoPoint |
readGeoPoint()
Reads a
GeoPoint from this stream input |
int |
readInt()
Reads four bytes and returns an int.
|
int[] |
readIntArray() |
<T> List<T> |
readList(StreamInputReader<T> reader)
Reads a list of objects
|
long |
readLong()
Reads eight bytes and returns a long.
|
long[] |
readLongArray() |
Map<String,Object> |
readMap() |
Boolean |
readOptionalBoolean() |
<T extends Streamable> |
readOptionalStreamable(T streamable)
Serializes a potential null value.
|
String |
readOptionalString() |
Text |
readOptionalText() |
Integer |
readOptionalVInt() |
short |
readShort() |
String |
readString() |
String[] |
readStringArray() |
Task.Status |
readTaskStatus()
Reads a
Task.Status from the current stream. |
Text |
readText() |
<T extends Throwable> |
readThrowable() |
int |
readVInt()
Reads an int stored in variable-length format.
|
int[] |
readVIntArray() |
long |
readVLong()
Reads a long stored in variable-length format.
|
long[] |
readVLongArray() |
abstract void |
reset()
Resets the stream.
|
void |
setVersion(Version version) |
static StreamInput |
wrap(byte[] bytes) |
static StreamInput |
wrap(byte[] bytes,
int offset,
int length) |
static StreamInput |
wrap(BytesReference reference) |
available, mark, markSupported, read, read, read, skippublic Version getVersion()
public void setVersion(Version version)
public abstract byte readByte()
throws IOException
IOExceptionpublic abstract void readBytes(byte[] b,
int offset,
int len)
throws IOException
b - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to readIOExceptionpublic BytesReference readBytesReference() throws IOException
IOExceptionpublic BytesReference readBytesReference(int length) throws IOException
IOExceptionpublic org.apache.lucene.util.BytesRef readBytesRef()
throws IOException
IOExceptionpublic org.apache.lucene.util.BytesRef readBytesRef(int length)
throws IOException
IOExceptionpublic void readFully(byte[] b)
throws IOException
IOExceptionpublic short readShort()
throws IOException
IOExceptionpublic int readInt()
throws IOException
IOExceptionpublic int readVInt()
throws IOException
readInt()IOExceptionpublic long readLong()
throws IOException
IOExceptionpublic long readVLong()
throws IOException
IOException@Nullable public Text readOptionalText() throws IOException
IOExceptionpublic Text readText() throws IOException
IOException@Nullable public String readOptionalString() throws IOException
IOException@Nullable public Integer readOptionalVInt() throws IOException
IOExceptionpublic String readString() throws IOException
IOExceptionpublic final float readFloat()
throws IOException
IOExceptionpublic final double readDouble()
throws IOException
IOExceptionpublic final boolean readBoolean()
throws IOException
IOException@Nullable public final Boolean readOptionalBoolean() throws IOException
IOExceptionpublic abstract void reset()
throws IOException
reset クラス内 InputStreamIOExceptionpublic abstract void close()
throws IOException
close インタフェース内 Closeableclose インタフェース内 AutoCloseableclose クラス内 InputStreamIOExceptionpublic String[] readStringArray() throws IOException
IOException@Nullable public Map<String,Object> readMap() throws IOException
IOException@Nullable public Object readGenericValue() throws IOException
IOExceptionpublic GeoPoint readGeoPoint() throws IOException
GeoPoint from this stream inputIOExceptionpublic int[] readIntArray()
throws IOException
IOExceptionpublic int[] readVIntArray()
throws IOException
IOExceptionpublic long[] readLongArray()
throws IOException
IOExceptionpublic long[] readVLongArray()
throws IOException
IOExceptionpublic float[] readFloatArray()
throws IOException
IOExceptionpublic double[] readDoubleArray()
throws IOException
IOExceptionpublic byte[] readByteArray()
throws IOException
IOExceptionpublic <T extends Streamable> T readOptionalStreamable(T streamable) throws IOException
IOExceptionpublic <T extends Throwable> T readThrowable() throws IOException
IOExceptionpublic Task.Status readTaskStatus() throws IOException
Task.Status from the current stream.IOExceptionpublic <T> List<T> readList(StreamInputReader<T> reader) throws IOException
IOExceptionpublic static StreamInput wrap(BytesReference reference)
public static StreamInput wrap(byte[] bytes)
public static StreamInput wrap(byte[] bytes, int offset, int length)
Copyright © 2009–2016. All rights reserved.