org.apache.ignite.scalar

scalar

object scalar extends ScalarConversions

________               ______                    ______   _______
__  ___/_____________ ____  /______ _________    __/__ \  __  __ \
_____ \ _  ___/_  __ `/__  / _  __ `/__  ___/    ____/ /  _  / / /
____/ / / /__  / /_/ / _  /  / /_/ / _  /        _  __/___/ /_/ /
/____/  \___/  \__,_/  /_/   \__,_/  /_/         /____/_(_)____/

Overview

scalar is the main object that encapsulates Scalar DSL. It includes global functions on "scalar" keyword, helper converters as well as necessary implicit conversions. scalar also mimics many methods in Ignite class from Java side.

The idea behind Scalar DSL - zero additional logic and only conversions implemented using Scala "Pimp" pattern. Note that most of the Scalar DSL development happened on Java side of Ignite 3.0 product line - Java APIs had to be adjusted quite significantly to support natural adaptation of functional APIs. That basically means that all functional logic must be available on Java side and Scalar only provides conversions from Scala language constructs to Java constructs. Note that currently Ignite supports Scala 2.8 and up only.

This design approach ensures that Java side does not starve and usage paradigm is mostly the same between Java and Scala - yet with full power of Scala behind. In other words, Scalar only adds Scala specifics, but not greatly altering semantics of how Ignite APIs work. Most of the time the code in Scalar can be written in Java in almost the same number of lines.

Suffix '$' In Names

Symbol $ is used in names when they conflict with the names in the base Java class that Scala pimp is shadowing or with Java package name that your Scala code is importing. Instead of giving two different names to the same function we've decided to simply mark Scala's side method with $ suffix.

Importing

Scalar needs to be imported in a proper way so that necessary objects and implicit conversions got available in the scope:

import org.apache.ignite.scalar._
import scalar._
This way you import object scalar as well as all methods declared or inherited in that object as well.

Examples

Here are few short examples of how Scalar can be used to program routine distributed task. All examples below use default Ignite configuration and default grid. All these examples take an implicit advantage of auto-discovery and failover, load balancing and collision resolution, zero deployment and many other underlying technologies in the Ignite - while remaining absolutely distilled to the core domain logic.

This code snippet prints out full topology:

scalar {
    grid$ foreach (n => println("Node: " + n.id8))
}
The obligatory example - cloud enabled Hello World!. It splits the phrase into multiple words and prints each word on a separate grid node:
scalar {
    grid$ *< (SPREAD, (for (w <- "Hello World!".split(" ")) yield () => println(w)))
}
This example broadcasts message to all nodes:
scalar {
    grid$ *< (BROADCAST, () => println("Broadcasting!!!"))
}
This example "greets" remote nodes only (note usage of Java-side closure):
scalar {
    val me = grid$.localNode.id
    grid$.remoteProjection() *< (BROADCAST, F.println("Greetings from: " + me))
}

Next example creates a function that calculates lengths of the string using MapReduce type of processing by splitting the input string into multiple substrings, calculating each substring length on the remote node and aggregating results for the final length of the original string:

def count(msg: String) =
    grid$ @< (SPREAD, for (w <- msg.split(" ")) yield () => w.length, (s: Seq[Int]) => s.sum)
