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); updatedConfigTypes = in.readStringArray(); message = in.readOptionalString(); }
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 ModuleInfo(final StreamInput in) throws IOException { moduleType = in.readEnum(ModuleType.class); classname = in.readString(); classpath = in.readString(); version = in.readString(); buildTime = in.readString(); gitsha1 = in.readString(); assert(moduleType != null); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); dn = in.readString(); isAdmin = in.readBoolean(); isAuthenticated = in.readBoolean(); isNodeCertificateRequest = in.readBoolean(); }
private static Bucket createFromStream(StreamInput in, DocValueFormat format, boolean keyed) throws IOException { String key = in.getVersion().onOrAfter(Version.V_6_4_0) ? in.readString() : in.readOptionalString(); BytesRef from = in.readBoolean() ? in.readBytesRef() : null; BytesRef to = in.readBoolean() ? in.readBytesRef() : null; long docCount = in.readLong(); InternalAggregations aggregations = InternalAggregations.readAggregations(in); return new Bucket(format, keyed, key, from, to, docCount, aggregations); }
@Override public void readFrom(StreamInput in) throws IOException { name = in.readString(); filter = in.readOptionalString(); indexRouting = in.readOptionalString(); searchRouting = in.readOptionalString(); if (in.getVersion().onOrAfter(Version.V_6_4_0)) { writeIndex = in.readOptionalBoolean(); } else { writeIndex = null; } }
RecoveryPrepareForTranslogOperationsRequest(StreamInput in) throws IOException { super.readFrom(in); recoveryId = in.readLong(); shardId = ShardId.readShardId(in); totalTranslogOps = in.readVInt(); if (in.getVersion().before(Version.V_6_0_0_alpha1)) { in.readLong(); // maxUnsafeAutoIdTimestamp } if (in.getVersion().onOrAfter(Version.V_6_2_0)) { fileBasedRecovery = in.readBoolean(); } else { fileBasedRecovery = true; } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); threads = in.readInt(); ignoreIdleThreads = in.readBoolean(); type = in.readString(); interval = in.readTimeValue(); snapshots = in.readInt(); }
/** * Read from a stream. */ public Fuzziness(StreamInput in) throws IOException { fuzziness = in.readString(); if (in.getVersion().onOrAfter(Version.V_6_1_0) && in.readBoolean()) { lowDistance = in.readVInt(); highDistance = in.readVInt(); } }
@Override public void readFrom(StreamInput in) throws IOException { MapBuilder<String, String> builder = MapBuilder.newMapBuilder(); for (int i = in.readVInt(); i > 0; i--) { builder.put(in.readString(), in.readString()); } userData = builder.immutableMap(); generation = in.readLong(); id = in.readOptionalString(); numDocs = in.readInt(); }
FailedShardEntry(StreamInput in) throws IOException { super(in); shardId = ShardId.readShardId(in); allocationId = in.readString(); primaryTerm = in.readVLong(); message = in.readString(); failure = in.readException(); if (in.getVersion().onOrAfter(Version.V_6_3_0)) { markAsStale = in.readBoolean(); } else { markAsStale = true; } }
public UnassignedInfo(StreamInput in) throws IOException { this.reason = Reason.values()[(int) in.readByte()]; this.unassignedTimeMillis = in.readLong(); // As System.nanoTime() cannot be compared across different JVMs, reset it to now. // This means that in master fail-over situations, elapsed delay time is forgotten. this.unassignedTimeNanos = System.nanoTime(); this.delayed = in.readBoolean(); this.message = in.readOptionalString(); this.failure = in.readException(); this.failedAllocations = in.readVInt(); this.lastAllocationStatus = AllocationStatus.readFrom(in); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); id = in.readString(); source = in.readBytesReference(); if (in.getVersion().onOrAfter(Version.V_5_3_0)) { xContentType = in.readEnum(XContentType.class); } else { xContentType = XContentHelper.xContentType(source); } }
public NestedSortBuilder(StreamInput in) throws IOException { path = in.readOptionalString(); filter = in.readOptionalNamedWriteable(QueryBuilder.class); nestedSort = in.readOptionalWriteable(NestedSortBuilder::new); if (in.getVersion().onOrAfter(Version.V_6_5_0)) { maxChildren = in.readVInt(); } else { maxChildren = Integer.MAX_VALUE; } }
/** * Read from a stream. */ public MatchPhrasePrefixQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); value = in.readGenericValue(); slop = in.readVInt(); maxExpansions = in.readVInt(); analyzer = in.readOptionalString(); }
/** * Read from a stream. */ public SuggestBuilder(StreamInput in) throws IOException { globalText = in.readOptionalString(); final int size = in.readVInt(); for (int i = 0; i < size; i++) { suggestions.put(in.readString(), in.readNamedWriteable(SuggestionBuilder.class)); } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); id = in.readOptionalString(); verbose = in.readBoolean(); source = in.readBytesReference(); if (in.getVersion().onOrAfter(Version.V_5_3_0)) { xContentType = in.readEnum(XContentType.class); } else { xContentType = XContentHelper.xContentType(source); } }
@Override public void readFrom(StreamInput in) throws IOException { node = new DiscoveryNode(in); if (in.getVersion().before(Version.V_6_0_0_alpha1)) { // legacy version in.readLong(); } allocationId = in.readOptionalString(); allocationStatus = AllocationStatus.readFrom(in); if (in.readBoolean()) { storeException = in.readException(); } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); repository = in.readString(); snapshots = in.readStringArray(); ignoreUnavailable = in.readBoolean(); if (in.getVersion().onOrAfter(VERBOSE_INTRODUCED)) { verbose = in.readBoolean(); } }