congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BytesStream
Code IndexAdd Tabnine to your IDE (free)

How to use
BytesStream
in
org.elasticsearch.common.io.stream

Best Java code snippets using org.elasticsearch.common.io.stream.BytesStream (Showing top 20 results out of 315)

origin: org.elasticsearch/elasticsearch

  @Override
  public BytesReference bytes() {
    return delegate.bytes();
  }
}
origin: org.elasticsearch/elasticsearch

@Override
public void flush() throws IOException {
  delegate.flush();
}
origin: org.elasticsearch/elasticsearch

@Override
public void reset() throws IOException {
  delegate.reset();
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeBytes(byte[] b, int offset, int length) throws IOException {
  delegate.writeBytes(b, offset, length);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeByte(byte b) throws IOException {
  delegate.writeByte(b);
}
origin: apache/servicemix-bundles

@Override
public void writeBytes(byte[] b, int offset, int length) throws IOException {
  delegate.writeBytes(b, offset, length);
}
origin: com.strapdata.elasticsearch/elasticsearch

@Override
public void writeByte(byte b) throws IOException {
  delegate.writeByte(b);
}
origin: org.elasticsearch/elasticsearch

/**
 * This method ensures that compression is complete and returns the underlying bytes.
 *
 * @return bytes underlying the stream
 * @throws IOException if an exception occurs when writing or flushing
 */
BytesReference materializeBytes() throws IOException {
  // If we are using compression the stream needs to be closed to ensure that EOS marker bytes are written.
  // The actual ReleasableBytesStreamOutput will not be closed yet as it is wrapped in flushOnCloseStream when
  // passed to the deflater stream.
  if (shouldCompress) {
    stream.close();
  }
  return bytesStreamOutput.bytes();
}
origin: com.strapdata.elasticsearch/elasticsearch

@Override
public void writeBytes(byte[] b, int offset, int length) throws IOException {
  delegate.writeBytes(b, offset, length);
}
origin: com.strapdata.elasticsearch/elasticsearch

@Override
public void flush() throws IOException {
  delegate.flush();
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

@Override
public void writeByte(byte b) throws IOException {
  delegate.writeByte(b);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

@Override
public void reset() throws IOException {
  delegate.reset();
}
origin: org.elasticsearch/elasticsearch

/**
 * Convert an {@link XContentBuilder} into a BytesReference. This method closes the builder,
 * so no further fields may be added.
 */
public static BytesReference bytes(XContentBuilder xContentBuilder) {
  xContentBuilder.close();
  OutputStream stream = xContentBuilder.getOutputStream();
  if (stream instanceof ByteArrayOutputStream) {
    return new BytesArray(((ByteArrayOutputStream) stream).toByteArray());
  } else {
    return ((BytesStream) stream).bytes();
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

@Override
public void writeBytes(byte[] b, int offset, int length) throws IOException {
  delegate.writeBytes(b, offset, length);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

@Override
public void flush() throws IOException {
  delegate.flush();
}
origin: apache/servicemix-bundles

@Override
public void writeByte(byte b) throws IOException {
  delegate.writeByte(b);
}
origin: com.strapdata.elasticsearch/elasticsearch

@Override
public void reset() throws IOException {
  delegate.reset();
}
origin: org.elasticsearch/elasticsearch

return new BytesRestResponse(RestStatus.OK, BytesRestResponse.TEXT_CONTENT_TYPE, bytesOut.bytes());
origin: apache/servicemix-bundles

@Override
public void flush() throws IOException {
  delegate.flush();
}
origin: apache/servicemix-bundles

@Override
public void reset() throws IOException {
  delegate.reset();
}
org.elasticsearch.common.io.streamBytesStream

Most used methods

  • bytes
  • flush
  • reset
  • writeByte
  • writeBytes

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now