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

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

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

origin: floragunncom/search-guard

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  license = in.readOptionalWriteable(SearchGuardLicense::new);
  modules = new HashSet<>(in.readList(ModuleInfo::new));
}
origin: org.elasticsearch/elasticsearch

public DiscoveryStats(StreamInput in) throws IOException {
  queueStats = in.readOptionalWriteable(PendingClusterStateStats::new);
  if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
    publishStats = in.readOptionalWriteable(PublishClusterStateStats::new);
  } else {
    publishStats = null;
  }
}
origin: org.elasticsearch/elasticsearch

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  task = in.readOptionalWriteable(TaskResult::new);
}
origin: org.elasticsearch/elasticsearch

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  id = in.readLong();
  scroll = in.readOptionalWriteable(Scroll::new);
}
origin: org.elasticsearch/elasticsearch

public HandshakeResponse(StreamInput in) throws IOException {
  super(in);
  discoveryNode = in.readOptionalWriteable(DiscoveryNode::new);
  clusterName = new ClusterName(in);
  version = Version.readVersion(in);
}
origin: org.elasticsearch/elasticsearch

/**
 * Read an aggregation from a stream that serializes its targetValueType. This should only be used by subclasses that override
 * {@link #serializeTargetValueType()} to return true.
 */
protected ValuesSourceAggregationBuilder(StreamInput in, ValuesSourceType valuesSourceType) throws IOException {
  super(in);
  assert serializeTargetValueType() : "Wrong read constructor called for subclass that serializes its targetValueType";
  this.valuesSourceType = valuesSourceType;
  this.targetValueType = in.readOptionalWriteable(ValueType::readFromStream);
  read(in);
}
origin: org.elasticsearch/elasticsearch

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  clusterName = new ClusterName(in);
  node = in.readOptionalWriteable(DiscoveryNode::new);
}
origin: org.elasticsearch/elasticsearch

NestedIdentity(StreamInput in) throws IOException {
  field = in.readOptionalText();
  offset = in.readInt();
  child = in.readOptionalWriteable(NestedIdentity::new);
}
origin: org.elasticsearch/elasticsearch

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  timestamp = in.readVLong();
  // it may be that the master switched on us while doing the operation. In this case the status may be null.
  status = in.readOptionalWriteable(ClusterHealthStatus::readFrom);
}
origin: org.elasticsearch/elasticsearch

/**
 * Read from a stream.
 */
public TermsAggregationBuilder(StreamInput in) throws IOException {
  super(in, ValuesSourceType.ANY);
  bucketCountThresholds = new BucketCountThresholds(in);
  collectMode = in.readOptionalWriteable(SubAggCollectionMode::readFromStream);
  executionHint = in.readOptionalString();
  includeExclude = in.readOptionalWriteable(IncludeExclude::new);
  order = InternalOrder.Streams.readOrder(in);
  showTermDocCountError = in.readBoolean();
}
origin: org.elasticsearch/elasticsearch

protected DateHistogramValuesSourceBuilder(StreamInput in) throws IOException {
  super(in);
  this.interval = in.readLong();
  this.dateHistogramInterval = in.readOptionalWriteable(DateHistogramInterval::new);
  if (in.readBoolean()) {
    timeZone = DateTimeZone.forID(in.readString());
  }
}
origin: org.elasticsearch/elasticsearch

/** Read from a stream, for internal use only. */
public DateHistogramAggregationBuilder(StreamInput in) throws IOException {
  super(in, ValuesSourceType.NUMERIC, ValueType.DATE);
  order = InternalOrder.Streams.readHistogramOrder(in, true);
  keyed = in.readBoolean();
  minDocCount = in.readVLong();
  interval = in.readLong();
  dateHistogramInterval = in.readOptionalWriteable(DateHistogramInterval::new);
  offset = in.readLong();
  extendedBounds = in.readOptionalWriteable(ExtendedBounds::new);
}
origin: org.elasticsearch/elasticsearch

