Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
Items 是一个数据预处理序列,类似于 java.util.stream.Stream 或 kotlinx.coroutines.flow.Flow, 但是不完全相同。
Link copied to clipboard
class SequenceItems<T>(sequenceFactory: (Items.PreprocessingProperties) -> Sequence<T>) : BaseItems<T, SequenceItems<T>>
Link copied to clipboard
class SimpleChannelIteratorItems<out T>(channelIteratorFactory: (Items.PreprocessingProperties) -> ChannelIterator<T>) : BaseItems<T, SimpleChannelIteratorItems<T>>
Link copied to clipboard
class SimpleIteratorItems<out T>(iteratorFactory: (Items.PreprocessingProperties) -> Iterator<T>) : BaseItems<T, SimpleIteratorItems<T>>
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
fun <E> Items.PreprocessingProperties.effectedFlow(block: suspend FlowCollector<E>.() -> Unit): Flow<E>
构建一个flow,并将当前 Items.PreprocessingProperties 作用于最终的 Flow 中。
Link copied to clipboard
Link copied to clipboard
提供 CoroutineScope 和构建 Flow 的函数 flowFactory 来构建 Items.
Link copied to clipboard
提供构建 Sequence 的函数 sequenceFactory 来构建 Items.
Link copied to clipboard
fun <E> Items.PreprocessingProperties.effectedSequence(block: suspend SequenceScope<E>.() -> Unit): Sequence<E>
构建一个sequence,并将当前 Items.PreprocessingProperties 作用于最终的 Sequence 中。
Link copied to clipboard
inline fun <T> effectedSequenceItems(crossinline block: suspend SequenceScope<T>.() -> Unit): Items<T>
Link copied to clipboard
将 Items.PreprocessingProperties 作用于目标 Stream 中。
将 Items.PreprocessingProperties 作用于目标 Sequence 中。
将一个 Items.PreprocessingProperties 作用于目标 ChannelIterator 上。
将 Items.PreprocessingProperties 作用于目标 Flow 中。
Link copied to clipboard
inline fun <T> CoroutineScope.itemsByFlow(crossinline flowFactory: (Items.PreprocessingProperties) -> Flow<T>): Items<T>
提供 CoroutineScope 和构建 Flow 的函数 flowFactory 来构建 Items.
Link copied to clipboard
inline fun <T> itemsBySequence(crossinline sequenceFactory: (Items.PreprocessingProperties) -> Sequence<T>): Items<T>
提供构建 Sequence 的函数 sequenceFactory 来构建 Items.
Link copied to clipboard
inline fun <T> CoroutineScope.produceItems(context: CoroutineContext = EmptyCoroutineContext, capacity: Int = 0, crossinline block: suspend ProducerScope<T>.(Items.PreprocessingProperties) -> Unit): Items<T>
通过 produce 构建 ChannelIterator 来得到一个 Items 实例。
Link copied to clipboard
inline fun <T> sequenceItems(crossinline block: suspend SequenceScope<T>.(Items.PreprocessingProperties) -> Unit): Items<T>
Link copied to clipboard
Link copied to clipboard