Tabnine Logo
org.elasticsearch.common.io.stream
Code IndexAdd Tabnine to your IDE (free)

How to use org.elasticsearch.common.io.stream

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

origin: floragunncom/search-guard

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeEnum(moduleType);
  out.writeString(classname);
  out.writeString(classpath);
  out.writeString(version);
  out.writeString(buildTime);
  out.writeString(gitsha1);
}

origin: floragunncom/search-guard

public ModuleInfo(final StreamInput in) throws IOException {
  moduleType = in.readEnum(ModuleType.class);
  classname = in.readString();
  classpath = in.readString();
  version = in.readString();
  buildTime = in.readString();
  gitsha1 = in.readString();
  assert(moduleType != null);
}
origin: floragunncom/search-guard

  @Override
  public void writeNodesTo(final StreamOutput out, List<ConfigUpdateNodeResponse> nodes) throws IOException {
    out.writeStreamableList(nodes);
  }
}
origin: floragunncom/search-guard

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeString(uid);
  out.writeEnum(type);
  out.writeString(issueDate);
  out.writeString(expiryDate);
  out.writeString(issuedTo);
  out.writeString(issuer);
  out.writeString(startDate);
  out.writeOptionalVInt(majorVersion);
  out.writeString(clusterName);
  out.writeInt(allowedNodeCount);
  out.writeStringList(msgs);
  out.writeLong(expiresInDays);
  out.writeBoolean(isExpired);
  out.writeBoolean(valid);
  out.writeString(action);
  out.writeString(prodUsage);
  out.writeArray(StreamOutput::writeEnum, features==null?new Feature[0]:features);
}

origin: floragunncom/search-guard

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  dn = in.readString();
  isAdmin = in.readBoolean();
  isAuthenticated = in.readBoolean();
  isNodeCertificateRequest = in.readBoolean();
}
origin: floragunncom/search-guard

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeString(dn);
  out.writeBoolean(isAdmin);
  out.writeBoolean(isAuthenticated);
  out.writeBoolean(isNodeCertificateRequest);
}
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

@Override
public void writeTo(StreamOutput out) throws IOException {
  out.writeString(name);
  out.writeStringList(new ArrayList<String>(roles));
  out.writeString(requestedTenant);
  out.writeMap(attributes, StreamOutput::writeString, StreamOutput::writeString);
}
origin: floragunncom/search-guard

@Override
public void readFrom(StreamInput in) throws IOException {
  super.readFrom(in);
  updatedConfigTypes = in.readStringArray();
  message = in.readOptionalString();
}
origin: floragunncom/search-guard

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeStringArray(updatedConfigTypes);
  out.writeOptionalString(message);
}
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

@Override
public void writeTo(StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeOptionalWriteable(license);
  out.writeList(new LinkedList<>(modules));
}
origin: floragunncom/search-guard

@Override
public void writeTo(final StreamOutput out) throws IOException {
  super.writeTo(out);
  out.writeStringArray(configTypes);
}
origin: floragunncom/search-guard

@Override
public void readFrom(final StreamInput in) throws IOException {
  super.readFrom(in);
  this.configTypes = in.readStringArray();
}
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 Feature read(StreamInput in) throws IOException {
  return in.readEnum(Feature.class);
}}, Feature[]::new);
origin: floragunncom/search-guard

  @Override
  public void writeTo(StreamOutput out) throws IOException {
    out.writeStringList(new ArrayList<>(aliases));
    out.writeStringList(new ArrayList<>(indices));
    out.writeStringList(new ArrayList<>(allIndices));
    out.writeStringList(new ArrayList<>(types));
  }
}
origin: floragunncom/search-guard

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

@Override
public void writeNodesTo(final StreamOutput out, List<LicenseInfoNodeResponse> nodes) throws IOException {
  out.writeStreamableList(nodes);
}
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));
}
org.elasticsearch.common.io.stream

Most used classes

  • StreamInput
  • StreamOutput
  • BytesStreamOutput
    A @link StreamOutput that uses BigArrays to acquire pages of bytes, which avoids frequent reallocati
  • NamedWriteableAwareStreamInput
    Wraps a StreamInput and associates it with a NamedWriteableRegistry
  • ReleasableBytesStreamOutput
    An bytes stream output that allows providing a BigArrays instance expecting it to require releasing
  • NamedWriteableRegistry,
  • InputStreamStreamInput,
  • OutputStreamStreamOutput,
  • Streamable,
  • Writeable,
  • BytesStreamInput,
  • NamedWriteable,
  • NamedWriteableRegistry$Entry,
  • NotSerializableExceptionWrapper,
  • Writeable$Reader,
  • BytesStream,
  • Writeable$Writer,
  • CachedStreamInput,
  • VersionedNamedWriteable
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