@Override public void writeTo(StreamOutput out) throws IOException { out.writeBoolean(transpositions); out.writeBoolean(unicodeAware); out.writeVInt(editDistance); out.writeVInt(fuzzyMinLength); out.writeVInt(fuzzyPrefixLength); out.writeVInt(maxDeterminizedStates); }
public void writeStringArray(String[] array) throws IOException { writeVInt(array.length); for (String s : array) { writeString(s); } }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(name); out.writeVInt(indices.size()); for (String index : indices) { out.writeString(index); } out.writeVInt(totalShards); out.writeVInt(successfulShards); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeVInt(sources.size()); for (CompositeValuesSourceBuilder<?> builder : sources) { CompositeValuesSourceParserHelper.writeTo(builder, out); } out.writeVInt(size); out.writeBoolean(after != null); if (after != null) { out.writeMap(after); } }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(fieldName); out.writeVInt(shell.size()); for (GeoPoint point : shell) { out.writeGeoPoint(point); } validationMethod.writeTo(out); out.writeBoolean(ignoreUnmapped); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(index); out.writeVInt(shardId); out.writeString(node); out.writeBoolean(allowPrimary); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeBoolean(keyed); out.writeVInt(buckets.size()); for (InternalBucket bucket : buckets) { bucket.writeTo(out); } }
/** * Writes a list of strings */ public void writeStringList(List<String> list) throws IOException { writeVInt(list.size()); for (String string: list) { this.writeString(string); } }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeBoolean(keyed); out.writeVInt(filters.size()); if (keyed) { for (KeyedFilter keyedFilter : filters) { keyedFilter.writeTo(out); } } else { for (KeyedFilter keyedFilter : filters) { out.writeNamedWriteable(keyedFilter.filter()); } } out.writeBoolean(otherBucket); out.writeString(otherBucketKey); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(name); if (fragments == null) { out.writeBoolean(false); } else { out.writeBoolean(true); out.writeVInt(fragments.length); for (Text fragment : fragments) { out.writeText(fragment); } } }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(index); out.writeVInt(shardId); out.writeString(node); }
@Override protected void innerWriteTo(StreamOutput out) throws IOException { out.writeVInt(ranges.size()); for (Range range : ranges) { range.writeTo(out); } out.writeBoolean(keyed); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeVInt(deletes.size()); for (String delete : deletes) { out.writeString(delete); } out.writeVInt(upserts.size()); for (Map.Entry<String, String> entry : upserts.entrySet()) { out.writeString(entry.getKey()); out.writeString(entry.getValue()); } }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(this.fieldName); out.writeGenericValue(this.value); this.fuzziness.writeTo(out); out.writeVInt(this.prefixLength); out.writeVInt(this.maxExpansions); out.writeBoolean(this.transpositions); out.writeOptionalString(this.rewrite); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(index); out.writeVInt(shardId); out.writeString(fromNode); out.writeString(toNode); }
public void writeOptionalVInt(@Nullable Integer integer) throws IOException { if (integer == null) { writeBoolean(false); } else { writeBoolean(true); writeVInt(integer); } }