Class FilterExecutionJava
java.lang.Object
org.aksw.jena_sparql_api.io.endpoint.FilterExecutionJava
- All Implemented Interfaces:
FilterConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Function<InputStream,InputStream> protected Destination -
Constructor Summary
ConstructorsConstructorDescriptionFilterExecutionJava(Function<InputStream, InputStream> processor, Destination source) -
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<InputStreamSupplier>Ideally, premature closing of the input stream should propagate upstream and terminate any transformation processes upstreamifNeedsFileInput(Supplier<Path> pathRequester, BiConsumer<Path, FileWritingProcess> processCallback) Same as execStream() as this execution engine will never ask for the creation of temporary filesifNeedsFileOutput(Supplier<Path> pathRequester, BiConsumer<Path, FileWritingProcess> processCallback) outputToFile(Path path) If explicit output to a file is requested, the handler set via ifNeedsFileOutput will not be called.If the execution requires the generation of an intermediate file, the handler for ifNeedsFileOutput should be calledpipeInto(FilterEngine nextFilter) booleanMethod yields true if the filter needs to create an intermediary output filetoString()
-
Field Details
-
processor
-
source
-
-
Constructor Details
-
FilterExecutionJava
-
-
Method Details
-
execStream
Ideally, premature closing of the input stream should propagate upstream and terminate any transformation processes upstream- Specified by:
execStreamin interfaceFilterConfig
-
ifNeedsFileInput
public FilterConfig ifNeedsFileInput(Supplier<Path> pathRequester, BiConsumer<Path, FileWritingProcess> processCallback) Same as execStream() as this execution engine will never ask for the creation of temporary files- Specified by:
ifNeedsFileInputin interfaceFilterConfig- Throws:
IOException
-
ifNeedsFileOutput
public FilterConfig ifNeedsFileOutput(Supplier<Path> pathRequester, BiConsumer<Path, FileWritingProcess> processCallback) - Specified by:
ifNeedsFileOutputin interfaceFilterConfig
-
pipeInto
- Specified by:
pipeIntoin interfaceFilterConfig
-
outputToFile
Description copied from interface:FilterConfigIf explicit output to a file is requested, the handler set via ifNeedsFileOutput will not be called.- Specified by:
outputToFilein interfaceFilterConfig- Returns:
-
outputToStream
Description copied from interface:FilterConfigIf the execution requires the generation of an intermediate file, the handler for ifNeedsFileOutput should be called- Specified by:
outputToStreamin interfaceFilterConfig- Returns:
-
requiresFileOutput
public boolean requiresFileOutput()Description copied from interface:FilterConfigMethod yields true if the filter needs to create an intermediary output file- Specified by:
requiresFileOutputin interfaceFilterConfig- Returns:
-
toString
-