Package

org.zuinnote.spark.bitcoin

block

Permalink

package block

Author: Jörn Franke <zuinnote@gmail.com>

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

Type Members

  1. implicit class BitcoinBlockContext extends Serializable

    Permalink

    Adds a method, bitcoinBlockFile, to SQLContext that allows reading Bitcoin blockchain data as Bitcoin blocks.

  2. final case class BitcoinBlockRelation(location: String, maxBlockSize: Integer = ..., magic: String = ..., useDirectBuffer: Boolean = ..., isSplittable: Boolean = ..., readAuxPOW: Boolean = ..., enrich: Boolean = false)(sqlContext: SQLContext) extends BaseRelation with TableScan with Serializable with Product

    Permalink

    Author: Jörn Franke <zuinnote@gmail.com>

    Author: Jörn Franke <zuinnote@gmail.com>

    Defines the schema of a BitcoinBlock for Spark SQL

  3. class DefaultSource extends RelationProvider

    Permalink

    Author: Jörn Franke <zuinnote@gmail.com>

    Author: Jörn Franke <zuinnote@gmail.com>

    Defines a Spark data source for Bitcoin Blockchcain based on hadoopcryptoledgerlibrary. This is read-only for existing data. It returns BitcoinBlocks.

  4. class DefaultSource15 extends DefaultSource with DataSourceRegister

    Permalink

    Author: Jörn Franke <zuinnote@gmail.com> Extension of DefaultSource (which is Spark 1.3 and 1.4 compatible) for Spark 1.5 compatibility.

    Author: Jörn Franke <zuinnote@gmail.com> Extension of DefaultSource (which is Spark 1.3 and 1.4 compatible) for Spark 1.5 compatibility. Since the class is loaded through META-INF/services we can decouple the two to have Spark 1.5 byte-code loaded lazily.

    This trick is adapted from spark elasticsearch-hadoop data source: <https://github.com/elastic/elasticsearch-hadoop>

Inherited from AnyRef

Inherited from Any

Ungrouped