Tabnine Logo
ClusterBlocks.readBlockSet
Code IndexAdd Tabnine to your IDE (free)

How to use
readBlockSet
method
in
org.elasticsearch.cluster.block.ClusterBlocks

Best Java code snippets using org.elasticsearch.cluster.block.ClusterBlocks.readBlockSet (Showing top 5 results out of 315)

origin: org.elasticsearch/elasticsearch

public ClusterBlocks(StreamInput in) throws IOException {
  Set<ClusterBlock> global = readBlockSet(in);
  int size = in.readVInt();
  ImmutableOpenMap.Builder<String, Set<ClusterBlock>> indicesBuilder = ImmutableOpenMap.builder(size);
  for (int j = 0; j < size; j++) {
    indicesBuilder.put(in.readString().intern(), readBlockSet(in));
  }
  this.global = global;
  this.indicesBlocks = indicesBuilder.build();
  levelHolders = generateLevelHolders(global, indicesBlocks);
}
origin: apache/servicemix-bundles

public ClusterBlocks(StreamInput in) throws IOException {
  Set<ClusterBlock> global = readBlockSet(in);
  int size = in.readVInt();
  ImmutableOpenMap.Builder<String, Set<ClusterBlock>> indicesBuilder = ImmutableOpenMap.builder(size);
  for (int j = 0; j < size; j++) {
    indicesBuilder.put(in.readString().intern(), readBlockSet(in));
  }
  this.global = global;
  this.indicesBlocks = indicesBuilder.build();
  levelHolders = generateLevelHolders(global, indicesBlocks);
}
origin: harbby/presto-connectors

@Override
public ClusterBlocks readFrom(StreamInput in) throws IOException {
  ImmutableSet<ClusterBlock> global = readBlockSet(in);
  ImmutableMap.Builder<String, ImmutableSet<ClusterBlock>> indicesBuilder = ImmutableMap.builder();
  int size = in.readVInt();
  for (int j = 0; j < size; j++) {
    indicesBuilder.put(in.readString().intern(), readBlockSet(in));
  }
  return new ClusterBlocks(global, indicesBuilder.build());
}
origin: com.strapdata.elasticsearch/elasticsearch

public ClusterBlocks(StreamInput in) throws IOException {
  Set<ClusterBlock> global = readBlockSet(in);
  int size = in.readVInt();
  ImmutableOpenMap.Builder<String, Set<ClusterBlock>> indicesBuilder = ImmutableOpenMap.builder(size);
  for (int j = 0; j < size; j++) {
    indicesBuilder.put(in.readString().intern(), readBlockSet(in));
  }
  this.global = global;
  this.indicesBlocks = indicesBuilder.build();
  levelHolders = generateLevelHolders(global, indicesBlocks);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

public ClusterBlocks(StreamInput in) throws IOException {
  Set<ClusterBlock> global = readBlockSet(in);
  int size = in.readVInt();
  ImmutableOpenMap.Builder<String, Set<ClusterBlock>> indicesBuilder = ImmutableOpenMap.builder(size);
  for (int j = 0; j < size; j++) {
    indicesBuilder.put(in.readString().intern(), readBlockSet(in));
  }
  this.global = global;
  this.indicesBlocks = indicesBuilder.build();
  levelHolders = generateLevelHolders(global, indicesBlocks);
}
org.elasticsearch.cluster.blockClusterBlocksreadBlockSet

Popular methods of ClusterBlocks

  • globalBlockedException
  • indicesBlockedException
  • builder
  • globalBlockedRaiseException
  • indexBlockedException
  • <init>
  • diff
  • disableStatePersistence
    Returns true if one of the global blocks as its disable state persistence flag set.
  • global
  • globalBlocked
  • hasGlobalBlock
    Is there a global block with the provided status?
  • indexBlocked
  • hasGlobalBlock,
  • indexBlocked,
  • indexBlockedRaiseException,
  • indices,
  • readDiffFrom,
  • writeBlockSet,
  • writeTo,
  • blocksForIndex,
  • generateLevelHolders

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
  • Kernel (java.awt.image)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Notification (javax.management)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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