This example shows a simple example of how Scalar can be used to work with in-memory data grid:
scalar {
    val t = cache$[Symbol, Double]("partitioned")
    t += ('symbol -> 2.0)
    t -= ('symbol)
}

Linear Supertypes
ScalarConversions, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. scalar
  2. ScalarConversions
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type ScalarCacheQuerySqlField = org.apache.ignite.cache.query.annotations.QuerySqlField @scala.annotation.meta.field

    Type alias for QuerySqlField.

  2. type ScalarCacheQueryTextField = org.apache.ignite.cache.query.annotations.QueryTextField @scala.annotation.meta.field

    Type alias for QueryTextField.

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef ? Any
  2. final def ##(): Int

    Definition Classes
    AnyRef ? Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef ? Any
  4. implicit def absClosureDotScala(f: GridAbsClosure): AnyRef { def scala: () => Unit }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    f

    Java-side absolute closure to pimp.

    Definition Classes
    ScalarConversions
  5. implicit def absClosureXDotScala(f: GridAbsClosureX): AnyRef { def scala: () => Unit }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    f

    Java-side absolute closure to pimp.

    Definition Classes
    ScalarConversions
  6. implicit def absPredicateDotScala(p: GridAbsPredicate): AnyRef { def scala: () => Boolean }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    p

    Java-side predicate to pimp.

    Definition Classes
    ScalarConversions
  7. implicit def absPredicateXDotScala(p: GridAbsPredicateX): AnyRef { def scala: () => Boolean }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    p

    Java-side predicate to pimp.

    Definition Classes
    ScalarConversions
  8. def apply(springCfgUrl: URL)(body: ? Unit): Unit

    Executes given closure within automatically managed grid instance.

    Executes given closure within automatically managed grid instance.

    springCfgUrl

    Spring XML configuration file URL.

    body

    Closure to execute within automatically managed grid instance.

  9. def apply(cfg: IgniteConfiguration)(body: ? Unit): Unit

    Executes given closure within automatically managed grid instance.

    Executes given closure within automatically managed grid instance.

    cfg

    Grid configuration instance.

    body

    Closure to execute within automatically managed grid instance.

  10. def apply(springCfgPath: String)(body: ? Unit): Unit

    Executes given closure within automatically managed grid instance.

    Executes given closure within automatically managed grid instance.

    springCfgPath

    Spring XML configuration file path or URL.

    body

    Closure to execute within automatically managed grid instance.

  11. def apply(body: ? Unit): Unit

    Executes given closure within automatically managed default grid instance.

    Executes given closure within automatically managed default grid instance. If default grid is already started the passed in closure will simply execute.

    body

    Closure to execute within automatically managed grid instance.

  12. def apply[T](body: ? T): T

    Executes given closure within automatically managed default grid instance.

    Executes given closure within automatically managed default grid instance. If default grid is already started the passed in closure will simply execute.

    body

    Closure to execute within automatically managed default grid instance.

  13. def apply[T](body: (Ignite) ? T): T

    Executes given closure within automatically managed default grid instance.

    Executes given closure within automatically managed default grid instance. If default grid is already started the passed in closure will simply execute.

    body

    Closure to execute within automatically managed default grid instance.

  14. def apply(body: (Ignite) ? Unit): Unit

    Executes given closure within automatically managed default grid instance.

    Executes given closure within automatically managed default grid instance. If default grid is already started the passed in closure will simply execute.

    body

    Closure to execute within automatically managed default grid instance.

  15. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  16. def cache$[K, V](gridName: String, cacheName: String): Option[IgniteCache[K, V]]

    Gets named cache from specified grid.

    Gets named cache from specified grid.

    gridName

    Name of the grid.

    cacheName

    Name of the cache to get.

    Annotations
    @inline()
  17. def cache$[K, V](cacheName: String): Option[IgniteCache[K, V]]

    Gets named cache from default grid.

    Gets named cache from default grid.

    cacheName

    Name of the cache to get.

    Annotations
    @inline()
  18. def cache$[K, V]: Option[IgniteCache[K, V]]

    Gets default cache.

    Gets default cache.

    Note that you always need to provide types when calling this function - otherwise Scala will create Cache[Nothing, Nothing] typed instance that cannot be used.

    Annotations
    @inline()
  19. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. implicit def closure2DotScala[A1, A2, R](f: IgniteBiClosure[A1, A2, R]): AnyRef { def scala: (A1, A2) => R }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    f

    Java-side closure to pimp.

    Definition Classes
    ScalarConversions
  21. implicit def closure2XDotScala[A1, A2, R](f: IgniteClosure2X[A1, A2, R]): AnyRef { def scala: (A1, A2) => R }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    f

    Java-side closure to pimp.

    Definition Classes
    ScalarConversions
  22. implicit def closure3DotScala[A1, A2, A3, R](f: GridClosure3[A1, A2, A3, R]): AnyRef { def scala: (A1, A2, A3) => R }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    f

    Java-side closure to pimp.

    Definition Classes
    ScalarConversions
  23. implicit def closure3XDotScala[A1, A2, A3, R](f: GridClosure3X[A1, A2, A3, R]): AnyRef { def scala: (A1, A2, A3) => R }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    f

    Java-side closure to pimp.

    Definition Classes
    ScalarConversions
  24. implicit def closureDotScala[A, R](f: IgniteClosure[A, R]): AnyRef { def scala: A => R }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    f

    Java-side closure to pimp.

    Definition Classes
    ScalarConversions
  25. implicit def closureXDotScala[A, R](f: IgniteClosureX[A, R]): AnyRef { def scala: A => R }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    f

    Java-side closure to pimp.

    Definition Classes
    ScalarConversions
  26. def createCache$[K, V](cacheName: String, cacheMode: CacheMode = CacheMode.PARTITIONED, indexedTypes: Seq[Class[_]] = Seq.empty): IgniteCache[K, V]

    Creates cache cache with specified parameters in default grid.

    Creates cache cache with specified parameters in default grid.

    cacheName

    Name of the cache to get.

    Annotations
    @inline()
  27. def daemon(f: Boolean): Unit

    Sets daemon flag to grid factory.

    Sets daemon flag to grid factory. Note that this method should be called before grid instance starts.

    f

    Daemon flag to set.

  28. def dataStreamer$[K, V](cacheName: String, bufSize: Int): IgniteDataStreamer[K, V]

    Gets a new instance of data streamer associated with given cache name.

    Gets a new instance of data streamer associated with given cache name.

    cacheName

    Cache name (null for default cache).

    bufSize

    Per node buffer size.

    returns

    New instance of data streamer.

    Annotations
    @inline()
  29. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  30. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef ? Any
  31. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  32. implicit def fromAbsClosure(f: GridAbsClosure): () ? Unit

    Implicit converter from GridAbsClosure to Scala wrapping function.

    Implicit converter from GridAbsClosure to Scala wrapping function.

    f

    Grid closure to convert.

    Definition Classes
    ScalarConversions
  33. implicit def fromAbsClosureX(f: GridAbsClosureX): () ? Unit

    Implicit converter from GridAbsClosureX to Scala wrapping function.

    Implicit converter from GridAbsClosureX to Scala wrapping function.

    f

    Grid closure to convert.

    Definition Classes
    ScalarConversions
  34. implicit def fromAbsPredicate(p: GridAbsPredicate): () ? Boolean

    Implicit converter from GridAbsPredicate to Scala wrapping predicate.

    Implicit converter from GridAbsPredicate to Scala wrapping predicate.

    p

    Grid predicate to convert.

    Definition Classes
    ScalarConversions
  35. implicit def fromAbsPredicateX(p: GridAbsPredicateX): () ? Boolean

    Implicit converter from GridAbsPredicateX to Scala wrapping predicate.

    Implicit converter from GridAbsPredicateX to Scala wrapping predicate.

    p

    Grid predicate to convert.

    Definition Classes
    ScalarConversions
  36. implicit def fromClosure[A, R](f: IgniteClosure[A, R]): (A) ? R

    Implicit converter from GridClosure to Scala wrapping closure.

    Implicit converter from GridClosure to Scala wrapping closure.

    f

    Grid closure to convert.

    Definition Classes
    ScalarConversions
  37. implicit def fromClosure2[A1, A2, R](f: IgniteBiClosure[A1, A2, R]): (A1, A2) ? R

    Implicit converter from GridClosure2X to Scala wrapping closure.

    Implicit converter from GridClosure2X to Scala wrapping closure.

    f

    Grid closure to convert.

    Definition Classes
    ScalarConversions
  38. implicit def fromClosure2X[A1, A2, R](f: IgniteClosure2X[A1, A2, R]): (A1, A2) ? R

    Implicit converter from GridClosure2X to Scala wrapping closure.

    Implicit converter from GridClosure2X to Scala wrapping closure.

    f

    Grid closure to convert.

    Definition Classes
    ScalarConversions
  39. implicit def fromClosure3[A1, A2, A3, R](f: GridClosure3[A1, A2, A3, R]): (A1, A2, A3) ? R

    Implicit converter from GridClosure3 to Scala wrapping closure.

    Implicit converter from GridClosure3 to Scala wrapping closure.

    f

    Grid closure to convert.

    Definition Classes
    ScalarConversions
  40. implicit def fromClosure3X[A1, A2, A3, R](f: GridClosure3X[A1, A2, A3, R]): (A1, A2, A3) ? R

    Implicit converter from GridClosure3X to Scala wrapping closure.

    Implicit converter from GridClosure3X to Scala wrapping closure.

    f

    Grid closure to convert.

    Definition Classes
    ScalarConversions
  41. implicit def fromClosureX[A, R](f: IgniteClosureX[A, R]): (A) ? R

    Implicit converter from GridClosureX to Scala wrapping closure.

    Implicit converter from GridClosureX to Scala wrapping closure.

    f

    Grid closure to convert.

    Definition Classes
    ScalarConversions
  42. implicit def fromInClosure[T](f: IgniteInClosure[T]): (T) ? Unit

    Implicit converter from GridInClosure to Scala wrapping function.

    Implicit converter from GridInClosure to Scala wrapping function.

    f

    Grid closure to convert.

    Definition Classes
    ScalarConversions
  43. implicit def fromInClosure2[T1, T2](f: IgniteBiInClosure[T1, T2]): (T1, T2) ? Unit

    Implicit converter from GridInClosure2 to Scala wrapping function.

    Implicit converter from GridInClosure2 to Scala wrapping function.

    f

    Grid closure to convert.

    Definition Classes
    ScalarConversions
  44. implicit def fromInClosure2X[T1, T2](f: IgniteInClosure2X[T1, T2]): (T1, T2) ? Unit

    Implicit converter from GridInClosure2X to Scala wrapping function.

    Implicit converter from GridInClosure2X to Scala wrapping function.

    f

    Grid closure to convert.

    Definition Classes
    ScalarConversions
  45. implicit def fromInClosure3[T1, T2, T3](f: GridInClosure3[T1, T2, T3]): (T1, T2, T3) ? Unit

    Implicit converter from GridInClosure3 to Scala wrapping function.

    Implicit converter from GridInClosure3 to Scala wrapping function.

    f

    Grid closure to convert.

    Definition Classes
    ScalarConversions
  46. implicit def fromInClosure3X[T1, T2, T3](f: GridInClosure3X[T1, T2, T3]): (T1, T2, T3) ? Unit

    Implicit converter from GridInClosure3X to Scala wrapping function.

    Implicit converter from GridInClosure3X to Scala wrapping function.

    f

    Grid closure to convert.

    Definition Classes
    ScalarConversions
  47. implicit def fromInClosureX[T](f: IgniteInClosureX[T]): (T) ? Unit

    Implicit converter from GridInClosureX to Scala wrapping function.

    Implicit converter from GridInClosureX to Scala wrapping function.

    f

    Grid closure to convert.

    Definition Classes
    ScalarConversions
  48. implicit def fromOutClosure[R](f: IgniteCallable[R]): () ? R

    Implicit converter from GridOutClosure to Scala wrapping function.

    Implicit converter from GridOutClosure to Scala wrapping function.

    f

    Grid closure to convert.

    Definition Classes
    ScalarConversions
  49. implicit def fromOutClosureX[R](f: IgniteOutClosureX[R]): () ? R

    Implicit converter from GridOutClosureX to Scala wrapping function.

    Implicit converter from GridOutClosureX to Scala wrapping function.

    f

    Grid closure to convert.

    Definition Classes
    ScalarConversions
  50. implicit def fromPredicate[T](p: IgnitePredicate[T]): (T) ? Boolean

    Implicit converter from GridPredicate to Scala wrapping predicate.

    Implicit converter from GridPredicate to Scala wrapping predicate.

    p

    Grid predicate to convert.

    Definition Classes
    ScalarConversions
  51. implicit def fromPredicate2[T1, T2](p: IgniteBiPredicate[T1, T2]): (T1, T2) ? Boolean

    Implicit converter from GridPredicate2X to Scala wrapping predicate.

    Implicit converter from GridPredicate2X to Scala wrapping predicate.

    p

    Grid predicate to convert.

    Definition Classes
    ScalarConversions
  52. implicit def fromPredicate2X[T1, T2](p: IgnitePredicate2X[T1, T2]): (T1, T2) ? Boolean

    Implicit converter from GridPredicate2X to Scala wrapping predicate.

    Implicit converter from GridPredicate2X to Scala wrapping predicate.

    p

    Grid predicate to convert.

    Definition Classes
    ScalarConversions
  53. implicit def fromPredicate3[T1, T2, T3](p: GridPredicate3[T1, T2, T3]): (T1, T2, T3) ? Boolean

    Implicit converter from GridPredicate3X to Scala wrapping predicate.

    Implicit converter from GridPredicate3X to Scala wrapping predicate.

    p

    Grid predicate to convert.

    Definition Classes
    ScalarConversions
  54. implicit def fromPredicate3X[T1, T2, T3](p: GridPredicate3X[T1, T2, T3]): (T1, T2, T3) ? Boolean

    Implicit converter from GridPredicate3X to Scala wrapping predicate.

    Implicit converter from GridPredicate3X to Scala wrapping predicate.

    p

    Grid predicate to convert.

    Definition Classes
    ScalarConversions
  55. implicit def fromPredicateX[T](p: IgnitePredicateX[T]): (T) ? Boolean

    Implicit converter from GridPredicate to Scala wrapping predicate.

    Implicit converter from GridPredicate to Scala wrapping predicate.

    p

    Grid predicate to convert.

    Definition Classes
    ScalarConversions
  56. implicit def fromReducer[E, R](r: IgniteReducer[E, R]): (Seq[E]) ? R

    Implicit converter from Java GridReducer to Scala function.

    Implicit converter from Java GridReducer to Scala function.

    r

    Java GridReducer to convert.

    Definition Classes
    ScalarConversions
  57. implicit def fromReducer2[E1, E2, R](r: IgniteReducer2[E1, E2, R]): (Seq[E1], Seq[E2]) ? R

    Implicit converter from Java GridReducer2 to Scala function.

    Implicit converter from Java GridReducer2 to Scala function.

    r

    Java GridReducer2 to convert.

    Definition Classes
    ScalarConversions
  58. implicit def fromReducer3[E1, E2, E3, R](r: IgniteReducer3[E1, E2, E3, R]): (Seq[E1], Seq[E2], Seq[E3]) ? R

    Implicit converter from Java GridReducer3 to Scala function.

    Implicit converter from Java GridReducer3 to Scala function.

    r

    Java GridReducer3 to convert.

    Definition Classes
    ScalarConversions
  59. implicit def fromSymbol(s: Symbol): String

    Converts from Symbol to String.

    Converts from Symbol to String.

    s

    Symbol to convert.

    Definition Classes
    ScalarConversions
  60. implicit def fromTuple2[A, B](t: IgniteBiTuple[A, B]): (A, B)

    Implicit converter from GridTuple2 to Scala tuple.

    Implicit converter from GridTuple2 to Scala tuple.

    t

    GridTuple2 to convert.

    Definition Classes
    ScalarConversions
  61. implicit def fromTuple3[A, B, C](t: GridTuple3[A, B, C]): (A, B, C)

    Implicit converter from GridTuple3 to Scala tuple.

    Implicit converter from GridTuple3 to Scala tuple.

    t

    GridTuple3 to convert.

    Definition Classes
    ScalarConversions
  62. implicit def fromTuple4[A, B, C, D](t: GridTuple4[A, B, C, D]): (A, B, C, D)

    Implicit converter from GridTuple4 to Scala tuple.

    Implicit converter from GridTuple4 to Scala tuple.

    t

    GridTuple4 to convert.

    Definition Classes
    ScalarConversions
  63. implicit def fromTuple5[A, B, C, D, E](t: GridTuple5[A, B, C, D, E]): (A, B, C, D, E)

    Implicit converter from GridTuple5 to Scala tuple.

    Implicit converter from GridTuple5 to Scala tuple.

    t

    GridTuple5 to convert.

    Definition Classes
    ScalarConversions
  64. final def getClass(): Class[_]

    Definition Classes
    AnyRef ? Any
  65. def grid$(locNodeId: UUID): Option[Ignite]

    Gets grid for given node ID.

    Gets grid for given node ID.

    locNodeId

    Local node ID for which to get grid instance option.

    Annotations
    @inline()
  66. def hashCode(): Int

    Definition Classes
    AnyRef ? Any
  67. def ignite$(name: String): Option[Ignite]

    Gets named grid.

    Gets named grid.

    name

    Grid name.

    Annotations
    @inline()
  68. def ignite$: Ignite

    Gets default grid instance.

    Gets default grid instance.

    Annotations
    @inline()
  69. implicit def inClosure2DotScala[T1, T2](f: IgniteBiInClosure[T1, T2]): AnyRef { def scala: (T1, T2) => Unit }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    f

    Java-side closure to pimp.

    Definition Classes
    ScalarConversions
  70. implicit def inClosure2XDotScala[T1, T2](f: IgniteInClosure2X[T1, T2]): AnyRef { def scala: (T1, T2) => Unit }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    f

    Java-side closure to pimp.

    Definition Classes
    ScalarConversions
  71. implicit def inClosure3DotScala[T1, T2, T3](f: GridInClosure3[T1, T2, T3]): AnyRef { def scala: (T1, T2, T3) => Unit }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    f

    Java-side closure to pimp.

    Definition Classes
    ScalarConversions
  72. implicit def inClosure3XDotScala[T1, T2, T3](f: GridInClosure3X[T1, T2, T3]): AnyRef { def scala: (T1, T2, T3) => Unit }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    f

    Java-side closure to pimp.

    Definition Classes
    ScalarConversions
  73. implicit def inClosureDotScala[T](f: IgniteInClosure[T]): AnyRef { def scala: T => Unit }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    f

    Java-side closure to pimp.

    Definition Classes
    ScalarConversions
  74. implicit def inClosureXDotScala[T](f: IgniteInClosureX[T]): AnyRef { def scala: T => Unit }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    f

    Java-side closure to pimp.

    Definition Classes
    ScalarConversions
  75. def isDaemon: Boolean

    Gets daemon flag set in the grid factory.

  76. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  77. def isStarted: Boolean

    Tests if default grid is started.

  78. def isStarted(name: String): Boolean

    Tests if specified grid is started.

    Tests if specified grid is started.

    name

    Gird name.

  79. def isStopped: Boolean

    Tests if default grid is stopped.

  80. def isStopped(name: String): Boolean

    Tests if specified grid is stopped.

    Tests if specified grid is stopped.

    name

    Gird name.

  81. def logo(): Unit

    Prints Scalar ASCII-logo.

  82. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  83. def nid8$(node: ClusterNode): String

    Gets node ID as ID8 string.

  84. final def notify(): Unit

    Definition Classes
    AnyRef
  85. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  86. implicit def outClosureDotScala[R](f: IgniteCallable[R]): AnyRef { def scala: () => R }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    f

    Java-side closure to pimp.

    Definition Classes
    ScalarConversions
  87. implicit def outClosureXDotScala[R](f: IgniteOutClosureX[R]): AnyRef { def scala: () => R }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    f

    Java-side closure to pimp.

    Definition Classes
    ScalarConversions
  88. implicit def predicate2DotScala[T1, T2](p: IgniteBiPredicate[T1, T2]): AnyRef { def scala: (T1, T2) => Boolean }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    p

    Java-side predicate to pimp.

    Definition Classes
    ScalarConversions
  89. implicit def predicate2XDotScala[T1, T2](p: IgnitePredicate2X[T1, T2]): AnyRef { def scala: (T1, T2) => Boolean }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    p

    Java-side predicate to pimp.

    Definition Classes
    ScalarConversions
  90. implicit def predicate3DotScala[T1, T2, T3](p: GridPredicate3[T1, T2, T3]): AnyRef { def scala: (T1, T2, T3) => Boolean }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    p

    Java-side predicate to pimp.

    Definition Classes
    ScalarConversions
  91. implicit def predicate3XDotScala[T1, T2, T3](p: GridPredicate3X[T1, T2, T3]): AnyRef { def scala: (T1, T2, T3) => Boolean }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    p

    Java-side predicate to pimp.

    Definition Classes
    ScalarConversions
  92. implicit def predicateDotScala[T](p: IgnitePredicate[T]): AnyRef { def scala: T => Boolean }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    p

    Java-side predicate to pimp.

    Definition Classes
    ScalarConversions
  93. implicit def predicateXDotScala[T](p: IgnitePredicateX[T]): AnyRef { def scala: T => Boolean }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    p

    Java-side predicate to pimp.

    Definition Classes
    ScalarConversions
  94. implicit def reducer2DotScala[E1, E2, R](r: IgniteReducer2[E1, E2, R]): AnyRef { def scala: (Seq[E1], Seq[E2]) => R }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    r

    Java-side reducer to pimp.

    Definition Classes
    ScalarConversions
  95. implicit def reducer3DotScala[E1, E2, E3, R](r: IgniteReducer3[E1, E2, E3, R]): AnyRef { def scala: (Seq[E1], Seq[E2], Seq[E3]) => R }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    r

    Java-side reducer to pimp.

    Definition Classes
    ScalarConversions
  96. implicit def reducerDotScala[E, R](r: IgniteReducer[E, R]): AnyRef { def scala: Seq[E] => R }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    r

    Java-side reducer to pimp.

    Definition Classes
    ScalarConversions
  97. def start(springCfgUrl: URL): Ignite

    Starts grid with given parameter(s).

    Starts grid with given parameter(s).

    springCfgUrl

    Spring XML configuration file URL.

    returns

    Started grid.

  98. def start(cfg: IgniteConfiguration): Ignite

    Starts grid with given parameter(s).

    Starts grid with given parameter(s).

    cfg

    Grid configuration. This cannot be null.

    returns

    Started grid.

  99. def start(springCfgPath: String): Ignite

    Starts grid with given parameter(s).

    Starts grid with given parameter(s).

    springCfgPath

    Spring XML configuration file path or URL.

    returns

    Started grid. If Spring configuration contains multiple grid instances, then the 1st found instance is returned.

  100. def start(): Ignite

    Starts default grid.

    Starts default grid. It's no-op if default grid is already started.

    returns

    Started grid.

  101. def stop(): AnyVal

    Stops default grid with cancel flag set to true.

    Stops default grid with cancel flag set to true. If default grid is already stopped - it's no-op.

  102. def stop(cancel: Boolean): AnyVal

    Stops default grid with given cancel flag.

    Stops default grid with given cancel flag. If default grid is already stopped - it's no-op.

    cancel

    Whether or not to cancel all currently running jobs.

  103. def stop(name: String, cancel: Boolean): AnyVal

    Stops given grid and specified cancel flag.

    Stops given grid and specified cancel flag. If specified grid is already stopped - it's no-op.

    name

    Grid name to cancel.

    cancel

    Whether or not to cancel all currently running jobs.

  104. final def synchronized[T0](arg0: ? T0): T0

    Definition Classes
    AnyRef
  105. def timerTask(f: ? Unit): TimerTask

    Explicit converter for TimerTask.

    Explicit converter for TimerTask. Note that since TimerTask implements Runnable we can't use the implicit conversion.

    f

    Closure to convert.

    returns

    Time task instance.

    Definition Classes
    ScalarConversions
  106. implicit def toAbsClosure2(r: Runnable): GridAbsClosure

    Implicit converter from java.lang.Runnable to GridAbsClosure.

    Implicit converter from java.lang.Runnable to GridAbsClosure.

    r

    Java runnable to convert.

    Definition Classes
    ScalarConversions
  107. def toAbsClosureX(f: () ? Unit): GridAbsClosureX

    Implicit converter from Scala function to GridAbsClosureX.

    Implicit converter from Scala function to GridAbsClosureX.

    f

    Scala function to convert.

    Definition Classes
    ScalarConversions
  108. implicit def toAbsPredicate(f: () ? Boolean): GridAbsPredicate

    Implicit converter from Scala predicate to GridAbsPredicate.

    Implicit converter from Scala predicate to GridAbsPredicate.

    f

    Scala predicate to convert.

    Definition Classes
    ScalarConversions
  109. implicit def toAbsPredicateX(f: () ? Boolean): GridAbsPredicateX

    Implicit converter from Scala predicate to GridAbsPredicateX.

    Implicit converter from Scala predicate to GridAbsPredicateX.

    f

    Scala predicate to convert.

    Definition Classes
    ScalarConversions
  110. implicit def toCallable[R](f: () ? R): IgniteCallable[R]

    Implicit converter from Scala function to GridOutClosure.

    Implicit converter from Scala function to GridOutClosure.

    f

    Scala function to convert.

    Definition Classes
    ScalarConversions
  111. implicit def toClosure[A, R](f: (A) ? R): IgniteClosure[A, R]

    Implicit converter from Scala closure to GridClosure.

    Implicit converter from Scala closure to GridClosure.

    f

    Scala closure to convert.

    Definition Classes
    ScalarConversions
  112. implicit def toClosure2[A1, A2, R](f: (A1, A2) ? R): IgniteBiClosure[A1, A2, R]

    Implicit converter from Scala closure to GridClosure2.

    Implicit converter from Scala closure to GridClosure2.

    f

    Scala closure to convert.

    Definition Classes
    ScalarConversions
  113. def toClosure2X[A1, A2, R](f: (A1, A2) ? R): IgniteClosure2X[A1, A2, R]

    Implicit converter from Scala closure to GridClosure2X.

    Implicit converter from Scala closure to GridClosure2X.

    f

    Scala closure to convert.

    Definition Classes
    ScalarConversions
  114. implicit def toClosure3[A1, A2, A3, R](f: (A1, A2, A3) ? R): GridClosure3[A1, A2, A3, R]

    Implicit converter from Scala closure to GridClosure3X.

    Implicit converter from Scala closure to GridClosure3X.

    f

    Scala closure to convert.

    Definition Classes
    ScalarConversions
  115. def toClosure3X[A1, A2, A3, R](f: (A1, A2, A3) ? R): GridClosure3X[A1, A2, A3, R]

    Implicit converter from Scala closure to GridClosure3X.

    Implicit converter from Scala closure to GridClosure3X.

    f

    Scala closure to convert.

    Definition Classes
    ScalarConversions
  116. def toClosureX[A, R](f: (A) ? R): IgniteClosureX[A, R]

    Implicit converter from Scala closure to GridClosureX.

    Implicit converter from Scala closure to GridClosureX.

    f

    Scala closure to convert.

    Definition Classes
    ScalarConversions
  117. implicit def toInClosure[T](f: (T) ? Unit): IgniteInClosure[T]

    Implicit converter from Scala function to GridInClosure.

    Implicit converter from Scala function to GridInClosure.

    f

    Scala function to convert.

    Definition Classes
    ScalarConversions
  118. implicit def toInClosure2[T1, T2](f: (T1, T2) ? Unit): IgniteBiInClosure[T1, T2]

    Implicit converter from Scala function to GridInClosure2.

    Implicit converter from Scala function to GridInClosure2.

    f

    Scala function to convert.

    Definition Classes
    ScalarConversions
  119. implicit def toInClosure2X[T1, T2](f: (T1, T2) ? Unit): IgniteInClosure2X[T1, T2]

    Implicit converter from Scala function to GridInClosure2X.

    Implicit converter from Scala function to GridInClosure2X.

    f

    Scala function to convert.

    Definition Classes
    ScalarConversions
  120. implicit def toInClosure3[T1, T2, T3](f: (T1, T2, T3) ? Unit): GridInClosure3[T1, T2, T3]

    Implicit converter from Scala function to GridInClosure3.

    Implicit converter from Scala function to GridInClosure3.

    f

    Scala function to convert.

    Definition Classes
    ScalarConversions
  121. def toInClosure3X[T1, T2, T3](f: (T1, T2, T3) ? Unit): GridInClosure3X[T1, T2, T3]

    Implicit converter from Scala function to GridInClosure3X.

    Implicit converter from Scala function to GridInClosure3X.

    f

    Scala function to convert.

    Definition Classes
    ScalarConversions
  122. def toInClosureX[T](f: (T) ? Unit): IgniteInClosureX[T]

    Implicit converter from Scala function to GridInClosureX.

    Implicit converter from Scala function to GridInClosureX.

    f

    Scala function to convert.

    Definition Classes
    ScalarConversions
  123. def toJavaCollection[A, B](i: Iterator[A], f: (A) ? B): Collection[B]

    Helper transformer from Scala iterator to Java collection.

    Helper transformer from Scala iterator to Java collection.

    i

    Scala iterator to transform.

    f

    Transforming function.

    Definition Classes
    ScalarConversions
  124. def toJavaCollection[A](s: Seq[A]): Collection[A]

    Helper converter from Scala sequence to Java collection.

    Helper converter from Scala sequence to Java collection.

    s

    Scala sequence to convert.

    Definition Classes
    ScalarConversions
  125. def toJavaCollection[A, B](s: Seq[A], f: (A) ? B): Collection[B]

    Helper transformer from Scala sequence to Java collection.

    Helper transformer from Scala sequence to Java collection.

    s

    Scala sequence to transform.

    f

    Transforming function.

    Definition Classes
    ScalarConversions
  126. implicit def toJob(f: () ? Any): ComputeJob

    Implicit converter from Scala function to ComputeJob.

    Implicit converter from Scala function to ComputeJob.

    f

    Scala function to convert.

    Definition Classes
    ScalarConversions
  127. def toOutClosureX[R](f: () ? R): IgniteOutClosureX[R]

    Implicit converter from Scala function to GridOutClosureX.

    Implicit converter from Scala function to GridOutClosureX.

    f

    Scala function to convert.

    Definition Classes
    ScalarConversions
  128. implicit def toPredicate[T](f: (T) ? Boolean): IgnitePredicate[T]

    Implicit converter from Scala predicate to Scala wrapping predicate.

    Implicit converter from Scala predicate to Scala wrapping predicate.

    f

    Scala predicate to convert.

    Definition Classes
    ScalarConversions
  129. implicit def toPredicate2[T1, T2](f: (T1, T2) ? Boolean): IgniteBiPredicate[T1, T2]

    Implicit converter from Scala predicate to Scala wrapping predicate.

    Implicit converter from Scala predicate to Scala wrapping predicate.

    f

    Scala predicate to convert.

    Definition Classes
    ScalarConversions
  130. def toPredicate2X[T1, T2](f: (T1, T2) ? Boolean): IgnitePredicate2X[T1, T2]

    Implicit converter from Scala predicate to Scala wrapping predicate.

    Implicit converter from Scala predicate to Scala wrapping predicate.

    f

    Scala predicate to convert.

    Definition Classes
    ScalarConversions
  131. implicit def toPredicate3[T1, T2, T3](f: (T1, T2, T3) ? Boolean): GridPredicate3[T1, T2, T3]

    Implicit converter from Scala predicate to Scala wrapping predicate.

    Implicit converter from Scala predicate to Scala wrapping predicate.

    f

    Scala predicate to convert.

    Definition Classes
    ScalarConversions
  132. def toPredicate32[T1, T2, T3](f: (T1, T2, T3) ? Boolean): GridPredicate3X[T1, T2, T3]

    Implicit converter from Scala predicate to Scala wrapping predicate.

    Implicit converter from Scala predicate to Scala wrapping predicate.

    f

    Scala predicate to convert.

    Definition Classes
    ScalarConversions
  133. def toPredicateX[T](f: (T) ? Boolean): IgnitePredicateX[T]

    Implicit converter from Scala predicate to Scala wrapping predicate.

    Implicit converter from Scala predicate to Scala wrapping predicate.

    f

    Scala predicate to convert.

    Definition Classes
    ScalarConversions
  134. implicit def toReducer[E, R](r: (Seq[E]) ? R): IgniteReducer[E, R]

    Implicit converter from Scala function and Java GridReducer.

    Implicit converter from Scala function and Java GridReducer.

    r

    Scala function to convert.

    Definition Classes
    ScalarConversions
  135. implicit def toReducer2[E1, E2, R](r: (Seq[E1], Seq[E2]) ? R): IgniteReducer2[E1, E2, R]

    Implicit converter from Scala function and Java GridReducer2.

    Implicit converter from Scala function and Java GridReducer2.

    r

    Scala function to convert.

    Definition Classes
    ScalarConversions
  136. implicit def toReducer3[E1, E2, E3, R](r: (Seq[E1], Seq[E2], Seq[E3]) ? R): IgniteReducer3[E1, E2, E3, R]

    Implicit converter from Scala function and Java GridReducer3.

    Implicit converter from Scala function and Java GridReducer3.

    r

    Scala function to convert.

    Definition Classes
    ScalarConversions
  137. implicit def toReturnable(v: Any): AnyRef { def ^^: Unit }

    Introduction of ^^ operator for Any type that will call break.

    Introduction of ^^ operator for Any type that will call break.

    v

    Any value.

    Definition Classes
    ScalarConversions
  138. implicit def toRunnable(f: () ? Unit): IgniteRunnable

    Implicit converter from Scala function to GridAbsClosure.

    Implicit converter from Scala function to GridAbsClosure.

    f

    Scala function to convert.

    Definition Classes
    ScalarConversions
  139. def toScalaItr[K, V](c: Collection[Entry[K, V]]): Iterable[(K, V)]

    Helper converter from Java entry collection to Scala iterable of pair.

    Helper converter from Java entry collection to Scala iterable of pair.

    c

    Java collection to convert.

    Definition Classes
    ScalarConversions
  140. def toScalaSeq[A](i: Iterable[A]): Seq[A]

    Helper converter from Java iterable to Scala sequence.

    Helper converter from Java iterable to Scala sequence.

    i

    Java iterable to convert.

    Definition Classes
    ScalarConversions
  141. def toScalaSeq[A, B](i: Iterable[A], f: (A) ? B): Seq[B]

    Helper transformer from Java iterable to Scala sequence.

    Helper transformer from Java iterable to Scala sequence.

    i

    Java iterable to transform.

    f

    Transforming function.

    Definition Classes
    ScalarConversions
  142. def toScalaSeq[A](i: Iterator[A]): Seq[A]

    Helper converter from Java iterator to Scala sequence.

    Helper converter from Java iterator to Scala sequence.

    i

    Java iterator to convert.

    Definition Classes
    ScalarConversions
  143. def toScalaSeq[A, B](i: Iterator[A], f: (A) ? B): Seq[B]

    Helper transformer from Java iterator to Scala sequence.

    Helper transformer from Java iterator to Scala sequence.

    i

    Java iterator to transform.

    f

    Transforming function.

    Definition Classes
    ScalarConversions
  144. def toScalaSeq[A, B](c: Collection[A], f: (A) ? B): Seq[B]

    Helper transformer from Java collection to Scala sequence.

    Helper transformer from Java collection to Scala sequence.

    c

    Java collection to transform.

    f

    Transforming function.

    Definition Classes
    ScalarConversions
  145. implicit def toScalarCache[K, V](impl: IgniteCache[K, V]): ScalarCachePimp[K, V]

    Implicit converter from Cache to ScalarCachePimp "pimp".

    Implicit converter from Cache to ScalarCachePimp "pimp".

    impl

    Grid cache to convert.

    Definition Classes
    ScalarConversions
  146. implicit def toScalarGrid(impl: Ignite): ScalarGridPimp

    Implicit converter from Grid to ScalarGridPimp "pimp".

    Implicit converter from Grid to ScalarGridPimp "pimp".

    impl

    Grid to convert.

    Definition Classes
    ScalarConversions
  147. implicit def toScalarProjection(impl: ClusterGroup): ScalarProjectionPimp[ClusterGroup]

    Implicit converter from GridProjection to ScalarProjectionPimp "pimp".

    Implicit converter from GridProjection to ScalarProjectionPimp "pimp".

    impl

    Grid projection to convert.

    Definition Classes
    ScalarConversions
  148. def toString(): String

    Definition Classes
    AnyRef ? Any
  149. implicit def toTuple2[A, B](t: (A, B)): IgniteBiTuple[A, B]

    Implicit converter from Scala tuple to GridTuple2.

    Implicit converter from Scala tuple to GridTuple2.

    t

    Scala tuple to convert.

    Definition Classes
    ScalarConversions
  150. implicit def toTuple2x[T1, T2](t: (T1, T2)): AnyRef { ... /* 5 definitions in type refinement */ }

    Extension for Tuple2.

    Extension for Tuple2.

    t

    Tuple to improve.

    Definition Classes
    ScalarConversions
  151. implicit def toTuple3[A, B, C](t: (A, B, C)): GridTuple3[A, B, C]

    Implicit converter from Scala tuple to GridTuple3.

    Implicit converter from Scala tuple to GridTuple3.

    t

    Scala tuple to convert.

    Definition Classes
    ScalarConversions
  152. implicit def toTuple3x[T1, T2, T3](t: (T1, T2, T3)): AnyRef { ... /* 6 definitions in type refinement */ }

    Extension for Tuple3.

    Extension for Tuple3.

    t

    Tuple to improve.

    Definition Classes
    ScalarConversions
  153. implicit def toTuple4[A, B, C, D](t: (A, B, C, D)): GridTuple4[A, B, C, D]

    Implicit converter from Scala tuple to GridTuple4.

    Implicit converter from Scala tuple to GridTuple4.

    t

    Scala tuple to convert.

    Definition Classes
    ScalarConversions
  154. implicit def toTuple5[A, B, C, D, E](t: (A, B, C, D, E)): GridTuple5[A, B, C, D, E]

    Implicit converter from Scala tuple to GridTuple5.

    Implicit converter from Scala tuple to GridTuple5.

    t

    Scala tuple to convert.

    Definition Classes
    ScalarConversions
  155. implicit def toVarArgs[T](s: Seq[(T) ? Boolean]): Seq[IgnitePredicate[_ >: T]]

    Implicit converter from vararg of one-argument Scala functions to Java GridPredicates.

    Implicit converter from vararg of one-argument Scala functions to Java GridPredicates.

    s

    Sequence of one-argument Scala functions to convert.

    Definition Classes
    ScalarConversions
  156. implicit def toVarArgs2[T1, T2](s: Seq[(T1, T2) ? Boolean]): Seq[IgniteBiPredicate[_ >: T1, _ >: T2]]

    Implicit converter from vararg of two-argument Scala functions to Java GridPredicate2s.

    Implicit converter from vararg of two-argument Scala functions to Java GridPredicate2s.

    s

    Sequence of two-argument Scala functions to convert.

    Definition Classes
    ScalarConversions
  157. implicit def toVarArgs3[T1, T2, T3](s: Seq[(T1, T2, T3) ? Boolean]): Seq[GridPredicate3[_ >: T1, _ >: T2, _ >: T3]]

    Implicit converter from vararg of three-argument Scala functions to Java GridPredicate3s.

    Implicit converter from vararg of three-argument Scala functions to Java GridPredicate3s.

    s

    Sequence of three-argument Scala functions to convert.

    Definition Classes
    ScalarConversions
  158. implicit def tuple2DotScala[A, B](t: IgniteBiTuple[A, B]): AnyRef { def scala: (A, B) }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    t

    Java-side tuple to pimp.

    Definition Classes
    ScalarConversions
  159. implicit def tuple3DotScala[A, B, C](t: GridTuple3[A, B, C]): AnyRef { def scala: (A, B, C) }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    t

    Java-side tuple to pimp.

    Definition Classes
    ScalarConversions
  160. implicit def tuple4DotScala[A, B, C, D](t: GridTuple4[A, B, C, D]): AnyRef { def scala: (A, B, C, D) }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    t

    Java-side tuple to pimp.

    Definition Classes
    ScalarConversions
  161. implicit def tuple5DotScala[A, B, C, D, E](t: GridTuple5[A, B, C, D, E]): AnyRef { def scala: (A, B, C, D, E) }

    Pimp for adding explicit conversion method scala.

    Pimp for adding explicit conversion method scala.

    t

    Java-side tuple to pimp.

    Definition Classes
    ScalarConversions
  162. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  163. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  164. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ScalarConversions

Inherited from AnyRef

Inherited from Any

Ungrouped

Ignite™ - Scalar DSL, ver. 1.2.0-incubating
2015 Copyright © Apache Software Foundation