Tabnine Logo
BlobStore
Code IndexAdd Tabnine to your IDE (free)

How to use
BlobStore
in
org.apache.flink.runtime.blob

Best Java code snippets using org.apache.flink.runtime.blob.BlobStore (Showing top 14 results out of 315)

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

final boolean deletedHA = !cleanupBlobStoreFiles || blobStore.deleteAll(jobId);
origin: org.apache.flink/flink-runtime_2.10

try {
  blobStore.get(requiredBlob, localFile);
origin: org.apache.flink/flink-runtime

blobStore.put(storageFile, jobId, blobKey);
origin: org.apache.flink/flink-runtime_2.10

  blobStore.delete(key);
} finally {
  writeLock.unlock();
  blobStore.delete(jobID, key);
} finally {
  writeLock.unlock();
  blobStore.deleteAll(jobID);
} finally {
  writeLock.unlock();
origin: org.apache.flink/flink-runtime_2.10

/**
 * This method deletes the file associated to the blob key if it exists in the local storage
 * of the blob server.
 *
 * @param key associated with the file to be deleted
 * @throws IOException
 */
@Override
public void delete(BlobKey key) throws IOException {
  final File localFile = BlobUtils.getStorageLocation(storageDir, key);
  readWriteLock.writeLock().lock();
  try {
    if (localFile.exists()) {
      if (!localFile.delete()) {
        LOG.warn("Failed to delete locally BLOB " + key + " at " + localFile.getAbsolutePath());
      }
    }
    blobStore.delete(key);
  } finally {
    readWriteLock.writeLock().unlock();
  }
}
origin: org.apache.flink/flink-runtime

try {
  incomingFile = createTemporaryFilename();
  blobStore.get(jobId, blobKey, incomingFile);
origin: org.apache.flink/flink-runtime_2.11

blobStore.put(storageFile, jobId, blobKey);
origin: org.apache.flink/flink-runtime

final boolean deletedHA = !cleanupBlobStoreFiles || blobStore.deleteAll(jobId);
origin: com.alibaba.blink/flink-runtime

try {
  incomingFile = createTemporaryFilename();
  blobStore.get(jobId, blobKey, incomingFile);
origin: com.alibaba.blink/flink-runtime

blobStore.put(storageFile, jobId, blobKey);
origin: com.alibaba.blink/flink-runtime

final boolean deletedHA = !cleanupBlobStoreFiles || blobStore.deleteAll(jobId);
origin: org.apache.flink/flink-runtime_2.11

try {
  incomingFile = createTemporaryFilename();
  blobStore.get(jobId, blobKey, incomingFile);
origin: org.apache.flink/flink-runtime_2.10

blobStore.put(storageFile, jobID, key);
blobStore.put(storageFile, blobKey);
origin: org.apache.flink/flink-runtime_2.10

} else {
  if (contentAddressable == NAME_ADDRESSABLE) {
    blobStore.get(jobId, key, blobFile);
  } else if (contentAddressable == CONTENT_ADDRESSABLE) {
    blobStore.get(blobKey, blobFile);
  } else {
    throw new IOException("Unknown type of BLOB addressing: " + contentAddressable + '.');
org.apache.flink.runtime.blobBlobStore

Javadoc

A blob store.

Most used methods

  • deleteAll
    Tries to delete all blobs for the given job from storage.NOTE: This also tries to delete any created
  • get
  • put
    Copies the local file to the blob store.
  • delete
    Tries to delete a blob from storage.NOTE: This also tries to delete any created directories if empty

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 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