Tabnine Logo
StreamOutput.writeVLong
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeVLong(fullClusterStateReceivedCount);
  out.writeVLong(incompatibleClusterStateDiffReceivedCount);
  out.writeVLong(compatibleClusterStateDiffReceivedCount);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeVLong(serverOpen);
  out.writeVLong(rxCount);
  out.writeVLong(rxSize);
  out.writeVLong(txCount);
  out.writeVLong(txSize);
}
origin: org.elasticsearch/elasticsearch

  @Override
  public void writeTo(StreamOutput out) throws IOException {
    out.writeVLong(existsCount);
    out.writeVLong(existsTimeInMillis);
    out.writeVLong(missingCount);
    out.writeVLong(missingTimeInMillis);
    out.writeVLong(current);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeString(phase);
  out.writeVLong(totalOperations);
  out.writeVLong(resyncedOperations);
  out.writeVLong(skippedOperations);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeVLong(total);
  out.writeVLong(totalTimeInMillis);
  out.writeVInt(listeners);
}
origin: org.elasticsearch/elasticsearch

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

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeVLong(docCount);
  aggregations.writeTo(out);
}
origin: org.elasticsearch/elasticsearch

public void writeVLongArray(long[] values) throws IOException {
  writeVInt(values.length);
  for (long value : values) {
    writeVLong(value);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeString(this.nodeId);
  out.writeString(this.nodeName);
  out.writeString(this.path);
  out.writeVLong(this.totalBytes);
  out.writeVLong(this.freeBytes);
}
origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeNamedWriteable(format);
  out.writeDouble(sum);
  out.writeVLong(count);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeLong(geohashAsLong);
  out.writeVLong(docCount);
  aggregations.writeTo(out);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeString(targetAllocationID);
  out.writeVLong(primaryTerm);
  request.writeTo(out);
}
origin: org.elasticsearch/elasticsearch

public  static void writeSingleTermStats(StreamOutput out, TermStatistics termStatistic) throws IOException {
  assert termStatistic.docFreq() >= 0;
  out.writeVLong(termStatistic.docFreq());
  out.writeVLong(addOne(termStatistic.totalTermFreq()));
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeVLong(timestamp);
  out.writeVLong(uptime);
  mem.writeTo(out);
  threads.writeTo(out);
  gc.writeTo(out);
  out.writeList(bufferPools);
  classes.writeTo(out);
}
origin: org.elasticsearch/elasticsearch

@Override
protected final void doWriteTo(StreamOutput out) throws IOException {
  order.writeTo(out);
  writeSize(requiredSize, out);
  out.writeVLong(minDocCount);
  writeTermTypeInfoTo(out);
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeVInt(stats.size());
  for (ObjectLongCursor<String> entry : stats) {
    out.writeString(entry.key);
    out.writeVLong(entry.value);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  InternalOrder.Streams.writeHistogramOrder(order, out, false);
  out.writeVLong(minDocCount);
  if (minDocCount == 0) {
    emptyBucketInfo.writeTo(out);
  }
  out.writeLong(offset);
  out.writeNamedWriteable(format);
  out.writeBoolean(keyed);
  out.writeList(buckets);
}
origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeVLong(count);
  if (centroid != null) {
    out.writeBoolean(true);
    // should we just write lat and lon separately?
    out.writeLong(encodeLatLon(centroid.lat(), centroid.lon()));
  } else {
    out.writeBoolean(false);
  }
}
origin: org.elasticsearch/elasticsearch

public static void write(TDigestState state, StreamOutput out) throws IOException {
  out.writeDouble(state.compression);
  out.writeVInt(state.centroidCount());
  for (Centroid centroid : state.centroids()) {
    out.writeDouble(centroid.mean());
    out.writeVLong(centroid.count());
  }
}
origin: org.elasticsearch/elasticsearch

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  shardId.writeTo(out);
  out.writeString(allocationId);
  out.writeVLong(primaryTerm);
  out.writeString(message);
  out.writeException(failure);
  if (out.getVersion().onOrAfter(Version.V_6_3_0)) {
    out.writeBoolean(markAsStale);
  }
}
org.elasticsearch.common.io.streamStreamOutputwriteVLong

Javadoc

Writes a non-negative long in a variable-length format. Writes between one and ten bytes. Smaller values take fewer bytes. Negative numbers use ten bytes and trip assertions (if running in tests) so prefer #writeLong(long) or #writeZLong(long) for negative numbers.

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
  • writeInt
    Writes an int as four bytes.
  • 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

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JLabel (javax.swing)
  • Join (org.hibernate.mapping)
  • 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