Documentation / dataflow-async / com.femastudios.dataflow.async.util / transform
Go to reference

transform

@JvmOverloads fun <I, O> transform(f1: Attribute<I>, flowStrategy: FlowStrategy = TRANSFORM_DEFAULT_FLOW_STRATEGY, transformer: WorkContext.(I) -> O): RecomputableAttribute<O>

Parameters

flowStrategy - the default FlowStrategy to use. Defaults to FlowStrategy.SYNCHRONOUS

See Also

Attribute.transform


@JvmOverloads inline fun <I1, I2, O> transform(f1: Attribute<I1>, f2: Attribute<I2>, flowStrategy: FlowStrategy = TRANSFORM_DEFAULT_FLOW_STRATEGY, crossinline transformer: WorkContext.(I1, I2) -> O): RecomputableAttribute<O>

Returns an Attribute whose value is the value of the given attributes, transformed according to the given transformer.

When the value of one of the attributes changes, the returned Attribute will change accordingly.

Parameters

flowStrategy - the default FlowStrategy to use. Defaults to FlowStrategy.EVENTUALLY_CONSISTENT

See Also

Attribute.transform


@JvmOverloads inline fun <I1, I2, I3, O> transform(f1: Attribute<I1>, f2: Attribute<I2>, f3: Attribute<I3>, flowStrategy: FlowStrategy = TRANSFORM_DEFAULT_FLOW_STRATEGY, crossinline transformer: WorkContext.(I1, I2, I3) -> O): RecomputableAttribute<O>
@JvmOverloads inline fun <I1, I2, I3, I4, O> transform(f1: Attribute<I1>, f2: Attribute<I2>, f3: Attribute<I3>, f4: Attribute<I4>, flowStrategy: FlowStrategy = TRANSFORM_DEFAULT_FLOW_STRATEGY, crossinline transformer: WorkContext.(I1, I2, I3, I4) -> O): RecomputableAttribute<O>
@JvmOverloads inline fun <I1, I2, I3, I4, I5, O> transform(f1: Attribute<I1>, f2: Attribute<I2>, f3: Attribute<I3>, f4: Attribute<I4>, f5: Attribute<I5>, flowStrategy: FlowStrategy = TRANSFORM_DEFAULT_FLOW_STRATEGY, crossinline transformer: WorkContext.(I1, I2, I3, I4, I5) -> O): RecomputableAttribute<O>
@JvmOverloads inline fun <I1, I2, I3, I4, I5, I6, O> transform(f1: Attribute<I1>, f2: Attribute<I2>, f3: Attribute<I3>, f4: Attribute<I4>, f5: Attribute<I5>, f6: Attribute<I6>, flowStrategy: FlowStrategy = TRANSFORM_DEFAULT_FLOW_STRATEGY, crossinline transformer: WorkContext.(I1, I2, I3, I4, I5, I6) -> O): RecomputableAttribute<O>
@JvmOverloads inline fun <I1, I2, I3, I4, I5, I6, I7, O> transform(f1: Attribute<I1>, f2: Attribute<I2>, f3: Attribute<I3>, f4: Attribute<I4>, f5: Attribute<I5>, f6: Attribute<I6>, f7: Attribute<I7>, flowStrategy: FlowStrategy = TRANSFORM_DEFAULT_FLOW_STRATEGY, crossinline transformer: WorkContext.(I1, I2, I3, I4, I5, I6, I7) -> O): RecomputableAttribute<O>
@JvmOverloads inline fun <I1, I2, I3, I4, I5, I6, I7, I8, O> transform(f1: Attribute<I1>, f2: Attribute<I2>, f3: Attribute<I3>, f4: Attribute<I4>, f5: Attribute<I5>, f6: Attribute<I6>, f7: Attribute<I7>, f8: Attribute<I8>, flowStrategy: FlowStrategy = TRANSFORM_DEFAULT_FLOW_STRATEGY, crossinline transformer: WorkContext.(I1, I2, I3, I4, I5, I6, I7, I8) -> O): RecomputableAttribute<O>
@JvmOverloads inline fun <I1, I2, I3, I4, I5, I6, I7, I8, I9, O> transform(f1: Attribute<I1>, f2: Attribute<I2>, f3: Attribute<I3>, f4: Attribute<I4>, f5: Attribute<I5>, f6: Attribute<I6>, f7: Attribute<I7>, f8: Attribute<I8>, f9: Attribute<I9>, flowStrategy: FlowStrategy = TRANSFORM_DEFAULT_FLOW_STRATEGY, crossinline transformer: WorkContext.(I1, I2, I3, I4, I5, I6, I7, I8, I9) -> O): RecomputableAttribute<O>
@JvmOverloads inline fun <I1, I2, I3, I4, I5, I6, I7, I8, I9, I10, O> transform(f1: Attribute<I1>, f2: Attribute<I2>, f3: Attribute<I3>, f4: Attribute<I4>, f5: Attribute<I5>, f6: Attribute<I6>, f7: Attribute<I7>, f8: Attribute<I8>, f9: Attribute<I9>, f10: Attribute<I10>, flowStrategy: FlowStrategy = TRANSFORM_DEFAULT_FLOW_STRATEGY, crossinline transformer: WorkContext.(I1, I2, I3, I4, I5, I6, I7, I8, I9, I10) -> O): RecomputableAttribute<O>
@JvmOverloads inline fun <I, O> transform(attributes: List<Attribute<I>>, flowStrategy: FlowStrategy = TRANSFORM_DEFAULT_FLOW_STRATEGY, crossinline transformer: WorkContext.(List<I>) -> O): RecomputableAttribute<O>
@JvmOverloads inline fun <I, O> transform(attributes: Array<Attribute<I>>, flowStrategy: FlowStrategy = TRANSFORM_DEFAULT_FLOW_STRATEGY, crossinline transformer: WorkContext.(List<I>) -> O): RecomputableAttribute<O>

Returns an Attribute whose value is the value of the given attributes, transformed according to the given transformer.

When the value of one of the attributes changes, the returned Attribute will change accordingly.

Parameters

flowStrategy - the default FlowStrategy to use. Defaults to FlowStrategy.SYNCHRONOUS

See Also

Attribute.transform