object SaveToHadoop

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SaveToHadoop
  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, toBytes: (K, V) ⇒ Array[Byte]): Long

    Saves to Hadoop FileSystem, returns an count of records saved.

    Saves to Hadoop FileSystem, returns an count of records saved.

    keyToUri

    A function from K (a key) to a Hadoop URI

    toBytes

    A function from record to array of bytes

  2. def apply[K](rdd: RDD[(K, Array[Byte])], keyToUri: (K) ⇒ String): Long

    Saves to Hadoop FileSystem, returns an count of records saved.

    Saves to Hadoop FileSystem, returns an count of records saved.

    keyToUri

    A function from K (a key) to a Hadoop URI

  3. def saveIterator[K, V](recs: Iterator[(K, V)], keyToUri: (K) ⇒ String, conf: Configuration)(toBytes: (K, V) ⇒ Array[Byte]): Iterator[(K, V)]

    Saves records from an iterator and returns them unchanged.

    Saves records from an iterator and returns them unchanged.

    recs

    Key, Value records to be saved

    keyToUri

    A function from K (a key) to Hadoop URI

    conf

    Hadoop Configuration to used to get FileSystem

    toBytes

    A function from record to array of bytes

  4. def setup[K, V](rdd: RDD[(K, V)], keyToUri: (K) ⇒ String, toBytes: (K, V) ⇒ Array[Byte]): RDD[(K, V)]

    Sets up saving to Hadoop, but returns an RDD so that writes can be chained.

    Sets up saving to Hadoop, but returns an RDD so that writes can be chained.

    keyToUri

    A function from K (a key) to a Hadoop URI

    toBytes

    A function from record to array of bytes

  5. def setup[K](rdd: RDD[(K, Array[Byte])], keyToUri: (K) ⇒ String): RDD[(K, Array[Byte])]

    Sets up saving to Hadoop, but returns an RDD so that writes can be chained.

    Sets up saving to Hadoop, but returns an RDD so that writes can be chained.

    keyToUri

    A function from K (a key) to a Hadoop URI

  6. 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 a Hadoop URI

    returns

    A functon which takes a spatial key and returns a Hadoop URI