scalation
package scalation
The scalation
package specifies system-wide constants for directory paths.
Sub-packages may wish to define 'BASE-DIR = DATA_DIR + ⁄ + <package>' in their
own 'package.scala' files. For maintainability, directory paths should only
be specified in 'package.scala' files.
- Alphabetic
- By Inheritance
- scalation
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
Value Members
-
val
DATA_DIR: String
File system path for input/output data directory Use 'SCALATION_HOME' environment variable or else current directory "."
-
val
LOG_DIR: String
File system path for log (log/file output) directory Use 'SCALATION_HOME' environment variable or else current directory "."
-
val
MEM_MAPPED_DIR: String
File system path for memory mapped files directory Use 'SCALATION_HOME' environment variable or else current directory "."
-
val
SEP: String
The file path separation character: '/' for Linux/Mac, '\' for Windows Use either 'SEP' or '⁄' for portability, i.e., do not use '/' or '\'.
-
val
SRC_DIR: String
File system path for src (source code) directory Use 'SCALATION_HOME' environment variable or else current directory "."
- val SRC_SCALA_DIR: String
-
val
STORE_DIR: String
File system path for database storage directory Use 'SCALATION_HOME' environment variable or else current directory "."
-
def
setParallelism[A](n: Int)(block: ⇒ A): A
Set the default parallelism level (number of threads to use) for an arbitrary block of code: 'parallel (n) { block }' when running parallel tasks.
Set the default parallelism level (number of threads to use) for an arbitrary block of code: 'parallel (n) { block }' when running parallel tasks. Then restore the old parallelism level.
- n
number of threads
- See also
-for-scala-2-10-parallel-collections/18574345
stackoverflow.com/questions/17865823/how-do-i-set-the-default-number-of-threads
- val ⁄: String
-
object
WorkerTest
extends App
The
WorkerTest
object tests theWorker
class vs.The
WorkerTest
object tests theWorker
class vs. Scala's built-in '.par' on the matrix multiplication problem. > run-main scalation.frame.WorkerTest -
object
scalationTest
extends App
The
scalationTest
object is used test thescalation
package object.The
scalationTest
object is used test thescalation
package object. > run-main scalation.scalationTest