Package com.stardog.stark.query.io
Class QueryResultWriters
- java.lang.Object
-
- com.stardog.stark.query.io.QueryResultWriters
-
public final class QueryResultWriters extends java.lang.ObjectUtilities for
writingquery results.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<BooleanQueryResultWriter>to(QueryResultFormat theFormat, java.io.OutputStream theOutputStream, Options theOptions)static java.util.Optional<QueryResultWriter<BindingSet>>to(java.io.OutputStream theOutput, QueryResultFormat theFormat)static java.util.Optional<QueryResultWriter<BindingSet>>to(java.io.OutputStream theOutput, QueryResultFormat theFormat, Options theOptions)static voidwrite(BooleanQueryResult theResult, java.io.OutputStream theOutput, QueryResultFormat theQueryResultFormat)static voidwrite(BooleanQueryResult theResult, java.nio.file.Path thePath, QueryResultFormat theQueryResultFormat)static voidwrite(QueryResult theResult, java.nio.file.Path thePath, QueryResultFormat theQueryResultFormat)static voidwrite(SelectQueryResult theResult, SelectQueryResultWriter theWriter)static voidwrite(SelectQueryResult theResult, java.io.OutputStream theOutput, QueryResultFormat theQueryResultFormat)static voidwrite(SelectQueryResult theResult, java.nio.file.Path thePath, QueryResultFormat theQueryResultFormat)
-
-
-
Method Detail
-
write
public static void write(@Nonnull QueryResult theResult, @Nonnull java.nio.file.Path thePath, @Nonnull QueryResultFormat theQueryResultFormat) throws java.io.IOException, ResultWritingFailed- Throws:
java.io.IOExceptionResultWritingFailed- Implementation Notes:
- The result set is closed as a side effect of this call
-
write
public static void write(@Nonnull BooleanQueryResult theResult, @Nonnull java.nio.file.Path thePath, @Nonnull QueryResultFormat theQueryResultFormat) throws java.io.IOException, ResultWritingFailed- Throws:
java.io.IOExceptionResultWritingFailed- Implementation Notes:
- The result set is closed as a side effect of this call
-
write
public static void write(@Nonnull BooleanQueryResult theResult, @Nonnull java.io.OutputStream theOutput, @Nonnull QueryResultFormat theQueryResultFormat) throws java.io.IOException, ResultWritingFailed- Throws:
java.io.IOExceptionResultWritingFailed- Implementation Notes:
- The result set is closed as a side effect of this call
-
write
public static void write(@Nonnull SelectQueryResult theResult, @Nonnull java.nio.file.Path thePath, @Nonnull QueryResultFormat theQueryResultFormat) throws java.io.IOException, ResultWritingFailed- Throws:
java.io.IOExceptionResultWritingFailed- Implementation Notes:
- The result set is closed as a side effect of this call
-
write
public static void write(@Nonnull SelectQueryResult theResult, @Nonnull java.io.OutputStream theOutput, @Nonnull QueryResultFormat theQueryResultFormat) throws java.io.IOException, ResultWritingFailed- Throws:
java.io.IOExceptionResultWritingFailed- Implementation Notes:
- The result set is closed as a side effect of this call
-
write
public static void write(@Nonnull SelectQueryResult theResult, @Nonnull SelectQueryResultWriter theWriter) throws ResultWritingFailed- Throws:
ResultWritingFailed- Implementation Notes:
- The result set is closed as a side effect of this call
-
to
public static java.util.Optional<QueryResultWriter<BindingSet>> to(@Nonnull java.io.OutputStream theOutput, @Nonnull QueryResultFormat theFormat)
- Parameters:
theOutput- the output to write totheFormat- the format to write in- Returns:
- the `QueryResultWriter` to use for writing
- See Also:
QueryResultWriterOptions- Implementation Notes:
- The `OutputStream` is *not* closed when writing is complete
-
to
public static java.util.Optional<BooleanQueryResultWriter> to(@Nonnull QueryResultFormat theFormat, @Nonnull java.io.OutputStream theOutputStream, @Nonnull Options theOptions)
-
to
public static java.util.Optional<QueryResultWriter<BindingSet>> to(@Nonnull java.io.OutputStream theOutput, @Nonnull QueryResultFormat theFormat, @Nonnull Options theOptions)
- Parameters:
theOutput- the output to write totheFormat- the format to write in- Returns:
- the `QueryResultWriter` to use for writing
- See Also:
QueryResultWriterOptions- Implementation Notes:
- The `OutputStream` is *not* closed when writing is complete
-
-