Tabnine Logo
BlobKey.readFromInputStream
Code IndexAdd Tabnine to your IDE (free)

How to use
readFromInputStream
method
in
org.apache.flink.runtime.blob.BlobKey

Best Java code snippets using org.apache.flink.runtime.blob.BlobKey.readFromInputStream (Showing top 9 results out of 315)

origin: org.apache.flink/flink-runtime_2.10

private BlobKey receivePutResponseAndCompare(InputStream is, MessageDigest md) throws IOException {
  int response = is.read();
  if (response < 0) {
    throw new EOFException("Premature end of response");
  }
  else if (response == RETURN_OKAY) {
    if (md == null) {
      // not content addressable
      return null;
    }
    BlobKey remoteKey = BlobKey.readFromInputStream(is);
    BlobKey localKey = new BlobKey(md.digest());
    if (!localKey.equals(remoteKey)) {
      throw new IOException("Detected data corruption during transfer");
    }
    return localKey;
  }
  else if (response == RETURN_ERROR) {
    Throwable cause = readExceptionFromStream(is);
    throw new IOException("Server side error: " + cause.getMessage(), cause);
  }
  else {
    throw new IOException("Unrecognized response: " + response + '.');
  }
}
origin: com.alibaba.blink/flink-runtime

BlobKey remoteKey = BlobKey.readFromInputStream(is);
byte[] localHash = md.digest();
origin: org.apache.flink/flink-runtime

BlobKey remoteKey = BlobKey.readFromInputStream(is);
byte[] localHash = md.digest();
origin: org.apache.flink/flink-runtime_2.11

BlobKey remoteKey = BlobKey.readFromInputStream(is);
byte[] localHash = md.digest();
origin: org.apache.flink/flink-runtime

  throw new IOException("Unknown type of BLOB addressing: " + mode + '.');
blobKey = BlobKey.readFromInputStream(inputStream);
origin: org.apache.flink/flink-runtime_2.11

  throw new IOException("Unknown type of BLOB addressing: " + mode + '.');
blobKey = BlobKey.readFromInputStream(inputStream);
origin: com.alibaba.blink/flink-runtime

  throw new IOException("Unknown type of BLOB addressing: " + mode + '.');
blobKey = BlobKey.readFromInputStream(inputStream);
origin: org.apache.flink/flink-runtime_2.10

blobKey = BlobKey.readFromInputStream(inputStream);
blobFile = blobServer.getStorageLocation(blobKey);
origin: org.apache.flink/flink-runtime_2.10

BlobKey key = BlobKey.readFromInputStream(inputStream);
File blobFile = blobServer.getStorageLocation(key);
org.apache.flink.runtime.blobBlobKeyreadFromInputStream

Javadoc

Auxiliary method to read a BLOB key from an input stream.

Popular methods of BlobKey

  • toString
  • writeToOutputStream
    Auxiliary method to write this BLOB key to an output stream.
  • createKey
    Returns the right BlobKey subclass for the given parameters.
  • getHash
    Returns the hash component of this key.
  • getType
    Returns the (internal) BLOB type which is reflected by the inheriting sub-class.
  • <init>
    Constructs a new BLOB key from the given byte array.
  • equals

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • From CI to AI: The AI layer in your organization
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