object SaveToHadoop
- Alphabetic
- By Inheritance
- SaveToHadoop
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
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
-
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
-
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
-
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
-
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
-
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