congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
StreamInput.readList
Code IndexAdd Tabnine to your IDE (free)

How to use
readList
method
in
org.elasticsearch.common.io.stream.StreamInput

Best Java code snippets using org.elasticsearch.common.io.stream.StreamInput.readList (Showing top 20 results out of 315)

origin: floragunncom/search-guard

@Override
public List<LicenseInfoNodeResponse> readNodesFrom(final StreamInput in) throws IOException {
  return in.readList(LicenseInfoNodeResponse::readNodeResponse);
}
origin: floragunncom/search-guard

@Override
public List<ConfigUpdateNodeResponse> readNodesFrom(final StreamInput in) throws IOException {
  return in.readList(ConfigUpdateNodeResponse::readNodeResponse);
}
origin: floragunncom/search-guard

public Resolved(final StreamInput in) throws IOException {
  aliases = new HashSet<String>(in.readList(StreamInput::readString));
  indices = new HashSet<String>(in.readList(StreamInput::readString));
  allIndices = new HashSet<String>(in.readList(StreamInput::readString));
  types = new HashSet<String>(in.readList(StreamInput::readString));
}
origin: floragunncom/search-guard

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  license = in.readOptionalWriteable(SearchGuardLicense::new);
  modules = new HashSet<>(in.readList(ModuleInfo::new));
}
origin: floragunncom/search-guard

public User(final StreamInput in) throws IOException {
  super();
  name = in.readString();
  roles.addAll(in.readList(StreamInput::readString));
  requestedTenant = in.readString();
  attributes = in.readMap(StreamInput::readString, StreamInput::readString);
}

origin: floragunncom/search-guard

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;
  
}
origin: org.elasticsearch/elasticsearch

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  snapshots = in.readList(Snapshot::new);
}
origin: org.elasticsearch/elasticsearch

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  tasks = Collections.unmodifiableList(in.readList(TaskInfo::new));
}
origin: org.elasticsearch/elasticsearch

/**
 * Read from a stream.
 */
public InternalGeoHashGrid(StreamInput in) throws IOException {
  super(in);
  requiredSize = readSize(in);
  buckets = in.readList(Bucket::new);
}
origin: org.elasticsearch/elasticsearch

@Override
public void readFrom(StreamInput in) throws IOException {
  aggregations = in.readList(stream -> in.readNamedWriteable(InternalAggregation.class));
  if (aggregations.isEmpty()) {
    aggregationsAsMap = emptyMap();
  }
}
origin: org.elasticsearch/elasticsearch

@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);
  }
}
origin: org.elasticsearch/elasticsearch

@Override
protected List<ClusterStatsNodeResponse> readNodesFrom(StreamInput in) throws IOException {
  List<ClusterStatsNodeResponse> nodes = in.readList(ClusterStatsNodeResponse::readNodeResponse);
  // built from nodes rather than from the stream directly
  nodesStats = new ClusterStatsNodes(nodes);
  indicesStats = new ClusterStatsIndices(nodes);
  return nodes;
}
origin: org.elasticsearch/elasticsearch

/**
 * Read from a stream.
 */
public InternalBinaryRange(StreamInput in) throws IOException {
  super(in);
  format = in.readNamedWriteable(DocValueFormat.class);
  keyed = in.readBoolean();
  buckets = in.readList(stream -> Bucket.createFromStream(stream, format, keyed));
}
origin: org.elasticsearch/elasticsearch

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  clusterName = new ClusterName(in);
  nodes = readNodesFrom(in);
  failures = in.readList(FailedNodeException::new);
}
origin: org.elasticsearch/elasticsearch

/**
 * Read from a stream.
 */
public FunctionScoreQueryBuilder(StreamInput in) throws IOException {
  super(in);
  query = in.readNamedWriteable(QueryBuilder.class);
  filterFunctionBuilders = in.readList(FilterFunctionBuilder::new).toArray(new FilterFunctionBuilder[0]);
  maxBoost = in.readFloat();
  minScore = in.readOptionalFloat();
  boostMode = in.readOptionalWriteable(CombineFunction::readFromStream);
  scoreMode = FunctionScoreQuery.ScoreMode.readFromStream(in);
}
origin: org.elasticsearch/elasticsearch

public Mem(StreamInput in) throws IOException {
  heapCommitted = in.readVLong();
  heapUsed = in.readVLong();
  nonHeapCommitted = in.readVLong();
  nonHeapUsed = in.readVLong();
  heapMax = in.readVLong();
  pools = in.readList(MemoryPool::new);
}
origin: org.elasticsearch/elasticsearch

protected InternalMappedSignificantTerms(StreamInput in, Bucket.Reader<B> bucketReader) throws IOException {
  super(in);
  format = in.readNamedWriteable(DocValueFormat.class);
  subsetSize = in.readVLong();
  supersetSize = in.readVLong();
  significanceHeuristic = in.readNamedWriteable(SignificanceHeuristic.class);
  buckets = in.readList(stream -> bucketReader.read(stream, subsetSize, supersetSize, format));
}
origin: org.elasticsearch/elasticsearch

/**
 * Read from a stream.
 */
protected InternalMappedTerms(StreamInput in, Bucket.Reader<B> bucketReader) throws IOException {
  super(in);
  docCountError = in.readZLong();
  format = in.readNamedWriteable(DocValueFormat.class);
  shardSize = readSize(in);
  showTermDocCountError = in.readBoolean();
  otherDocCount = in.readVLong();
  buckets = in.readList(stream -> bucketReader.read(stream, format, showTermDocCountError));
}
origin: org.elasticsearch/elasticsearch

public JvmStats(StreamInput in) throws IOException {
  timestamp = in.readVLong();
  uptime = in.readVLong();
  mem = new Mem(in);
  threads = new Threads(in);
  gc = new GarbageCollectors(in);
  bufferPools = in.readList(BufferPool::new);
  classes = new Classes(in);
}
origin: org.elasticsearch/elasticsearch

/**
 * Read from a stream.
 */
public HighlightBuilder(StreamInput in) throws IOException {
  super(in);
  encoder(in.readOptionalString());
  useExplicitFieldOrder(in.readBoolean());
  this.fields = in.readList(Field::new);
  assert this.equals(new HighlightBuilder(this, highlightQuery, fields)) : "copy constructor is broken";
}
org.elasticsearch.common.io.streamStreamInputreadList

Javadoc

Reads a list of objects

Popular methods of StreamInput

  • readString
  • readVInt
    Reads an int stored in variable-length format. Reads between one and five bytes. Smaller values take
  • readBoolean
  • readOptionalString
  • readVLong
    Reads a long stored in variable-length format. Reads between one and ten bytes. Smaller values take
  • readInt
    Reads four bytes and returns an int.
  • readBytesReference
    Reads a bytes reference from this stream, might hold an actual reference to the underlying bytes of
  • getVersion
    The version of the node on the other side of this stream.
  • readLong
    Reads eight bytes and returns a long.
  • readMap
  • readOptionalWriteable
  • readStringArray
  • readOptionalWriteable,
  • readStringArray,
  • readByte,
  • readGenericValue,
  • readNamedWriteable,
  • readBytesRef,
  • readFloat,
  • readOptionalBytesReference,
  • read

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • findViewById (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now