• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JohnSnowLabs / spark-nlp / 7961349851

19 Feb 2024 02:47PM CUT coverage: 62.707%. First build
7961349851

Pull #14164

github

web-flow
Merge 3cff1f821 into 033847426
Pull Request #14164: release/530-release-candidate

8964 of 14295 relevant lines covered (62.71%)

0.63 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/scala/com/johnsnowlabs/client/CloudClient.scala
1
/*
2
 * Copyright 2017-2023 John Snow Labs
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *    http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
package com.johnsnowlabs.client
17

18
import java.io.InputStream
19

20
abstract class CloudClient {
21

22
  protected def cloudConnect(): CloudStorage
23

24
  def doesBucketPathExist(bucketName: String, filePath: String): Boolean
25

26
  def copyFileToBucket(
27
      bucketName: String,
28
      destinationPath: String,
29
      inputStream: InputStream): Unit = {
30
    val connection = cloudConnect()
×
31
    connection.copyFileToBucket(bucketName, destinationPath, inputStream)
×
32
  }
33

34
  def copyInputStreamToBucket(bucketName: String, filePath: String, sourceFilePath: String): Unit
35

36
  def downloadFilesFromBucketToDirectory(
37
      bucketName: String,
38
      filePath: String,
39
      directoryPath: String,
40
      isIndex: Boolean): Unit
41

42
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc