private static Collection<PermanentBlobKey> uploadUserJars(JobID jobId, Collection<Path> userJars, BlobClient blobClient) throws IOException { Collection<PermanentBlobKey> blobKeys = new ArrayList<>(userJars.size()); for (Path jar : userJars) { final PermanentBlobKey blobKey = blobClient.uploadFile(jobId, jar); blobKeys.add(blobKey); } return blobKeys; }
private static Collection<PermanentBlobKey> uploadUserJars(JobID jobId, Collection<Path> userJars, BlobClient blobClient) throws IOException { Collection<PermanentBlobKey> blobKeys = new ArrayList<>(userJars.size()); for (Path jar : userJars) { final PermanentBlobKey blobKey = blobClient.uploadFile(jobId, jar); blobKeys.add(blobKey); } return blobKeys; }
private static Collection<PermanentBlobKey> uploadUserJars(JobID jobId, Collection<Path> userJars, BlobClient blobClient) throws IOException { Collection<PermanentBlobKey> blobKeys = new ArrayList<>(userJars.size()); for (Path jar : userJars) { final PermanentBlobKey blobKey = blobClient.uploadFile(jobId, jar); blobKeys.add(blobKey); } return blobKeys; }
private static Collection<Tuple2<String, PermanentBlobKey>> uploadUserArtifacts(JobID jobID, Collection<Tuple2<String, Path>> userArtifacts, BlobClient blobClient) throws IOException { Collection<Tuple2<String, PermanentBlobKey>> blobKeys = new ArrayList<>(userArtifacts.size()); for (Tuple2<String, Path> userArtifact : userArtifacts) { // only upload local files if (!userArtifact.f1.getFileSystem().isDistributedFS()) { final PermanentBlobKey blobKey = blobClient.uploadFile(jobID, userArtifact.f1); blobKeys.add(Tuple2.of(userArtifact.f0, blobKey)); } } return blobKeys; }
private static Collection<Tuple2<String, PermanentBlobKey>> uploadUserArtifacts(JobID jobID, Collection<Tuple2<String, Path>> userArtifacts, BlobClient blobClient) throws IOException { Collection<Tuple2<String, PermanentBlobKey>> blobKeys = new ArrayList<>(userArtifacts.size()); for (Tuple2<String, Path> userArtifact : userArtifacts) { // only upload local files if (!userArtifact.f1.getFileSystem().isDistributedFS()) { final PermanentBlobKey blobKey = blobClient.uploadFile(jobID, userArtifact.f1); blobKeys.add(Tuple2.of(userArtifact.f0, blobKey)); } } return blobKeys; }
private static Collection<Tuple2<String, PermanentBlobKey>> uploadUserArtifacts(JobID jobID, Collection<Tuple2<String, Path>> userArtifacts, BlobClient blobClient) throws IOException { Collection<Tuple2<String, PermanentBlobKey>> blobKeys = new ArrayList<>(userArtifacts.size()); for (Tuple2<String, Path> userArtifact : userArtifacts) { // only upload local files if (!userArtifact.f1.getFileSystem().isDistributedFS()) { final PermanentBlobKey blobKey = blobClient.uploadFile(jobID, userArtifact.f1); blobKeys.add(Tuple2.of(userArtifact.f0, blobKey)); } } return blobKeys; }
final PermanentBlobKey key = blobClient.uploadFile(jobId, file); blobKeys.add(key);
final PermanentBlobKey key = blobClient.uploadFile(jobId, file); blobKeys.add(key);
final PermanentBlobKey key = blobClient.uploadFile(jobId, file); blobKeys.add(key);