org.ragna.comet.stream.extractors.list

Type members

Classlikes

case class ListExtractor[A](items: Seq[A], format: DataFormat, inference: InferenceEngine, concurrentItems: Int, itemTimeout: Option[FiniteDuration])(implicit toRdfElement: A => RDFElement) extends StreamExtractor[A]

StreamExtractor capable of extracting RDF items from an in-memory sequence of items

StreamExtractor capable of extracting RDF items from an in-memory sequence of items

Type parameters:
A

Type of the items contained in the input list

Value parameters:
concurrentItems

Maximum number of items to be extracted and parsed for RDF in parallel (set it to 1 for sequential execution, bear in mind that high values won't necessarily translate into performance improvements unless you know what you are doing)

format

Format of the RDF data arriving from the Stream, the Extractor expects all data items to share format

inference

Inference of the RDF data arriving from the Stream, the Extractor expects all data items to share inference

items

List of elements to be used as input stream

toRdfElement

Helper function for converting the incoming items of type A into RDFElements (implicit conversions provided in RDFElementImplicits)

Source:
ListExtractor.scala