object SaveToS3

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SaveToS3
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply[K, V](rdd: RDD[(K, V)], keyToUri: (K) ⇒ String, putObjectModifier: (PutObjectRequest) ⇒ PutObjectRequest = p => p, s3Client: ⇒ S3Client = S3ClientProducer.get(), runtime: ⇒ IORuntime = IORuntimeTransient.IORuntime)(implicit ev: (V) ⇒ Array[Byte]): Unit

    rdd

    An RDD of K, Byte-Array pairs (where the byte-arrays contains image data) to send to S3

    keyToUri

    A function that maps each key to full s3 uri

    putObjectModifier

    Function that will be applied ot S3 PutObjectRequests, so that they can be modified (e.g. to change the ACL settings)

    s3Client

    A function which returns an S3 Client (real or mock) into-which to save the data

    runtime

    A function to get IORuntime

  2. def spatialKeyToPath(id: LayerId, pathTemplate: String): (SpatialKey) ⇒ String

    id

    A Layer ID

    pathTemplate

    The template used to convert a Layer ID and a SpatialKey into an S3 URI

    returns

    A functon which takes a spatial key and returns an S3 URI