Package space.kscience.dataforge.meta.transformations

Types

KeepTransformationRule
Link copied to clipboard
common
data class KeepTransformationRule(selector: (Name) -> Boolean) : TransformationRule

A transformation which keeps all elements, matching selector unchanged.

MetaConverter
Link copied to clipboard
common
interface MetaConverter<T>

A converter of generic object to and from Meta

MetaTransformation
Link copied to clipboard
common
value class MetaTransformation(transformations: Collection<TransformationRule>)

A set of TransformationRule to either transform static meta or create dynamically updated MutableMeta

MetaTransformationBuilder
Link copied to clipboard
common
class MetaTransformationBuilder

A builder for a set of transformation rules

RegexItemTransformationRule
Link copied to clipboard
common
data class RegexItemTransformationRule(from: Regex, transform: MutableMeta.(name: Name, MatchResult, Meta?) -> Unit) : TransformationRule
SingleItemTransformationRule
Link copied to clipboard
common
data class SingleItemTransformationRule(from: Name, transform: MutableMeta.(Name, Meta?) -> Unit) : TransformationRule

A transformation which transforms element with specific name

TransformationRule
Link copied to clipboard
common
interface TransformationRule

A transformation for meta item or a group of items

Functions

nullableMetaToObject
Link copied to clipboard
common
fun <T : Any> MetaConverter<T>.nullableMetaToObject(item: Meta?): T?
nullableObjectToMeta
Link copied to clipboard
common
fun <T : Any> MetaConverter<T>.nullableObjectToMeta(obj: T?): Meta?
valueToObject
Link copied to clipboard
common
fun <T> MetaConverter<T>.valueToObject(value: Value): T?