public Status(StreamInput in) throws IOException { phase = in.readString(); totalOperations = in.readVInt(); resyncedOperations = in.readVInt(); skippedOperations = in.readVInt(); }
/** * 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(); }
@Override public void readFrom(StreamInput in) throws IOException { name = in.readString(); int size = in.readVInt(); List<String> indicesListBuilder = new ArrayList<>(); for (int i = 0; i < size; i++) { indicesListBuilder.add(in.readString()); } indices = Collections.unmodifiableList(indicesListBuilder); totalShards = in.readVInt(); successfulShards = in.readVInt(); }
/** * 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(); }
/** * Read from a stream. */ public GeoPolygonQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); int size = in.readVInt(); shell = new ArrayList<>(size); for (int i = 0; i < size; i++) { shell.add(in.readGeoPoint()); } validationMethod = GeoValidationMethod.readFromStream(in); ignoreUnmapped = in.readBoolean(); }
/** * Read from a stream. */ public CancelAllocationCommand(StreamInput in) throws IOException { index = in.readString(); shardId = in.readVInt(); node = in.readString(); allowPrimary = in.readBoolean(); }
@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); }
public CompositeAggregationBuilder(StreamInput in) throws IOException { super(in); int num = in.readVInt(); this.sources = new ArrayList<>(num); for (int i = 0; i < num; i++) { CompositeValuesSourceBuilder<?> builder = CompositeValuesSourceParserHelper.readFrom(in); sources.add(builder); } this.size = in.readVInt(); if (in.readBoolean()) { this.after = in.readMap(); } }
private DiffableStringMapDiff(StreamInput in) throws IOException { deletes = new ArrayList<>(); upserts = new HashMap<>(); int deletesCount = in.readVInt(); for (int i = 0; i < deletesCount; i++) { deletes.add(in.readString()); } int upsertsCount = in.readVInt(); for (int i = 0; i < upsertsCount; i++) { String key = in.readString(); String newValue = in.readString(); upserts.put(key, newValue); } }
/** * Read from a stream. */ public FiltersAggregationBuilder(StreamInput in) throws IOException { super(in); keyed = in.readBoolean(); int filtersSize = in.readVInt(); filters = new ArrayList<>(filtersSize); if (keyed) { for (int i = 0; i < filtersSize; i++) { filters.add(new KeyedFilter(in)); } } else { for (int i = 0; i < filtersSize; i++) { filters.add(new KeyedFilter(String.valueOf(i), in.readNamedWriteable(QueryBuilder.class))); } } otherBucket = in.readBoolean(); otherBucketKey = in.readString(); }
/** * 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(); } }
protected void innerReadFrom(StreamInput in) throws IOException { name = in.readString(); size = in.readVInt(); }
public ClusterShardHealth(final StreamInput in) throws IOException { shardId = in.readVInt(); status = ClusterHealthStatus.fromValue(in.readByte()); activeShards = in.readVInt(); relocatingShards = in.readVInt(); initializingShards = in.readVInt(); unassignedShards = in.readVInt(); primaryActive = in.readBoolean(); }
/** * Read from a stream. */ public InternalFilters(StreamInput in) throws IOException { super(in); keyed = in.readBoolean(); int size = in.readVInt(); List<InternalBucket> buckets = new ArrayList<>(size); for (int i = 0; i < size; i++) { buckets.add(new InternalBucket(in, keyed)); } this.buckets = buckets; this.bucketMap = null; }
@Override public void readFrom(StreamInput in) throws IOException { name = in.readString(); int size = in.readVInt(); values = new ArrayList<>(size); for (int i = 0; i < size; i++) { values.add(in.readGenericValue()); } }
/** * Read from a stream. */ public InternalRange(StreamInput in) throws IOException { super(in); format = in.readNamedWriteable(DocValueFormat.class); keyed = in.readBoolean(); int size = in.readVInt(); List<B> ranges = new ArrayList<>(size); for (int i = 0; i < size; i++) { String key = in.getVersion().onOrAfter(Version.V_6_4_0) ? in.readString() : in.readOptionalString(); ranges.add(getFactory().createBucket(key, in.readDouble(), in.readDouble(), in.readVLong(), InternalAggregations.readAggregations(in), keyed, format)); } this.ranges = ranges; }
@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(); } } } }