Package

org.apache.ignite.scalar

pimps

Permalink

package pimps

Contains Scala "Pimp" implementations for main Ignite entities.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. pimps
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. trait PimpedType[X] extends AnyRef

    Permalink

    Sub class to create a wrapper type for X as documentation that the sub class follows the 'pimp my library' pattern.

    Sub class to create a wrapper type for X as documentation that the sub class follows the 'pimp my library' pattern. http://www.artima.com/weblogs/viewpost.jsp?thread=179766

    The companion object provides an implicit conversion to unwrap value.

  2. class ScalarCachePimp[K, V] extends PimpedType[IgniteCache[K, V]] with Iterable[Entry[K, V]] with Ordered[IgniteCache[K, V]]

    Permalink

    Defines Scalar "pimp" for IgniteCache on Java side.

    Overview

    Defines Scalar "pimp" for IgniteCache on Java side.

    Essentially this class extends Java IgniteCache interface with Scala specific API adapters using primarily implicit conversions defined in ScalarConversions object. What it means is that you can use functions defined in this class on object of Java IgniteCache type. Scala will automatically (implicitly) convert it into Scalar's pimp and replace the original call with a call on that pimp.

    Note that Scalar provide extensive library of implicit conversion between Java and Scala Ignite counterparts in ScalarConversions object

    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.

  3. class ScalarGridPimp extends ScalarProjectionPimp[IgniteCluster] with ScalarTaskThreadContext[IgniteCluster]

    Permalink

    Defines Scalar "pimp" for Grid on Java side.

    Overview

    Defines Scalar "pimp" for Grid on Java side.

    Essentially this class extends Java GridProjection interface with Scala specific API adapters using primarily implicit conversions defined in ScalarConversions object. What it means is that you can use functions defined in this class on object of Java GridProjection type. Scala will automatically (implicitly) convert it into Scalar's pimp and replace the original call with a call on that pimp.

    Note that Scalar provide extensive library of implicit conversion between Java and Scala Ignite counterparts in ScalarConversions object

    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.

  4. class ScalarProjectionPimp[A <: ClusterGroup] extends PimpedType[A] with Iterable[ClusterNode] with ScalarTaskThreadContext[A]

    Permalink

    Defines Scalar "pimp" for GridProjection on Java side.

    Overview

    Defines Scalar "pimp" for GridProjection on Java side.

    Essentially this class extends Java GridProjection interface with Scala specific API adapters using primarily implicit conversions defined in ScalarConversions object. What it means is that you can use functions defined in this class on object of Java GridProjection type. Scala will automatically (implicitly) convert it into Scalar's pimp and replace the original call with a call on that pimp.

    Note that Scalar provide extensive library of implicit conversion between Java and Scala Ignite counterparts in ScalarConversions object

    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.

  5. trait ScalarTaskThreadContext[T <: ClusterGroup] extends ScalarConversions

    Permalink

    This trait provide mixin for properly typed version of GridProjection#with...() methods.

    This trait provide mixin for properly typed version of GridProjection#with...() methods.

    Method on GridProjection always returns an instance of type GridProjection even when called on a sub-class. This trait's methods return the instance of the same type it was called on.

Value Members

  1. object PimpedType

    Permalink
  2. object ScalarCachePimp

    Permalink

    Companion object.

  3. object ScalarGridPimp

    Permalink

    Companion object.

  4. object ScalarProjectionPimp

    Permalink

    Companion object.

Inherited from AnyRef

Inherited from Any

Ungrouped

Ignite™ - Scalar DSL, ver. 1.5.0.final
2015 Copyright © Apache Software Foundation