@VisibleForTesting public class VoidBlobWriter extends Object implements BlobWriter
LOG| Constructor and Description |
|---|
VoidBlobWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deletePermanent(org.apache.flink.api.common.JobID jobId,
PermanentBlobKey key)
Delete the uploaded data with the given
JobID and PermanentBlobKey. |
static VoidBlobWriter |
getInstance() |
int |
getMinOffloadingSize()
Returns the min size before data will be offloaded to the BLOB store.
|
PermanentBlobKey |
putPermanent(org.apache.flink.api.common.JobID jobId,
byte[] value)
Uploads the data of the given byte array for the given job to the BLOB server and makes it a
permanent BLOB.
|
PermanentBlobKey |
putPermanent(org.apache.flink.api.common.JobID jobId,
InputStream inputStream)
Uploads the data from the given input stream for the given job to the BLOB server and makes
it a permanent BLOB.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitserializeAndTryOffload, tryOffloadpublic PermanentBlobKey putPermanent(org.apache.flink.api.common.JobID jobId, byte[] value) throws IOException
BlobWriterputPermanent in interface BlobWriterjobId - the ID of the job the BLOB belongs tovalue - the buffer to uploadIOException - thrown if an I/O error occurs while writing it to a local file, or
uploading it to the HA storepublic PermanentBlobKey putPermanent(org.apache.flink.api.common.JobID jobId, InputStream inputStream) throws IOException
BlobWriterputPermanent in interface BlobWriterjobId - ID of the job this blob belongs toinputStream - the input stream to read the data fromIOException - thrown if an I/O error occurs while reading the data from the input
stream, writing it to a local file, or uploading it to the HA storepublic boolean deletePermanent(org.apache.flink.api.common.JobID jobId,
PermanentBlobKey key)
BlobWriterJobID and PermanentBlobKey.deletePermanent in interface BlobWriterjobId - ID of the job this blob belongs tokey - the key of this blobpublic int getMinOffloadingSize()
BlobWritergetMinOffloadingSize in interface BlobWriterpublic static VoidBlobWriter getInstance()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.