Package space.kscience.dataforge.workspace
Types
ContextGoalLogger
Link copied to clipboard
DataSelector
Link copied to clipboard
FileFormatResolver
Link copied to clipboard
TaskContainer
Link copied to clipboard
interface TaskContainer
Content copied to clipboard
TaskReference
Link copied to clipboard
data class TaskReference<T : Any>(taskName: Name, task: Task<T>) : DataSelector<T>
Content copied to clipboard
TaskResult
Link copied to clipboard
TaskResultBuilder
Link copied to clipboard
class TaskResultBuilder<T : Any>(workspace: Workspace, taskName: Name, taskMeta: Meta, dataDrop: DataSetBuilder<T>) : DataSetBuilder<T>
Content copied to clipboard
Workspace
Link copied to clipboard
WorkspaceBuilder
Link copied to clipboard
WorkspacePlugin
Link copied to clipboard
An abstract plugin with some additional boilerplate to effectively work with workspace context
Functions
data
Link copied to clipboard
inline fun <T : Any> TaskResultBuilder<*>.data(namePattern: Name? = null): DataSelector<T>
Content copied to clipboard
fun WorkspaceBuilder.data(builder: suspend DataSetBuilder<Any>.() -> Unit)
Content copied to clipboard
file
Link copied to clipboard
suspend fun <T : Any> DataSetBuilder<T>.file(plugin: IOPlugin, path: Path, formatResolver: FileFormatResolver<T>)
Content copied to clipboard
Add file/directory-based data tree item
from
Link copied to clipboard
suspend fun <T : Any> TaskResultBuilder<*>.from(selector: DataSelector<T>): DataSet<T>
Content copied to clipboard
Select data using given selector
pipeFrom
Link copied to clipboard
produce
Link copied to clipboard
suspend fun Workspace.produce(task: String, block: MutableMeta.() -> Unit = {}): TaskResult<*>
Content copied to clipboard
suspend fun Workspace.produce(task: String, target: String): TaskResult<*>
Content copied to clipboard
readDataDirectory
Link copied to clipboard
suspend fun <T : Any> IOPlugin.readDataDirectory(path: Path, formatResolver: FileFormatResolver<T>): DataTree<T>
Content copied to clipboard
Read the directory as a data node. If path is a zip archive, read it as directory
readDataFile
Link copied to clipboard
fun <T : Any> IOPlugin.readDataFile(path: Path, formatResolver: FileFormatResolver<T>): Data<T>
Content copied to clipboard
Read data with supported envelope format and binary format. If envelope format is null, then read binary directly from file. The operation is blocking since it must read meta header. The reading of envelope body is lazy
registerTask
Link copied to clipboard
inline fun <T : Any> TaskContainer.registerTask(name: String, noinline descriptorBuilder: MetaDescriptorBuilder.() -> Unit = {}, noinline builder: suspend TaskResultBuilder<T>.() -> Unit)
Content copied to clipboard
target
Link copied to clipboard
inline fun WorkspaceBuilder.target(name: String, mutableMeta: MutableMeta.() -> Unit)
Content copied to clipboard
Define a new target with a builder
Task
Link copied to clipboard
inline fun <T : Any> TaskContainer.task(noinline descriptorBuilder: MetaDescriptorBuilder.() -> Unit = {}, noinline builder: suspend TaskResultBuilder<T>.() -> Unit): PropertyDelegateProvider<Any?, ReadOnlyProperty<Any?, TaskReference<T>>>
Content copied to clipboard
inline fun <T : Any> TaskContainer.task(descriptor: MetaDescriptor, noinline builder: suspend TaskResultBuilder<T>.() -> Unit): PropertyDelegateProvider<Any?, ReadOnlyProperty<Any?, TaskReference<T>>>
Content copied to clipboard
toEnvelope
Link copied to clipboard
wrapResult
Link copied to clipboard
fun <T : Any> Workspace.wrapResult(dataSet: DataSet<T>, taskName: Name, taskMeta: Meta): TaskResult<T>
Content copied to clipboard
Wrap data into TaskResult
writeDataDirectory
Link copied to clipboard
suspend fun <T : Any> IOPlugin.writeDataDirectory(path: Path, tree: DataTree<T>, format: IOFormat<T>, envelopeFormat: EnvelopeFormat? = null, metaFormat: MetaFormatFactory? = null)
Content copied to clipboard
Write data tree to existing directory or create a new one using default java.nio.file.FileSystem provider