@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); dn = in.readString(); isAdmin = in.readBoolean(); isAuthenticated = in.readBoolean(); isNodeCertificateRequest = in.readBoolean(); }
/** * Read from a stream. */ public MoveAllocationCommand(StreamInput in) throws IOException { index = in.readString(); shardId = in.readVInt(); fromNode = in.readString(); toNode = in.readString(); }
/** * Read from a stream. */ public WildcardQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); value = in.readString(); rewrite = in.readOptionalString(); }
/** * Read from a stream. */ private void read(StreamInput in) throws IOException { field = in.readOptionalString(); if (in.readBoolean()) { script = new Script(in); } if (in.readBoolean()) { valueType = ValueType.readFromStream(in); } format = in.readOptionalString(); missing = in.readGenericValue(); if (in.readBoolean()) { timeZone = DateTimeZone.forID(in.readString()); } }
/** * Read from a stream. */ public RegexpQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); value = in.readString(); flagsValue = in.readVInt(); maxDeterminizedStates = in.readVInt(); rewrite = in.readOptionalString(); }
/** * Read from a stream. */ public CancelAllocationCommand(StreamInput in) throws IOException { index = in.readString(); shardId = in.readVInt(); node = in.readString(); allowPrimary = in.readBoolean(); }
/** * Read from a stream. */ public FuzzyQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); value = in.readGenericValue(); fuzziness = new Fuzziness(in); prefixLength = in.readVInt(); maxExpansions = in.readVInt(); transpositions = in.readBoolean(); rewrite = in.readOptionalString(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); indices = new String[in.readVInt()]; for (int i = 0; i < indices.length; i++) { indices[i] = in.readString(); } routing = in.readOptionalString(); preference = in.readOptionalString(); if (in.getVersion().onOrBefore(Version.V_5_1_1)) { //types in.readStringArray(); } indicesOptions = IndicesOptions.readIndicesOptions(in); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); snapshot = in.readString(); repository = in.readString(); indices = in.readStringArray(); indicesOptions = IndicesOptions.readIndicesOptions(in); renamePattern = in.readOptionalString(); renameReplacement = in.readOptionalString(); waitForCompletion = in.readBoolean(); includeGlobalState = in.readBoolean(); partial = in.readBoolean(); includeAliases = in.readBoolean(); settings = readSettingsFromStream(in); indexSettings = readSettingsFromStream(in); ignoreIndexSettings = in.readStringArray(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); type = in.readString(); id = in.readString(); routing = in.readOptionalString(); parent = in.readOptionalString(); preference = in.readOptionalString(); refresh = in.readBoolean(); storedFields = in.readOptionalStringArray(); realtime = in.readBoolean(); this.versionType = VersionType.fromValue(in.readByte()); this.version = in.readLong(); fetchSourceContext = in.readOptionalWriteable(FetchSourceContext::new); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); repository = in.readString(); snapshots = in.readStringArray(); ignoreUnavailable = in.readBoolean(); }
/** * Read from a stream. */ public Field(StreamInput in) throws IOException { super(in); name = in.readString(); fragmentOffset(in.readVInt()); matchedFields(in.readOptionalStringArray()); assert this.equals(new Field(this, highlightQuery)) : "copy constructor is broken"; }
@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); }
public FieldCapabilities(StreamInput in) throws IOException { this.name = in.readString(); this.type = in.readString(); this.isSearchable = in.readBoolean(); this.isAggregatable = in.readBoolean(); this.indices = in.readOptionalStringArray(); this.nonSearchableIndices = in.readOptionalStringArray(); this.nonAggregatableIndices = in.readOptionalStringArray(); }
/** * Read from a stream. */ protected AbstractAllocateAllocationCommand(StreamInput in) throws IOException { index = in.readString(); shardId = in.readVInt(); node = in.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; }
/** * Read from a stream. */ public PrefixQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); value = in.readString(); rewrite = in.readOptionalString(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); index = in.readString(); if (in.readBoolean()) { shardId = ShardId.readShardId(in); } else { shardId = null; } timeout = in.readTimeValue(); concreteIndex = 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 { name = in.readString(); if (in.readBoolean()) { int size = in.readVInt(); if (size == 0) { fragments = Text.EMPTY_ARRAY; } else { fragments = new Text[size]; for (int i = 0; i < size; i++) { fragments[i] = in.readText(); } } } }