class Mapper[Input <: Identifiable[Input], Output <: Identifiable[Output]] extends UnaryComputation[Input, Output]

The Mapper Computation, which is a subclass of UnaryComputation. In short, this takes a input, the computation turns that into a list of outputs. In the example, this would be either Clone() or CommitExtraction().

Input

The type of the data that needs to be computed. Within the example, this is bigglue.examples.GitID for GitClone(), and bigglue.examples.GitRepo for GitCommitExtraction(). This needs to be an Identifiable type.

Output

The type of the data that ends up being computed. Within the example, this is bigglue.examples.GitRepo for GitClone(), and bigglue.examples.GitCommitInfo for GitCommitExtraction(). This also needs to be an Identifiable type.

Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Mapper
  2. UnaryComputation
  3. UnaryChecker
  4. OutputStoreChecker
  5. InputStoreChecker
  6. ConfigChecker
  7. Computation
  8. ConfigBuildsPlatform
  9. ConfigBuilds
  10. AnyRef
  11. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Mapper(op: (Input) ⇒ List[Output])

    op

    The computation to be run by the computation. For both, this is this section that's in between the parentheses.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Mapper[Input, Output] to any2stringadd[Mapper[Input, Output]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def -->[End <: Identifiable[End]](p: Pipe[Output, End]): PartialMapperPipe[Input, Output, End]

    This is part of the series of function calls that make the pipeline.

    This is part of the series of function calls that make the pipeline. In the example, this is called when stating (Clone()-->clonedMap) or (CommitExtraction()-->commitInfoMap). Simply put, this creates a part of the pipeline that connects the mapper to the output data store and the rest of the pipeline after that.

    End

    The type of data store that is at the end of the pipeline. In the example, this would be bigglue.examples.GitCommitGroups

    p

    The part of the pipe that follows the mapper computation. In the example, for Clone() it's clonedMap:--CommitExtraction()-->commitInfoMap:-+FindAuthor()+->authorMap, and for BB it's commitInfoMap:-+FindAuthor()+->authorMap.

    returns

    A PartialMapperPipe which links the mapper together with the pipe that starts with the output data store.

  5. def ->[B](y: B): (Mapper[Input, Output], B)
    Implicit
    This member is added by an implicit conversion from Mapper[Input, Output] to ArrowAssoc[Mapper[Input, Output]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def check(conf: PipeConfig, inputMap: DataStore[Input], outputMap: DataStore[Output]): Unit

    Check routine for unary data processors

    Check routine for unary data processors

    conf

    the config file to check

    inputMap

    the input store to check

    outputMap

    the output store to check

    Definition Classes
    UnaryChecker
  9. def checkConfig(conf: PipeConfig): Unit

    Check that paths in configuration file relevant to host class are well-formed.

    Check that paths in configuration file relevant to host class are well-formed. Default does nothing.

    conf

    the config file to check

    Definition Classes
    ConfigChecker
  10. def checkInput(inputMap: DataStore[Input]): Unit

    Check that input store is compatible with the host class.

    Check that input store is compatible with the host class. Default does nothing.

    inputMap

    the input store to check

    Definition Classes
    InputStoreChecker
  11. def checkOutput(outputMap: DataStore[Output]): Unit

    Check that output store is compatible with the host class.

    Check that output store is compatible with the host class. Default does nothing.

    outputMap

    the output store to check

    Definition Classes
    OutputStoreChecker
  12. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. val configOpt: Option[PipeConfig]
    Definition Classes
    ConfigBuilds
  14. var configOption: ConfOpt
    Definition Classes
    Computation
  15. def constructBuilder(config: PipeConfig = null): PlatformBuilder
    Definition Classes
    ConfigBuildsPlatformConfigBuilds
  16. def ensuring(cond: (Mapper[Input, Output]) ⇒ Boolean, msg: ⇒ Any): Mapper[Input, Output]
    Implicit
    This member is added by an implicit conversion from Mapper[Input, Output] to Ensuring[Mapper[Input, Output]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: (Mapper[Input, Output]) ⇒ Boolean): Mapper[Input, Output]
    Implicit
    This member is added by an implicit conversion from Mapper[Input, Output] to Ensuring[Mapper[Input, Output]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean, msg: ⇒ Any): Mapper[Input, Output]
    Implicit
    This member is added by an implicit conversion from Mapper[Input, Output] to Ensuring[Mapper[Input, Output]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean): Mapper[Input, Output]
    Implicit
    This member is added by an implicit conversion from Mapper[Input, Output] to Ensuring[Mapper[Input, Output]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Mapper[Input, Output] to StringFormat[Mapper[Input, Output]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  24. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  25. def getConfig(config: PipeConfig): PipeConfig
    Definition Classes
    ConfigBuilds
  26. def getOp: (Input) ⇒ List[Output]
  27. def getUnaryPlatform(): UnaryPlatform[Input, Output]
    Definition Classes
    UnaryComputation
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  29. def init(conf: PipeConfig, inputMap: DataStore[Input], outputMap: DataStore[Output]): Unit

    This initializes the mapper computation.

    This initializes the mapper computation. It creates a UnaryPlatform with PlatformBuilder.mapperPlatform, then sets itself as the platform's computation, and then initializes the platform with UnaryPlatform.init.

    conf

    The configuration file to build from. Note: If there is a GitIDs-->GitRepos section or GitRepos-->GitCommitInfo section in the bigglue section of the configuration file, it will overwrite part of the configuration file with the values within the step's section. You can see this in effect with GitIDs-->GitRepos, which changes the connector from an bigglue.connectors.instances.IncrTrackerJobQueue to a bigglue.connectors.instances.JobQueue.

    inputMap

    The DataStore that data is being sent in from. Within the example, for gitID:--Clone()-->clonedMap, this would be gitID. Likewise, for clonedMap:--CommitExtraction()-->commitInfoMap, this would be clonedMap. Both of these Data Stores are bigglue.store.instances.solr.SolrDataMap within the example.

    outputMap

    The DataStore that data is being sent to after computation. Within the example, for gitID:--Clone()-->clonedMap, this would be clonedMap. Likewise, for clonedMap:--CommitExtraction()-->commitInfoMap, this would be commitInfoMap. Both of these Data Stores are bigglue.store.instances.solr.SolrDataMap within the example.

  30. def init(conf: PipeConfig, inputMap: DataStore[Input], outputMap: DataStore[Output], platform: UnaryPlatform[Input, Output]): Unit

    This connects the newly initialized platform to the Input Data Store by making it so the Input Data Store sends data down to the platform.

    This connects the newly initialized platform to the Input Data Store by making it so the Input Data Store sends data down to the platform.

    conf

    The configuration file.

    inputMap

    The Input Data Store

    outputMap

    The Output Data Store

    platform

    The Platform added by the Mapper or Reducer computations.

    Definition Classes
    UnaryComputation
  31. def init(config: PipeConfig, platform: Platform): Unit
    Definition Classes
    Computation
  32. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  33. def name(newName: String): UnaryComputation[Input, Output]
    Definition Classes
    UnaryComputation
  34. var name: String
    Definition Classes
    UnaryComputation
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  38. def persist(): Unit

    If the computation has been initialized, it calls Platform.persist on the platform.

    If the computation has been initialized, it calls Platform.persist on the platform. This gives the platform the responsibility of what data to send/resend down the pipeline.

    Definition Classes
    Computation
  39. var platformOpt: Option[Platform]
    Definition Classes
    Computation
  40. def run(): Unit
    Definition Classes
    MapperComputation
  41. def setConfig(pipeConfig: PipeConfig): Unit
    Definition Classes
    ConfigBuilds
  42. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  43. def terminate(): Unit
    Definition Classes
    Computation
  44. def toStep(conf: PipeConfig, step: String): PipeConfig
    Definition Classes
    Computation
  45. def toString(): String
    Definition Classes
    AnyRef → Any
  46. def tryCompute(input: Input): Option[List[Output]]

    Given an input, this attempts to compute the list of outputs, stamp it with the version of the computation, give it provenance information, and then put it in the output map to be sent further down the pipeline.

    Given an input, this attempts to compute the list of outputs, stamp it with the version of the computation, give it provenance information, and then put it in the output map to be sent further down the pipeline. Calls bigglue.curators.VersionCurator.stampVersion, bigglue.curators.ProvenanceCurator.reportProvenance, and DataStore.put.

    input

    The input that needs to be computed.

    returns

    If the computation succeeded, the list of outputs that were produced by the input. If the computation didn't succeed, it report the error and returns None.

  47. var unaryPlatformOpt: Option[UnaryPlatform[Input, Output]]
    Definition Classes
    UnaryComputation
  48. val versionOpt: Option[String]
    Definition Classes
    Computation
  49. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. def withConfig(newConfigOption: ConfOpt): Mapper[Input, Output]
  53. def [B](y: B): (Mapper[Input, Output], B)
    Implicit
    This member is added by an implicit conversion from Mapper[Input, Output] to ArrowAssoc[Mapper[Input, Output]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from UnaryComputation[Input, Output]

Inherited from UnaryChecker[Input, Output]

Inherited from OutputStoreChecker[Output]

Inherited from InputStoreChecker[Input]

Inherited from ConfigChecker

Inherited from Computation

Inherited from ConfigBuildsPlatform

Inherited from ConfigBuilds[PlatformBuilder]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Mapper[Input, Output] to any2stringadd[Mapper[Input, Output]]

Inherited by implicit conversion StringFormat from Mapper[Input, Output] to StringFormat[Mapper[Input, Output]]

Inherited by implicit conversion Ensuring from Mapper[Input, Output] to Ensuring[Mapper[Input, Output]]

Inherited by implicit conversion ArrowAssoc from Mapper[Input, Output] to ArrowAssoc[Mapper[Input, Output]]

Ungrouped