/** * 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()); } }
CompositeValuesSourceBuilder(StreamInput in) throws IOException { this.name = in.readString(); this.field = in.readOptionalString(); if (in.readBoolean()) { this.script = new Script(in); } if (in.readBoolean()) { this.valueType = ValueType.readFromStream(in); } if (in.getVersion().onOrAfter(Version.V_6_4_0)) { this.missingBucket = in.readBoolean(); } else { this.missingBucket = false; } this.missing = in.readGenericValue(); this.order = SortOrder.readFromStream(in); if (in.getVersion().onOrAfter(Version.V_6_3_0)) { this.format = in.readOptionalString(); } else { this.format = null; } }
/** * 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()); } }
/** * 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()); } }
/** * 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()); } }
CompositeValuesSourceBuilder(StreamInput in) throws IOException { this.name = in.readString(); this.field = in.readOptionalString(); if (in.readBoolean()) { this.script = new Script(in); } if (in.readBoolean()) { this.valueType = ValueType.readFromStream(in); } if (in.getVersion().onOrAfter(Version.V_6_4_0)) { this.missingBucket = in.readBoolean(); } else { this.missingBucket = false; } this.missing = in.readGenericValue(); this.order = SortOrder.readFromStream(in); if (in.getVersion().onOrAfter(Version.V_6_3_0)) { this.format = in.readOptionalString(); } else { this.format = null; } }
CompositeValuesSourceBuilder(StreamInput in) throws IOException { this.name = in.readString(); this.field = in.readOptionalString(); if (in.readBoolean()) { this.script = new Script(in); } if (in.readBoolean()) { this.valueType = ValueType.readFromStream(in); } if (in.getVersion().onOrAfter(Version.V_6_4_0)) { this.missingBucket = in.readBoolean(); } else { this.missingBucket = false; } this.missing = in.readGenericValue(); this.order = SortOrder.readFromStream(in); if (in.getVersion().onOrAfter(Version.V_6_3_0)) { this.format = in.readOptionalString(); } else { this.format = null; } }