Refine search
@Override public void readFrom(final StreamInput in) throws IOException { // before 6.0.0 we received an empty response so we have to maintain that if (in.getVersion().onOrAfter(Version.V_6_0_0_alpha1)) { localCheckpoint = in.readZLong(); } else { localCheckpoint = SequenceNumbers.UNASSIGNED_SEQ_NO; } }
private ExistingStoreRecoverySource(StreamInput in) throws IOException { if (in.getVersion().onOrAfter(Version.V_6_5_0)) { bootstrapNewHistoryUUID = in.readBoolean(); } else { bootstrapNewHistoryUUID = false; } }
public DiscoveryStats(StreamInput in) throws IOException { queueStats = in.readOptionalWriteable(PendingClusterStateStats::new); if (in.getVersion().onOrAfter(Version.V_6_1_0)) { publishStats = in.readOptionalWriteable(PublishClusterStateStats::new); } else { publishStats = null; } }
/** Serialization constructor. */ public FieldAndFormat(StreamInput in) throws IOException { this.field = in.readString(); if (in.getVersion().onOrAfter(Version.V_6_4_0)) { format = in.readOptionalString(); } else { format = null; } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); if (in.getVersion().onOrAfter(Version.V_6_1_0)) { skipDuplicates = in.readBoolean(); } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); if (in.getVersion().onOrAfter(Version.V_6_1_0)) { readShardsAcknowledged(in); } }
SearchSortValues(StreamInput in) throws IOException { this.formattedSortValues = in.readArray(Lucene::readSortValue, Object[]::new); if (in.getVersion().onOrAfter(Version.V_6_6_0)) { this.rawSortValues = in.readArray(Lucene::readSortValue, Object[]::new); } else { this.rawSortValues = EMPTY_ARRAY; } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); this.responseMap = in.readMap(StreamInput::readString, FieldCapabilitiesResponse::readField); if (in.getVersion().onOrAfter(Version.V_5_5_0)) { indexResponses = in.readList(FieldCapabilitiesIndexResponse::new); } else { indexResponses = Collections.emptyList(); } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); if (in.getVersion().onOrAfter(Version.V_6_4_0)) { this.nodes = in.readList(NodeView::new).stream().map(n -> n.convertToDiscoveryNode()).collect(Collectors.toList()); } else { clusterName = new ClusterName(in); this.nodes = in.readList(DiscoveryNode::new); } }
@Override public void readFrom(StreamInput in) throws IOException { total = in.readVLong(); totalTimeInMillis = in.readVLong(); if (in.getVersion().onOrAfter(Version.V_6_3_0)) { periodic = in.readVLong(); } }
/** * Read from a stream. */ public TypeQueryBuilder(StreamInput in) throws IOException { super(in); if (in.getVersion().onOrAfter(Version.V_6_3_0)) { type = in.readString(); } else { type = in.readBytesRef().utf8ToString(); } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); fields = in.readStringArray(); if (in.getVersion().onOrAfter(Version.V_6_2_0)) { originalIndices = OriginalIndices.readOriginalIndices(in); } else { originalIndices = OriginalIndices.NONE; } }
@Override public void readFrom(StreamInput in) throws IOException { count = in.readVLong(); deleted = in.readVLong(); if (in.getVersion().onOrAfter(Version.V_6_1_0)) { totalSizeInBytes = in.readVLong(); } else { totalSizeInBytes = -1; } }
/** * Read from a stream. */ public RandomScoreFunctionBuilder(StreamInput in) throws IOException { super(in); if (in.readBoolean()) { seed = in.readInt(); } if (in.getVersion().onOrAfter(Version.V_6_0_0_beta1)) { field = in.readOptionalString(); } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); readShardsAcknowledged(in); if (in.getVersion().onOrAfter(Version.V_5_6_0)) { index = in.readString(); } }
public static IndicesOptions readIndicesOptions(StreamInput in) throws IOException { if (in.getVersion().onOrAfter(Version.V_6_4_0)) { return new IndicesOptions(in.readEnumSet(Option.class), in.readEnumSet(WildcardStates.class)); } else { byte id = in.readByte(); if (id >= OLD_VALUES.length) { throw new IllegalArgumentException("No valid missing index type id: " + id); } return OLD_VALUES[id]; } }
public NestedSortBuilder(StreamInput in) throws IOException { path = in.readOptionalString(); filter = in.readOptionalNamedWriteable(QueryBuilder.class); nestedSort = in.readOptionalWriteable(NestedSortBuilder::new); if (in.getVersion().onOrAfter(Version.V_6_5_0)) { maxChildren = in.readVInt(); } else { maxChildren = Integer.MAX_VALUE; } }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); indices = in.readStringArray(); indicesOptions = IndicesOptions.readIndicesOptions(in); if (in.getVersion().onOrAfter(Version.V_6_1_0)) { waitForActiveShards = ActiveShardCount.readFrom(in); } }
/** * 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(); } }
SnapshotRecoverySource(StreamInput in) throws IOException { if (in.getVersion().onOrAfter(Version.V_6_6_0)) { restoreUUID = in.readString(); } else { restoreUUID = RestoreInProgress.BWC_UUID; } snapshot = new Snapshot(in); version = Version.readVersion(in); index = in.readString(); }