Available Methods
- readVInt ( )
- readString ( )
- readBoolean ( )
- readLong ( )
- readOptionalString ( )
- readVLong ( )
- readInt ( )
- readBytesReference ( )
- readStringArray ( )
- readDouble ( )
- readList ( )
- readOptionalWriteable ( )
- readOptionalBoolean ( )
- readMap ( )
- readByte ( )
- readBytesRef ( )
- readThrowable ( )
- readShort ( )
- readFloat ( )
- readNamedWriteable ( )
- readGenericValue ( )
- read ( )
- readZLong ( )
- readOptionalVInt ( )
- readBytes ( )
- readOptionalStreamable ( )
- close ( )
- readEnum ( )
- readText ( )
- readOptionalText ( )
- readException ( )
- readTimeValue ( )
Related Classes
- java.util.Arrays
- java.util.Collections
- java.util.UUID
- java.util.TreeMap
- java.net.InetSocketAddress
- com.google.common.collect.ImmutableList
- com.google.common.collect.ImmutableMap
- com.google.common.collect.Maps
- com.google.common.collect.ImmutableSet
- org.elasticsearch.common.settings.Settings
- org.apache.lucene.index.Term
- org.elasticsearch.common.xcontent.XContentBuilder
- org.elasticsearch.common.unit.TimeValue
- org.elasticsearch.action.index.IndexRequest
- org.elasticsearch.common.transport.InetSocketTransportAddress
- org.elasticsearch.rest.RestStatus
- org.elasticsearch.common.Strings
- org.elasticsearch.action.ActionListener
- org.elasticsearch.common.bytes.BytesReference
- org.elasticsearch.Version
- org.elasticsearch.common.xcontent.ToXContent
- org.elasticsearch.threadpool.ThreadPool
- org.elasticsearch.common.unit.ByteSizeValue
- org.elasticsearch.common.collect.ImmutableOpenMap
- org.elasticsearch.cluster.health.ClusterHealthStatus
Java Code Examples for org.elasticsearch.common.io.stream.StreamInput#close()
The following examples show how to use
org.elasticsearch.common.io.stream.StreamInput#close() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CompressorFactory.java From Elasticsearch with Apache License 2.0 | 5 votes |
private static BytesReference uncompress(BytesReference bytes, Compressor compressor) throws IOException { StreamInput compressed = compressor.streamInput(bytes.streamInput()); BytesStreamOutput bStream = new BytesStreamOutput(); Streams.copy(compressed, bStream); compressed.close(); return bStream.bytes(); }
Example 2
Source File: CompressorFactory.java From crate with Apache License 2.0 | 5 votes |
private static BytesReference uncompress(BytesReference bytes, Compressor compressor) throws IOException { StreamInput compressed = compressor.streamInput(bytes.streamInput()); BytesStreamOutput bStream = new BytesStreamOutput(); Streams.copy(compressed, bStream); compressed.close(); return bStream.bytes(); }