/** * Read from a stream. */ public RawTaskStatus(StreamInput in) throws IOException { status = in.readOptionalBytesReference(); }
/** * Read from a stream. */ public TaskResult(StreamInput in) throws IOException { completed = in.readBoolean(); task = new TaskInfo(in); error = in.readOptionalBytesReference(); response = in.readOptionalBytesReference(); }
/** * Read from a stream. */ public CompletionSuggestionBuilder(StreamInput in) throws IOException { super(in); fuzzyOptions = in.readOptionalWriteable(FuzzyOptions::new); regexOptions = in.readOptionalWriteable(RegexOptions::new); contextBytes = in.readOptionalBytesReference(); if (in.getVersion().onOrAfter(Version.V_6_1_0)) { skipDuplicates = in.readBoolean(); } }
/** * Read from a stream. */ public RawTaskStatus(StreamInput in) throws IOException { status = in.readOptionalBytesReference(); }
/** * Read from a stream. */ public RawTaskStatus(StreamInput in) throws IOException { status = in.readOptionalBytesReference(); }
/** * Read from a stream. */ public RawTaskStatus(StreamInput in) throws IOException { status = in.readOptionalBytesReference(); }
/** * Read from a stream. */ public TaskResult(StreamInput in) throws IOException { completed = in.readBoolean(); task = new TaskInfo(in); error = in.readOptionalBytesReference(); response = in.readOptionalBytesReference(); }
/** * Read from a stream. */ public TaskResult(StreamInput in) throws IOException { completed = in.readBoolean(); task = new TaskInfo(in); error = in.readOptionalBytesReference(); response = in.readOptionalBytesReference(); }
/** * Read from a stream. */ public TaskResult(StreamInput in) throws IOException { completed = in.readBoolean(); task = new TaskInfo(in); error = in.readOptionalBytesReference(); response = in.readOptionalBytesReference(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); source = in.readOptionalBytesReference(); response = in.readOptionalStreamable(SearchResponse::new); }
/** * Read from a stream. */ public CompletionSuggestionBuilder(StreamInput in) throws IOException { super(in); fuzzyOptions = in.readOptionalWriteable(FuzzyOptions::new); regexOptions = in.readOptionalWriteable(RegexOptions::new); contextBytes = in.readOptionalBytesReference(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); source = in.readOptionalBytesReference(); response = in.readOptionalStreamable(SearchResponse::new); }
ContextSetup(StreamInput in) throws IOException { index = in.readOptionalString(); document = in.readOptionalBytesReference(); String xContentType = in.readOptionalString(); if (xContentType != null) { this.xContentType = XContentType.fromMediaType(xContentType); } query = in.readOptionalNamedWriteable(QueryBuilder.class); }
/** * Read from a stream. */ public CompletionSuggestionBuilder(StreamInput in) throws IOException { super(in); fuzzyOptions = in.readOptionalWriteable(FuzzyOptions::new); regexOptions = in.readOptionalWriteable(RegexOptions::new); contextBytes = in.readOptionalBytesReference(); if (in.getVersion().onOrAfter(Version.V_6_1_0)) { skipDuplicates = in.readBoolean(); } }
/** * Read from a stream. */ public CompletionSuggestionBuilder(StreamInput in) throws IOException { super(in); fuzzyOptions = in.readOptionalWriteable(FuzzyOptions::new); regexOptions = in.readOptionalWriteable(RegexOptions::new); contextBytes = in.readOptionalBytesReference(); if (in.getVersion().onOrAfter(Version.V_6_1_0)) { skipDuplicates = in.readBoolean(); } }
documents = in.readList(StreamInput::readBytesReference); } else { BytesReference document = in.readOptionalBytesReference(); documents = document != null ? Collections.singletonList(document) : Collections.emptyList();
documents = in.readList(StreamInput::readBytesReference); } else { BytesReference document = in.readOptionalBytesReference(); documents = document != null ? Collections.singletonList(document) : Collections.emptyList();