@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. */ FuzzyOptions(StreamInput in) throws IOException { transpositions = in.readBoolean(); unicodeAware = in.readBoolean(); editDistance = in.readVInt(); fuzzyMinLength = in.readVInt(); fuzzyPrefixLength = in.readVInt(); maxDeterminizedStates = in.readVInt(); }
/** * 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. */ 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()); } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); valid = in.readBoolean(); explanation = in.readOptionalString(); error = in.readOptionalString(); }
/** * 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); preference = in.readOptionalString(); refresh = in.readBoolean(); realtime = in.readBoolean(); int size = in.readVInt(); items = new ArrayList<>(size); for (int i = 0; i < size; i++) { items.add(Item.readItem(in)); } }
/** * Read from a stream. */ public MoreLikeThisQueryBuilder(StreamInput in) throws IOException { super(in); fields = in.readOptionalStringArray(); likeTexts = in.readStringArray(); likeItems = in.readList(Item::new).toArray(new Item[0]); unlikeTexts = in.readStringArray(); unlikeItems = in.readList(Item::new).toArray(new Item[0]); maxQueryTerms = in.readVInt(); minTermFreq = in.readVInt(); minDocFreq = in.readVInt(); maxDocFreq = in.readVInt(); minWordLength = in.readVInt(); maxWordLength = in.readVInt(); stopWords = in.readOptionalStringArray(); analyzer = in.readOptionalString(); minimumShouldMatch = in.readString(); boostTerms = (Float) in.readGenericValue(); include = in.readBoolean(); failOnUnsupportedField = in.readBoolean(); }
@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(); }
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(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); text = in.readStringArray(); analyzer = in.readOptionalString(); tokenizer = in.readOptionalWriteable(NameOrDefinition::new); tokenFilters.addAll(in.readList(NameOrDefinition::new)); charFilters.addAll(in.readList(NameOrDefinition::new)); field = in.readOptionalString(); explain = in.readBoolean(); attributes = in.readStringArray(); if (in.getVersion().onOrAfter(Version.V_6_0_0_beta1)) { normalizer = in.readOptionalString(); } }
@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(); } } } }
/** * Read from a stream. */ public SpanNearQueryBuilder(StreamInput in) throws IOException { super(in); for (QueryBuilder clause : readQueries(in)) { this.clauses.add((SpanQueryBuilder) clause); } slop = in.readVInt(); inOrder = in.readBoolean(); }
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; }
public MappingMetaData(StreamInput in) throws IOException { type = in.readString(); source = CompressedXContent.readCompressedString(in); // routing routing = new Routing(in.readBoolean()); if (in.getVersion().before(Version.V_6_0_0_alpha1)) { // timestamp boolean enabled = in.readBoolean(); if (enabled) { throw new IllegalArgumentException("_timestamp may not be enabled"); } in.readString(); // format in.readOptionalString(); // defaultTimestamp in.readOptionalBoolean(); // ignoreMissing } hasParentField = in.readBoolean(); }
NameOrDefinition(StreamInput in) throws IOException { name = in.readOptionalString(); if (in.readBoolean()) { definition = Settings.readSettingsFromStream(in); } else { definition = null; } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); alias = in.readString(); newIndexName = in.readOptionalString(); dryRun = in.readBoolean(); int size = in.readVInt(); for (int i = 0; i < size; i++) { Condition condition = in.readNamedWriteable(Condition.class); this.conditions.put(condition.name, condition); } createIndexRequest = new CreateIndexRequest(); createIndexRequest.readFrom(in); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); int size = in.readVInt(); locations = new IntArrayList(size); items = new ArrayList<>(size); for (int i = 0; i < size; i++) { locations.add(in.readVInt()); items.add(MultiGetRequest.Item.readItem(in)); } preference = in.readOptionalString(); refresh = in.readBoolean(); realtime = in.readBoolean(); }