class SparkContextJavaFunctions extends AnyRef
Java API for bridging SparkContextFunctions
functionality into Java code
- Alphabetic
- By Inheritance
- SparkContextJavaFunctions
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SparkContextJavaFunctions(sparkContext: SparkContext)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tarantoolSpace[R](spaceName: String, conditions: Conditions, tupleConverter: SerializableFunction[TarantoolTuple, R], targetClass: Class[R]): TarantoolJavaRDD[R]
Load data from Tarantool space.
Load data from Tarantool space.
The resulting tuples are converted into instances of the specified type using the provided converter.
- spaceName
Tarantool space name
- conditions
filtering conditions for space
- tupleConverter
custom converter from Tarantool tuples to a target entity class
- targetClass
target entity class
- returns
instance of
TarantoolJavaRDD
- def tarantoolSpace[R](spaceName: String, conditions: Conditions, tupleConverterFactory: TupleConverterFactory[R]): TarantoolJavaRDD[R]
Load data from a Tarantool space, filtering them with the specified conditions.
Load data from a Tarantool space, filtering them with the specified conditions.
Tarantool tuples are converted into the target entity type using a converter provided by the specified tuple converter factory.
- spaceName
Tarantool space name
- conditions
space filtering conditions
- tupleConverterFactory
provides the converter of
TarantoolTuple
into the target entity typeR
- returns
instance of
TarantoolReadRDD
- def tarantoolSpace(spaceName: String, conditions: Conditions): TarantoolJavaRDD[TarantoolTuple]
Load data from a Tarantool space, filtering them with the specified conditions.
Load data from a Tarantool space, filtering them with the specified conditions. The resulting RDD is filled with
TarantoolTuple
.Example:
local crud = require('crud') crud.insert('test_space', {1, nil, 'a1', 'Don Quixote', 'Miguel de Cervantes', 1605}) crud.insert('test_space', {2, nil, 'a2', 'The Great Gatsby', 'F. Scott Fitzgerald', 1925}) crud.insert('test_space', {3, nil, 'a3', 'War and Peace', 'Leo Tolstoy', 1869}) ... TarantoolJavaRDD
rdd = TarantoolSpark.contextFunctions(jsc) .tarantoolSpace("test_space", Conditions.indexGreaterThan("id", Collections.singletonList(1))); rdd.first().getInteger("id"); // 1 rdd.first().getString("author"); // "Miguel de Cervantes" - spaceName
Tarantool space name
- conditions
space filtering conditions
- returns
instance of
TarantoolReadRDD
- def toJavaRDD[T](rdd: TarantoolReadRDD[T], targetClass: Class[T]): TarantoolJavaRDD[T]
Converts
TarantoolReadRDD
intoTarantoolJavaRDD
Converts
TarantoolReadRDD
intoTarantoolJavaRDD
- rdd
TarantoolReadRDD instance
- targetClass
target POJO class
- returns
TarantoolJavaRDD instance
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()