Refine search
AllocationId(StreamInput in) throws IOException { this.id = in.readString(); this.relocationId = in.readOptionalString(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); valid = in.readBoolean(); explanation = in.readOptionalString(); error = in.readOptionalString(); }
@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); }
/** * 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); 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); 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); 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(); } }
/** * Read from a stream. */ public GeoShapeQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); if (in.readBoolean()) { shape = in.readNamedWriteable(ShapeBuilder.class); indexedShapeId = null; indexedShapeType = null; } else { shape = null; indexedShapeId = in.readOptionalString(); indexedShapeType = in.readOptionalString(); indexedShapeIndex = in.readOptionalString(); indexedShapePath = in.readOptionalString(); if (in.getVersion().onOrAfter(Version.V_6_4_0)) { indexedShapeRouting = in.readOptionalString(); } else { indexedShapeRouting = null; } } relation = ShapeRelation.readFromStream(in); strategy = in.readOptionalWriteable(SpatialStrategy::readFromStream); ignoreUnmapped = in.readBoolean(); supplier = null; }
/** * 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. */ public DerivativePipelineAggregationBuilder(StreamInput in) throws IOException { super(in, NAME); format = in.readOptionalString(); if (in.readBoolean()) { gapPolicy = GapPolicy.readFrom(in); } units = in.readOptionalString(); }
@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); searchType = SearchType.fromId(in.readByte()); indices = new String[in.readVInt()]; for (int i = 0; i < indices.length; i++) { indices[i] = in.readString(); } routing = in.readOptionalString(); preference = in.readOptionalString(); scroll = in.readOptionalWriteable(Scroll::new); source = in.readOptionalWriteable(SearchSourceBuilder::new); types = in.readStringArray(); indicesOptions = IndicesOptions.readIndicesOptions(in); requestCache = in.readOptionalBoolean(); batchedReduceSize = in.readVInt(); if (in.getVersion().onOrAfter(Version.V_5_6_0)) { maxConcurrentShardRequests = in.readVInt(); preFilterShardSize = in.readVInt(); } if (in.getVersion().onOrAfter(Version.V_6_3_0)) { allowPartialSearchResults = in.readOptionalBoolean(); } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); type = in.readString(); id = in.readString(); routing = in.readOptionalString(); preference = in.readOptionalString(); query = in.readNamedWriteable(QueryBuilder.class); filteringAlias = new AliasFilter(in); storedFields = in.readOptionalStringArray(); fetchSourceContext = in.readOptionalWriteable(FetchSourceContext::new); nowInMillis = in.readVLong(); }
@Override public void readFrom(StreamInput in) throws IOException { if (in.getVersion().onOrAfter(Version.V_6_4_0)) { index = in.readOptionalString(); } else { index = in.readString(); } if (in.getVersion().onOrAfter(Version.V_5_4_0)) { shard = in.readInt(); } else { shard = RANDOM_SHARD; } valid = in.readBoolean(); explanation = in.readOptionalString(); error = in.readOptionalString(); }
/** * Read from a stream. */ public PrefixQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); value = in.readString(); rewrite = in.readOptionalString(); }
NameOrDefinition(StreamInput in) throws IOException { name = in.readOptionalString(); if (in.readBoolean()) { definition = Settings.readSettingsFromStream(in); } else { definition = null; } }
/** * Read from a stream. */ Item(StreamInput in) throws IOException { index = in.readOptionalString(); type = in.readOptionalString(); if (in.readBoolean()) { doc = (BytesReference) in.readGenericValue(); if (in.getVersion().onOrAfter(Version.V_5_3_0)) { xContentType = in.readEnum(XContentType.class); } else { xContentType = XContentHelper.xContentType(doc); } } else { id = in.readString(); } fields = in.readOptionalStringArray(); perFieldAnalyzer = (Map<String, String>) in.readGenericValue(); routing = in.readOptionalString(); version = in.readLong(); versionType = VersionType.readFromStream(in); }
@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. */ protected SuggestionBuilder(StreamInput in) throws IOException { field = in.readString(); text = in.readOptionalString(); prefix = in.readOptionalString(); regex = in.readOptionalString(); analyzer = in.readOptionalString(); size = in.readOptionalVInt(); shardSize = in.readOptionalVInt(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); if (in.readBoolean()) { internalShardId = ShardId.readShardId(in); } index = in.readOptionalString(); // no need to pass threading over the network, they are always false when coming throw a thread pool }