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

How to use
writeInt
method
in
org.elasticsearch.common.io.stream.StreamOutput

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

origin: org.elasticsearch/elasticsearch

  @Override
  public void writeTo(StreamOutput out) throws IOException {
    out.writeInt(total);
    out.writeInt(successful);
    out.writeInt(failed);
  }
}
origin: org.elasticsearch/elasticsearch

  @Override
  public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeInt(lineNumber);
    out.writeInt(columnNumber);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeString(name);
  out.writeInt(threads);
  out.writeInt(queue);
  out.writeInt(active);
  out.writeLong(rejected);
  out.writeInt(largest);
  out.writeLong(completed);
}
origin: floragunncom/search-guard

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeString(uid);
  out.writeEnum(type);
  out.writeString(issueDate);
  out.writeString(expiryDate);
  out.writeString(issuedTo);
  out.writeString(issuer);
  out.writeString(startDate);
  out.writeOptionalVInt(majorVersion);
  out.writeString(clusterName);
  out.writeInt(allowedNodeCount);
  out.writeStringList(msgs);
  out.writeLong(expiresInDays);
  out.writeBoolean(isExpired);
  out.writeBoolean(valid);
  out.writeString(action);
  out.writeString(prodUsage);
  out.writeArray(StreamOutput::writeEnum, features==null?new Feature[0]:features);
}

origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeInt(phase);
}
origin: org.elasticsearch/elasticsearch

@Override
public final void writeTo(StreamOutput out) throws IOException {
  out.writeString(fieldName);
  out.writeInt(width);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeInt(requiredSize);
  out.writeInt(shardSize);
  out.writeLong(minDocCount);
  out.writeLong(shardMinDocCount);
}
origin: org.elasticsearch/elasticsearch

public void writeIntArray(int[] values) throws IOException {
  writeVInt(values.length);
  for (int value : values) {
    writeInt(value);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeOptionalString(failureReason);
  out.writeInt(shardResponses.size());
  for (Map.Entry<ShardRouting, SyncedFlushService.ShardSyncedFlushResponse> entry : shardResponses.entrySet()) {
    entry.getKey().writeTo(out);
    entry.getValue().writeTo(out);
  }
  out.writeOptionalString(syncId);
  shardId.writeTo(out);
  out.writeInt(totalShards);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeInt(boundAddresses.length);
  for (TransportAddress address : boundAddresses) {
    address.writeTo(out);
  }
  publishAddress.writeTo(out);
}
origin: org.elasticsearch/elasticsearch

  @Override
  public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeInt(numberOfFiles);
    totalFilesSize.writeTo(out);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeOptionalText(field);
  out.writeInt(offset);
  out.writeOptionalWriteable(child);
}
origin: org.elasticsearch/elasticsearch

  @Override
  public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeInt(threads);
    out.writeBoolean(ignoreIdleThreads);
    out.writeString(type);
    out.writeTimeValue(interval);
    out.writeInt(snapshots);
  }
}
origin: org.elasticsearch/elasticsearch

public void writeOptionalText(@Nullable Text text) throws IOException {
  if (text == null) {
    writeInt(-1);
  } else {
    writeText(text);
  }
}
origin: org.elasticsearch/elasticsearch

  @Override
  public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeInt(id);
    out.writeTimeValue(timeout);
    pingResponse.writeTo(out);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeInt(maxNumSegments);
  out.writeBoolean(onlyExpungeDeletes);
  out.writeBoolean(flush);
}
origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  script.writeTo(out);
  out.writeNamedWriteable(formatter);
  gapPolicy.writeTo(out);
  out.writeString(bucketsPath);
  out.writeInt(window);
}
origin: org.elasticsearch/elasticsearch

public void writeText(Text text) throws IOException {
  if (!text.hasBytes()) {
    final String string = text.string();
    spare.copyChars(string);
    writeInt(spare.length());
    write(spare.bytes(), 0, spare.length());
  } else {
    BytesReference bytes = text.bytes();
    writeInt(bytes.length());
    bytes.writeTo(this);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  if (seed != null) {
    out.writeBoolean(true);
    out.writeInt(seed);
  } else {
    out.writeBoolean(false);
  }
  if (out.getVersion().onOrAfter(Version.V_6_0_0_beta1)) {
    out.writeOptionalString(field);
  }
}
origin: org.elasticsearch/elasticsearch

  @Override
  public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    commitId.writeTo(out);
    if (includeNumDocs(out.getVersion())) {
      out.writeInt(numDocs);
    }
    if (includeExistingSyncId(out.getVersion())) {
      out.writeOptionalString(existingSyncId);
    }
  }
}
org.elasticsearch.common.io.streamStreamOutputwriteInt

Javadoc

Writes an int as four bytes.

Popular methods of StreamOutput

  • writeString
  • writeVInt
    Writes an int in a variable-length format. Writes between one and five bytes. Smaller values take fe
  • writeBoolean
    Writes a boolean.
  • writeOptionalString
  • writeVLong
    Writes a non-negative long in a variable-length format. Writes between one and ten bytes. Smaller va
  • getVersion
    The version of the node on the other side of this stream.
  • writeBytesReference
    Writes the bytes reference, including a length header.
  • writeLong
    Writes a long as eight bytes.
  • writeMap
    Write a Map of K-type keys to V-type. Map map = ...; out.writeMap(map, StreamOutpu
  • writeStringArray
  • writeGenericValue
    Notice: when serialization a map, the stream out map with the stream in map maybe have the different
  • writeOptionalWriteable
  • writeGenericValue,
  • writeOptionalWriteable,
  • writeByte,
  • writeFloat,
  • writeOptionalStreamable,
  • writeOptionalBytesReference,
  • write,
  • writeNamedWriteable,
  • writeStringArrayNullable

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for WebStorm
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