Object

net.snowflake.spark.snowflake

Utils

Related Doc: package snowflake

Permalink

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
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val SNOWFLAKE_SOURCE_NAME: String

    Permalink

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

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def assertThatFileSystemIsNotS3BlockFileSystem(uri: URI, hadoopConfig: Configuration): Unit

    Permalink

    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).

  7. def checkThatBucketHasObjectLifecycleConfiguration(tempDir: String, s3Client: AmazonS3Client): Unit

    Permalink

    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.

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

    Permalink
  9. def clone(): AnyRef

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

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

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

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

    Permalink

    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.

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

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

    Permalink
  16. def getLastSelect: String

    Permalink
  17. def hashCode(): Int

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

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

    Permalink

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

  20. def makeTempPath(tempRoot: String): String

    Permalink

    Creates a randomly named temp directory path for intermediate data

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

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

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

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

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

    Permalink

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

  27. def removeCredentialsFromURI(uri: URI): URI

    Permalink

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

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

    Permalink
  29. def sanitizeQueryText(q: String): String

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped