Tabnine Logo
StreamInput.readOptionalBytesReference
Code IndexAdd Tabnine to your IDE (free)

How to use
readOptionalBytesReference
method
in
org.elasticsearch.common.io.stream.StreamInput

Best Java code snippets using org.elasticsearch.common.io.stream.StreamInput.readOptionalBytesReference (Showing top 17 results out of 315)

origin: org.elasticsearch/elasticsearch

/**
 * Read from a stream.
 */
public RawTaskStatus(StreamInput in) throws IOException {
  status = in.readOptionalBytesReference();
}
origin: org.elasticsearch/elasticsearch

/**
 * Read from a stream.
 */
public TaskResult(StreamInput in) throws IOException {
  completed = in.readBoolean();
  task = new TaskInfo(in);
  error = in.readOptionalBytesReference();
  response = in.readOptionalBytesReference();
}
origin: org.elasticsearch/elasticsearch

/**
 * Read from a stream.
 */
public CompletionSuggestionBuilder(StreamInput in) throws IOException {
  super(in);
  fuzzyOptions = in.readOptionalWriteable(FuzzyOptions::new);
  regexOptions = in.readOptionalWriteable(RegexOptions::new);
  contextBytes = in.readOptionalBytesReference();
  if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
    skipDuplicates = in.readBoolean();
  }
}
origin: com.strapdata.elasticsearch/elasticsearch

/**
 * Read from a stream.
 */
public RawTaskStatus(StreamInput in) throws IOException {
  status = in.readOptionalBytesReference();
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

/**
 * Read from a stream.
 */
public RawTaskStatus(StreamInput in) throws IOException {
  status = in.readOptionalBytesReference();
}
origin: apache/servicemix-bundles

/**
 * Read from a stream.
 */
public RawTaskStatus(StreamInput in) throws IOException {
  status = in.readOptionalBytesReference();
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

/**
 * Read from a stream.
 */
public TaskResult(StreamInput in) throws IOException {
  completed = in.readBoolean();
  task = new TaskInfo(in);
  error = in.readOptionalBytesReference();
  response = in.readOptionalBytesReference();
}
origin: com.strapdata.elasticsearch/elasticsearch

/**
 * Read from a stream.
 */
public TaskResult(StreamInput in) throws IOException {
  completed = in.readBoolean();
  task = new TaskInfo(in);
  error = in.readOptionalBytesReference();
  response = in.readOptionalBytesReference();
}
origin: apache/servicemix-bundles

/**
 * Read from a stream.
 */
public TaskResult(StreamInput in) throws IOException {
  completed = in.readBoolean();
  task = new TaskInfo(in);
  error = in.readOptionalBytesReference();
  response = in.readOptionalBytesReference();
}
origin: org.codelibs.elasticsearch.module/lang-mustache

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  source = in.readOptionalBytesReference();
  response = in.readOptionalStreamable(SearchResponse::new);
}
origin: com.strapdata.elasticsearch/elasticsearch

/**
 * Read from a stream.
 */
public CompletionSuggestionBuilder(StreamInput in) throws IOException {
  super(in);
  fuzzyOptions = in.readOptionalWriteable(FuzzyOptions::new);
  regexOptions = in.readOptionalWriteable(RegexOptions::new);
  contextBytes = in.readOptionalBytesReference();
}
origin: org.elasticsearch.plugin/lang-mustache-client

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  source = in.readOptionalBytesReference();
  response = in.readOptionalStreamable(SearchResponse::new);
}
origin: org.codelibs.elasticsearch.module/lang-painless

ContextSetup(StreamInput in) throws IOException {
  index = in.readOptionalString();
  document = in.readOptionalBytesReference();
  String xContentType = in.readOptionalString();
  if (xContentType  != null) {
    this.xContentType = XContentType.fromMediaType(xContentType);
  }
  query = in.readOptionalNamedWriteable(QueryBuilder.class);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

/**
 * Read from a stream.
 */
public CompletionSuggestionBuilder(StreamInput in) throws IOException {
  super(in);
  fuzzyOptions = in.readOptionalWriteable(FuzzyOptions::new);
  regexOptions = in.readOptionalWriteable(RegexOptions::new);
  contextBytes = in.readOptionalBytesReference();
  if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
    skipDuplicates = in.readBoolean();
  }
}
origin: apache/servicemix-bundles

/**
 * Read from a stream.
 */
public CompletionSuggestionBuilder(StreamInput in) throws IOException {
  super(in);
  fuzzyOptions = in.readOptionalWriteable(FuzzyOptions::new);
  regexOptions = in.readOptionalWriteable(RegexOptions::new);
  contextBytes = in.readOptionalBytesReference();
  if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
    skipDuplicates = in.readBoolean();
  }
}
origin: org.elasticsearch.plugin/percolator-client

  documents = in.readList(StreamInput::readBytesReference);
} else {
  BytesReference document = in.readOptionalBytesReference();
  documents = document != null ? Collections.singletonList(document) : Collections.emptyList();
origin: org.codelibs.elasticsearch.module/percolator

  documents = in.readList(StreamInput::readBytesReference);
} else {
  BytesReference document = in.readOptionalBytesReference();
  documents = document != null ? Collections.singletonList(document) : Collections.emptyList();
org.elasticsearch.common.io.streamStreamInputreadOptionalBytesReference

Javadoc

Reads an optional bytes reference from this stream. It might hold an actual reference to the underlying bytes of the stream. Use this only if you must differentiate null from empty. Use StreamInput#readBytesReference() and StreamOutput#writeBytesReference(BytesReference) if you do not.

Popular methods of StreamInput

  • readString
  • readVInt
    Reads an int stored in variable-length format. Reads between one and five bytes. Smaller values take
  • readBoolean
  • readOptionalString
  • readVLong
    Reads a long stored in variable-length format. Reads between one and ten bytes. Smaller values take
  • readInt
    Reads four bytes and returns an int.
  • readBytesReference
    Reads a bytes reference from this stream, might hold an actual reference to the underlying bytes of
  • getVersion
    The version of the node on the other side of this stream.
  • readLong
    Reads eight bytes and returns a long.
  • readMap
  • readOptionalWriteable
  • readStringArray
  • readOptionalWriteable,
  • readStringArray,
  • readByte,
  • readGenericValue,
  • readNamedWriteable,
  • readBytesRef,
  • readFloat,
  • read,
  • readList

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • 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
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Collectors (java.util.stream)
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Best plugins for Eclipse
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