@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); license = in.readOptionalWriteable(SearchGuardLicense::new); modules = new HashSet<>(in.readList(ModuleInfo::new)); }
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; } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); task = in.readOptionalWriteable(TaskResult::new); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); id = in.readLong(); scroll = in.readOptionalWriteable(Scroll::new); }
public HandshakeResponse(StreamInput in) throws IOException { super(in); discoveryNode = in.readOptionalWriteable(DiscoveryNode::new); clusterName = new ClusterName(in); version = Version.readVersion(in); }
/** * 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); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); clusterName = new ClusterName(in); node = in.readOptionalWriteable(DiscoveryNode::new); }
NestedIdentity(StreamInput in) throws IOException { field = in.readOptionalText(); offset = in.readInt(); child = in.readOptionalWriteable(NestedIdentity::new); }
@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); }
/** * 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(); }
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()); } }
/** 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); }
public MultiValuesSourceFieldConfig(StreamInput in) throws IOException { this.fieldName = in.readString(); this.missing = in.readGenericValue(); this.script = in.readOptionalWriteable(Script::new); this.timeZone = in.readOptionalTimeZone(); }
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(); }
/** * 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); }
/** * 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); }
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(); }
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; } }
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() ); }
@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); }