@Override public List<LicenseInfoNodeResponse> readNodesFrom(final StreamInput in) throws IOException { return in.readList(LicenseInfoNodeResponse::readNodeResponse); }
@Override public List<ConfigUpdateNodeResponse> readNodesFrom(final StreamInput in) throws IOException { return in.readList(ConfigUpdateNodeResponse::readNodeResponse); }
public Resolved(final StreamInput in) throws IOException { aliases = new HashSet<String>(in.readList(StreamInput::readString)); indices = new HashSet<String>(in.readList(StreamInput::readString)); allIndices = new HashSet<String>(in.readList(StreamInput::readString)); types = new HashSet<String>(in.readList(StreamInput::readString)); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); license = in.readOptionalWriteable(SearchGuardLicense::new); modules = new HashSet<>(in.readList(ModuleInfo::new)); }
public User(final StreamInput in) throws IOException { super(); name = in.readString(); roles.addAll(in.readList(StreamInput::readString)); requestedTenant = in.readString(); attributes = in.readMap(StreamInput::readString, StreamInput::readString); }
public SearchGuardLicense(final StreamInput in) throws IOException { uid = in.readString(); type = in.readEnum(Type.class); issueDate = in.readString(); expiryDate = in.readString(); issuedTo = in.readString(); issuer = in.readString(); startDate = in.readString(); majorVersion = in.readOptionalVInt(); clusterName = in.readString(); allowedNodeCount = in.readInt(); msgs.addAll(in.readList(StreamInput::readString)); expiresInDays = in.readLong(); isExpired = in.readBoolean(); valid = in.readBoolean(); action = in.readString(); prodUsage = in.readString(); features = in.readArray(new Reader<Feature>() { @Override public Feature read(StreamInput in) throws IOException { return in.readEnum(Feature.class); }}, Feature[]::new); clusterService = null; }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); snapshots = in.readList(Snapshot::new); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); tasks = Collections.unmodifiableList(in.readList(TaskInfo::new)); }
/** * Read from a stream. */ public InternalGeoHashGrid(StreamInput in) throws IOException { super(in); requiredSize = readSize(in); buckets = in.readList(Bucket::new); }
@Override public void readFrom(StreamInput in) throws IOException { aggregations = in.readList(stream -> in.readNamedWriteable(InternalAggregation.class)); if (aggregations.isEmpty()) { aggregationsAsMap = emptyMap(); } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); if (in.getVersion().onOrAfter(Version.V_6_4_0)) { this.nodes = in.readList(NodeView::new).stream().map(n -> n.convertToDiscoveryNode()).collect(Collectors.toList()); } else { clusterName = new ClusterName(in); this.nodes = in.readList(DiscoveryNode::new); } }
@Override protected List<ClusterStatsNodeResponse> readNodesFrom(StreamInput in) throws IOException { List<ClusterStatsNodeResponse> nodes = in.readList(ClusterStatsNodeResponse::readNodeResponse); // built from nodes rather than from the stream directly nodesStats = new ClusterStatsNodes(nodes); indicesStats = new ClusterStatsIndices(nodes); return nodes; }
/** * Read from a stream. */ public InternalBinaryRange(StreamInput in) throws IOException { super(in); format = in.readNamedWriteable(DocValueFormat.class); keyed = in.readBoolean(); buckets = in.readList(stream -> Bucket.createFromStream(stream, format, keyed)); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); clusterName = new ClusterName(in); nodes = readNodesFrom(in); failures = in.readList(FailedNodeException::new); }
/** * 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); }
public Mem(StreamInput in) throws IOException { heapCommitted = in.readVLong(); heapUsed = in.readVLong(); nonHeapCommitted = in.readVLong(); nonHeapUsed = in.readVLong(); heapMax = in.readVLong(); pools = in.readList(MemoryPool::new); }
protected InternalMappedSignificantTerms(StreamInput in, Bucket.Reader<B> bucketReader) throws IOException { super(in); format = in.readNamedWriteable(DocValueFormat.class); subsetSize = in.readVLong(); supersetSize = in.readVLong(); significanceHeuristic = in.readNamedWriteable(SignificanceHeuristic.class); buckets = in.readList(stream -> bucketReader.read(stream, subsetSize, supersetSize, format)); }
/** * Read from a stream. */ protected InternalMappedTerms(StreamInput in, Bucket.Reader<B> bucketReader) throws IOException { super(in); docCountError = in.readZLong(); format = in.readNamedWriteable(DocValueFormat.class); shardSize = readSize(in); showTermDocCountError = in.readBoolean(); otherDocCount = in.readVLong(); buckets = in.readList(stream -> bucketReader.read(stream, format, showTermDocCountError)); }
public JvmStats(StreamInput in) throws IOException { timestamp = in.readVLong(); uptime = in.readVLong(); mem = new Mem(in); threads = new Threads(in); gc = new GarbageCollectors(in); bufferPools = in.readList(BufferPool::new); classes = new Classes(in); }
/** * Read from a stream. */ public HighlightBuilder(StreamInput in) throws IOException { super(in); encoder(in.readOptionalString()); useExplicitFieldOrder(in.readBoolean()); this.fields = in.readList(Field::new); assert this.equals(new HighlightBuilder(this, highlightQuery, fields)) : "copy constructor is broken"; }