public SearchGuardLicense(final StreamInput in) throws IOException { uid = in.readString(); type = in.readEnum(Type.class); issueDate = in.readString(); expiryDate = in.readString(); issuedTo = in.readString(); issuer = in.readString(); startDate = in.readString(); majorVersion = in.readOptionalVInt(); clusterName = in.readString(); allowedNodeCount = in.readInt(); msgs.addAll(in.readList(StreamInput::readString)); expiresInDays = in.readLong(); isExpired = in.readBoolean(); valid = in.readBoolean(); action = in.readString(); prodUsage = in.readString(); features = in.readArray(new Reader<Feature>() { @Override public Feature read(StreamInput in) throws IOException { return in.readEnum(Feature.class); }}, Feature[]::new); clusterService = null; }
public RecoverFilesRecoveryException(StreamInput in) throws IOException{ super(in); numberOfFiles = in.readInt(); totalFilesSize = new ByteSizeValue(in); }
/** * Read from a stream. */ public SpanFirstQueryBuilder(StreamInput in) throws IOException { super(in); matchBuilder = (SpanQueryBuilder) in.readNamedWriteable(QueryBuilder.class); end = in.readInt(); }
public SearchProfileShardResults(StreamInput in) throws IOException { int size = in.readInt(); shardResults = new HashMap<>(size); for (int i = 0; i < size; i++) { String key = in.readString(); ProfileShardResult shardResult = new ProfileShardResult(in); shardResults.put(key, shardResult); } shardResults = Collections.unmodifiableMap(shardResults); }
/** * Reads a list of operations written with {@link #writeOperations(StreamOutput, List)} */ public static List<Operation> readOperations(StreamInput input, String source) throws IOException { ArrayList<Operation> operations = new ArrayList<>(); int numOps = input.readInt(); final BufferedChecksumStreamInput checksumStreamInput = new BufferedChecksumStreamInput(input, source); for (int i = 0; i < numOps; i++) { operations.add(readOperation(checksumStreamInput)); } return operations; }
public Text readText() throws IOException { // use StringAndBytes so we can cache the string if its ever converted to it int length = readInt(); return new Text(readBytesReference(length)); }
NestedIdentity(StreamInput in) throws IOException { field = in.readOptionalText(); offset = in.readInt(); child = in.readOptionalWriteable(NestedIdentity::new); }
@Override public void readFrom(StreamInput in) throws IOException { int boundAddressLength = in.readInt(); boundAddresses = new TransportAddress[boundAddressLength]; for (int i = 0; i < boundAddressLength; i++) { boundAddresses[i] = new TransportAddress(in); } publishAddress = new TransportAddress(in); }
UnicastPingRequest(StreamInput in) throws IOException { super(in); id = in.readInt(); timeout = in.readTimeValue(); pingResponse = new PingResponse(in); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); clusterName = in.readString(); clusterHealthStatus = ClusterHealthStatus.fromValue(in.readByte()); clusterStateHealth = new ClusterStateHealth(in); numberOfPendingTasks = in.readInt(); timedOut = in.readBoolean(); numberOfInFlightFetch = in.readInt(); delayedUnassignedShards= in.readInt(); taskMaxWaitingTime = in.readTimeValue(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); maxNumSegments = in.readInt(); onlyExpungeDeletes = in.readBoolean(); flush = in.readBoolean(); }
@Nullable public Text readOptionalText() throws IOException { int length = readInt(); if (length == -1) { return null; } return new Text(readBytesReference(length)); }
/** * 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(); } }
public MovFnPipelineAggregator(StreamInput in) throws IOException { super(in); script = new Script(in); formatter = in.readNamedWriteable(DocValueFormat.class); gapPolicy = BucketHelpers.GapPolicy.readFrom(in); bucketsPath = in.readString(); window = in.readInt(); }
public MovFnPipelineAggregationBuilder(StreamInput in) throws IOException { super(in, NAME); bucketsPathString = in.readString(); script = new Script(in); format = in.readOptionalString(); gapPolicy = GapPolicy.readFrom(in); window = in.readInt(); }