abstract class UnaryPlatform[Input <: Identifiable[Input], Output <: Identifiable[Output]] extends Platform with UnaryChecker[Input, Output]
This is a type of platform that only deals with one input. These have a computation of either Mapper or Reducer. Within the example, we use the default of bigglue.platforms.instances.bigactors.BigActorMapperPlatform and bigglue.platforms.instances.bigactors.BigActorReducerPlatform.
- Input
The type of the data that's being sent in.
- Output
The type of the data that's being sent out.
- Alphabetic
- By Inheritance
- UnaryPlatform
- UnaryChecker
- OutputStoreChecker
- InputStoreChecker
- ConfigChecker
- Platform
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new UnaryPlatform()
Abstract Value Members
-
abstract
def
terminate(): Unit
- Definition Classes
- Platform
-
abstract
def
wake(): Unit
This function is called when the upstream connector lets the platform know that there's data to be computed.
This function is called when the upstream connector lets the platform know that there's data to be computed.
- Definition Classes
- Platform
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from UnaryPlatform[Input, Output] to any2stringadd[UnaryPlatform[Input, Output]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (UnaryPlatform[Input, Output], B)
- Implicit
- This member is added by an implicit conversion from UnaryPlatform[Input, Output] to ArrowAssoc[UnaryPlatform[Input, Output]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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
-
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
-
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
-
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
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
var
computationOpt: Option[Computation]
What computation this platform ends up running.
What computation this platform ends up running. (Mapper, Reducer, PairwiseComposer) This ends up being set in init() by both UnaryPlatform and BinaryPlatform.
- Definition Classes
- Platform
-
def
ensuring(cond: (UnaryPlatform[Input, Output]) ⇒ Boolean, msg: ⇒ Any): UnaryPlatform[Input, Output]
- Implicit
- This member is added by an implicit conversion from UnaryPlatform[Input, Output] to Ensuring[UnaryPlatform[Input, Output]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (UnaryPlatform[Input, Output]) ⇒ Boolean): UnaryPlatform[Input, Output]
- Implicit
- This member is added by an implicit conversion from UnaryPlatform[Input, Output] to Ensuring[UnaryPlatform[Input, Output]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): UnaryPlatform[Input, Output]
- Implicit
- This member is added by an implicit conversion from UnaryPlatform[Input, Output] to Ensuring[UnaryPlatform[Input, Output]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): UnaryPlatform[Input, Output]
- Implicit
- This member is added by an implicit conversion from UnaryPlatform[Input, Output] to Ensuring[UnaryPlatform[Input, Output]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- var errorCuratorOpt: Option[ErrorCurator[Input]]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from UnaryPlatform[Input, Output] to StringFormat[UnaryPlatform[Input, Output]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- def getErrorCurator(): ErrorCurator[Input]
- def getInputMap(): DataStore[Input]
- def getInputs(): Seq[Input]
- def getOutputMap(): DataStore[Output]
- def getProvenanceCurator(): ProvenanceCurator[Input, Output]
- def getUpstreamConnector(): Connector[Input]
- def getVersionCurator(): VersionCurator[Output]
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
init(conf: PipeConfig, inputMap: DataStore[Input], outputMap: DataStore[Output], builder: PlatformBuilder): Unit
This sets up the platform by connecting the Input Map and Output Map to the platform, as well as any other initialization that needs to be done.
This sets up the platform by connecting the Input Map and Output Map to the platform, as well as any other initialization that needs to be done. In the case of the example, we use bigglue.platforms.instances.bigactors.BigActorUnaryPlatform.init This calls initConnector as well.
- conf
The configuration file needed to initialize.
- inputMap
The Map that data gets sent in from.
- outputMap
The Map that data gets sent out to.
- builder
The builder that created the platform. This was called with bigglue.computations.Mapper.init or bigglue.computations.Reducer.init
-
def
initConnector(conf: PipeConfig, builder: PlatformBuilder): Unit
This sets up the connector that sends data down the pipeline.
This sets up the connector that sends data down the pipeline. This initializes the connector with Connector.init, and then adds the platform to the connector with Connector.registerPlatform. As a default, we use bigglue.connectors.instances.IncrTrackerJobQueue.
- conf
The configuration file needed to initialize.
- builder
The builder that created the platform. This was called with bigglue.computations.Mapper.init or bigglue.computations.Reducer.init
- var inputMapOpt: Option[DataStore[Input]]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- var outputMapOpt: Option[DataStore[Output]]
-
def
persist(): Unit
This is called by the computation's persist step.
This is called by the computation's persist step. In particular, this tends to see how much of the data set actually needs to be re-sent. As of right now, it sends the entirety of the input map to the upstream connector, which handles which things to send/re-send down the pipeline, unless there is a reducer with nothing in the input file, or if there is nothing in the output file. If there is nothing in the output file, the program assumes that a new data store has been created and sends down all data.
- Definition Classes
- UnaryPlatform → Platform
- var provenanceCuratorOpt: Option[ProvenanceCurator[Input, Output]]
-
def
run(): Unit
- Definition Classes
- Platform
-
def
setComputation(computation: Computation): Platform
This ends up being called in the init step of the Mapper, Reducer, or PairwiseComposer This links the actual computation and platform together.
This ends up being called in the init step of the Mapper, Reducer, or PairwiseComposer This links the actual computation and platform together.
- computation
The computation that is linked with the platform. (This is usually called through platform.setComputation(this))
- Definition Classes
- Platform
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def updatedVersion(ver: Option[String]): Boolean
- var upstreamConnectorOpt: Option[Connector[Input]]
- var versionCuratorOpt: Option[VersionCurator[Output]]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
→[B](y: B): (UnaryPlatform[Input, Output], B)
- Implicit
- This member is added by an implicit conversion from UnaryPlatform[Input, Output] to ArrowAssoc[UnaryPlatform[Input, Output]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc