net.snowflake.spark.snowflake

Utils

object Utils

Various arbitrary helper functions

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Utils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val SNOWFLAKE_SOURCE_NAME: String

    Literal to be used with the Spark DataFrame's .

    Literal to be used with the Spark DataFrame's .format method

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def checkFileSystem(uri: URI, hadoopConfig: Configuration): Unit

    Given a URI, verify that the Hadoop FileSystem for that URI is not the S3 block FileSystem.

    Given a URI, verify that the Hadoop FileSystem for that URI is not the S3 block FileSystem. spark-snowflakedb cannot use this FileSystem because the files written to it will not be readable by Snowflake (and vice versa).

  9. def checkThatBucketHasObjectLifecycleConfiguration(tempDir: String, tempDirStorageType: FSType, s3Client: AmazonS3Client): Unit

    Checks whether the S3 bucket for the given UI has an object lifecycle configuration to ensure cleanup of temporary files.

    Checks whether the S3 bucket for the given UI has an object lifecycle configuration to ensure cleanup of temporary files. If no applicable configuration is found, this method logs a helpful warning for the user.

  10. def classForName(className: String): Class[_]

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def fixS3Url(url: String): String

    Snowflake COPY and UNLOAD commands don't support s3n or s3a, but users may wish to use them for data loads.

    Snowflake COPY and UNLOAD commands don't support s3n or s3a, but users may wish to use them for data loads. This function converts the URL back to the s3:// format.

  16. def fixUrlForCopyCommand(url: String): String

    Converts url for the copy command.

    Converts url for the copy command. For S3, convert s3a|s3n to s3. For Azure, convert the wasb: url to azure: url.

    url

    the url to be used in hadoop/spark

    returns

    the url to be used in Snowflake

  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def getJDBCConnection(params: Map[String, String]): Connection

  19. def getLastGetCommand: String

  20. def getLastPutCommand: String

  21. def getLastSelect: String

  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. def joinUrls(a: String, b: String): String

    Joins prefix URL a to path suffix b, and appends a trailing /, in order to create a temp directory path for S3.

  25. def makeTempPath(tempRoot: String): String

    Creates a randomly named temp directory path for intermediate data

  26. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. def printQuery(params: Map[String, String], query: String): Unit

  30. def readMapFromFile(sc: SparkContext, file: String): Map[String, String]

  31. def readMapFromString(string: String): Map[String, String]

    Same as readMapFromFile, but accepts the file content as an argument

  32. def removeCredentialsFromURI(uri: URI): URI

    Returns a copy of the given URI with the user credentials removed.

  33. def runQuery(params: Map[String, String], query: String): ResultSet

  34. def sanitizeQueryText(q: String): String

    Removes (hopefully :)) sensitive content from a query string

  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  36. def toString(): String

    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped