/** * Read from a stream. */ protected BaseTermQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); value = in.readGenericValue(); }
private Object[] readArray() throws IOException { int size8 = readArraySize(); Object[] list8 = new Object[size8]; for (int i = 0; i < size8; i++) { list8[i] = readGenericValue(); } return list8; }
/** * Read from a stream. */ public SearchAfterBuilder(StreamInput in) throws IOException { int size = in.readVInt(); sortValues = new Object[size]; for (int i = 0; i < size; i++) { sortValues[i] = in.readGenericValue(); } }
/** * Read from a stream. */ public InternalScriptedMetric(StreamInput in) throws IOException { super(in); reduceScript = in.readOptionalWriteable(Script::new); aggregation = Collections.singletonList(in.readGenericValue()); }
CompositeKey(StreamInput in) throws IOException { values = new Comparable<?>[in.readVInt()]; for (int i = 0; i < values.length; i++) { values[i] = (Comparable<?>) in.readGenericValue(); } }
public StoredFieldsContext(StreamInput in) throws IOException { this.fetchFields = in.readBoolean(); if (fetchFields) { this.fieldNames = (List<String>) in.readGenericValue(); } else { this.fieldNames = null; } }
@Nullable @SuppressWarnings("unchecked") public Map<String, Object> readMap() throws IOException { return (Map<String, Object>) readGenericValue(); }
@SuppressWarnings("unchecked") private List readArrayList() throws IOException { int size = readArraySize(); List list = new ArrayList(size); for (int i = 0; i < size; i++) { list.add(readGenericValue()); } return list; }
@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()); } }
private Map readLinkedHashMap() throws IOException { int size9 = readArraySize(); Map map9 = new LinkedHashMap(size9); for (int i = 0; i < size9; i++) { map9.put(readString(), readGenericValue()); } return map9; }
private Map readHashMap() throws IOException { int size10 = readArraySize(); Map map10 = new HashMap(size10); for (int i = 0; i < size10; i++) { map10.put(readString(), readGenericValue()); } return map10; }
/** * Read from a stream. */ public TermsQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); termsLookup = in.readOptionalWriteable(TermsLookup::new); values = (List<?>) in.readGenericValue(); this.supplier = null; }
/** * Read from a stream. */ @SuppressWarnings("unchecked") public BucketSelectorPipelineAggregator(StreamInput in) throws IOException { super(in); script = new Script(in); gapPolicy = GapPolicy.readFrom(in); bucketsPathsMap = (Map<String, String>) in.readGenericValue(); }
/** * Read from a stream. */ @SuppressWarnings("unchecked") public BucketScriptPipelineAggregator(StreamInput in) throws IOException { super(in); script = new Script(in); formatter = in.readNamedWriteable(DocValueFormat.class); gapPolicy = GapPolicy.readFrom(in); bucketsPathsMap = (Map<String, String>) in.readGenericValue(); }
public MultiValuesSourceFieldConfig(StreamInput in) throws IOException { this.fieldName = in.readString(); this.missing = in.readGenericValue(); this.script = in.readOptionalWriteable(Script::new); this.timeZone = in.readOptionalTimeZone(); }
@SuppressWarnings("unchecked") @Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); timestamp = in.readLong(); sinceTime = in.readLong(); restUsage = (Map<String, Long>) in.readGenericValue(); }
public TermsSetQueryBuilder(StreamInput in) throws IOException { super(in); this.fieldName = in.readString(); this.values = (List<?>) in.readGenericValue(); this.minimumShouldMatchField = in.readOptionalString(); this.minimumShouldMatchScript = in.readOptionalWriteable(Script::new); }
/** * Read from a stream. */ public MatchPhrasePrefixQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); value = in.readGenericValue(); slop = in.readVInt(); maxExpansions = in.readVInt(); analyzer = 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(); }
/** * Read from a stream. */ public MatchPhraseQueryBuilder(StreamInput in) throws IOException { super(in); fieldName = in.readString(); value = in.readGenericValue(); slop = in.readVInt(); if (in.getVersion().onOrAfter(Version.V_6_3_0)) { zeroTermsQuery = ZeroTermsQuery.readFromStream(in); } analyzer = in.readOptionalString(); }