public MultiValuesSourceFieldConfig(StreamInput in) throws IOException {
  this.fieldName = in.readString();
  this.missing = in.readGenericValue();
  this.script = in.readOptionalWriteable(Script::new);
  this.timeZone = in.readOptionalTimeZone();
}
origin: org.elasticsearch/elasticsearch

public NodeAllocationResult(StreamInput in) throws IOException {
  node = new DiscoveryNode(in);
  shardStoreInfo = in.readOptionalWriteable(ShardStoreInfo::new);
  if (in.getVersion().before(Version.V_5_2_1)) {
    canAllocateDecision = Decision.readFrom(in);
  } else {
    canAllocateDecision = in.readOptionalWriteable(Decision::readFrom);
  }
  nodeDecision = AllocationDecision.readFrom(in);
  weightRanking = in.readVInt();
}
origin: org.elasticsearch/elasticsearch

/**
 * Read from a stream.
 */
public FunctionScoreQueryBuilder(StreamInput in) throws IOException {
  super(in);
  query = in.readNamedWriteable(QueryBuilder.class);
  filterFunctionBuilders = in.readList(FilterFunctionBuilder::new).toArray(new FilterFunctionBuilder[0]);
  maxBoost = in.readFloat();
  minScore = in.readOptionalFloat();
  boostMode = in.readOptionalWriteable(CombineFunction::readFromStream);
  scoreMode = FunctionScoreQuery.ScoreMode.readFromStream(in);
}
origin: org.elasticsearch/elasticsearch

/**
 * Read from a Stream.
 */
public SignificantTermsAggregationBuilder(StreamInput in) throws IOException {
  super(in, ValuesSourceType.ANY);
  bucketCountThresholds = new BucketCountThresholds(in);
  executionHint = in.readOptionalString();
  filterBuilder = in.readOptionalNamedWriteable(QueryBuilder.class);
  includeExclude = in.readOptionalWriteable(IncludeExclude::new);
  significanceHeuristic = in.readNamedWriteable(SignificanceHeuristic.class);
}
origin: org.elasticsearch/elasticsearch

PingResponse(StreamInput in) throws IOException {
  this.clusterName = new ClusterName(in);
  this.node = new DiscoveryNode(in);
  this.master = in.readOptionalWriteable(DiscoveryNode::new);
  this.clusterStateVersion = in.readLong();
  this.id = in.readLong();
}
origin: org.elasticsearch/elasticsearch

public OsStats(StreamInput in) throws IOException {
  this.timestamp = in.readVLong();
  this.cpu = new Cpu(in);
  this.mem = new Mem(in);
  this.swap = new Swap(in);
  if (in.getVersion().onOrAfter(Version.V_5_1_1)) {
    this.cgroup = in.readOptionalWriteable(Cgroup::new);
  } else {
    this.cgroup = null;
  }
}
origin: org.elasticsearch/elasticsearch

public InternalSearchResponse(StreamInput in) throws IOException {
  super(
      SearchHits.readSearchHits(in),
      in.readBoolean() ? InternalAggregations.readAggregations(in) : null,
      in.readBoolean() ? Suggest.readSuggest(in) : null,
      in.readBoolean(),
      in.readOptionalBoolean(),
      in.readOptionalWriteable(SearchProfileShardResults::new),
      in.readVInt()
  );
}
origin: org.elasticsearch/elasticsearch

@Override
public void readFrom(StreamInput in) throws IOException {
  index = in.readString();
  type = in.readOptionalString();
  id = in.readString();
  routing = in.readOptionalString();
  parent = in.readOptionalString();
  storedFields = in.readOptionalStringArray();
  version = in.readLong();
  versionType = VersionType.fromValue(in.readByte());
  fetchSourceContext = in.readOptionalWriteable(FetchSourceContext::new);
}
org.elasticsearch.common.io.streamStreamInputreadOptionalWriteable

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
  • readStringArray
  • readByte
    Reads and returns a single byte.
  • readStringArray,
  • readByte,
  • readGenericValue,
  • readNamedWriteable,
  • readBytesRef,
  • readFloat,
  • readOptionalBytesReference,
  • read,
  • readList

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Permission (java.security)
    Legacy security code; do not use.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top PhpStorm 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