Package com.stardog.stark.query.io
Class QueryResultWriters
java.lang.Object
com.stardog.stark.query.io.QueryResultWriters
Utilities for writing query results.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<BooleanQueryResultWriter> to(QueryResultFormat theFormat, OutputStream theOutputStream, Options theOptions) static Optional<QueryResultWriter<BindingSet>> to(OutputStream theOutput, QueryResultFormat theFormat) static Optional<QueryResultWriter<BindingSet>> to(OutputStream theOutput, QueryResultFormat theFormat, Options theOptions) static voidwrite(BooleanQueryResult theResult, OutputStream theOutput, QueryResultFormat theQueryResultFormat) static voidwrite(BooleanQueryResult theResult, Path thePath, QueryResultFormat theQueryResultFormat) static voidwrite(QueryResult theResult, Path thePath, QueryResultFormat theQueryResultFormat) static voidwrite(SelectQueryResult theResult, SelectQueryResultWriter theWriter) static voidwrite(SelectQueryResult theResult, OutputStream theOutput, QueryResultFormat theQueryResultFormat) static voidwrite(SelectQueryResult theResult, Path thePath, QueryResultFormat theQueryResultFormat)
-
Method Details
-
write
public static void write(@Nonnull QueryResult theResult, @Nonnull Path thePath, @Nonnull QueryResultFormat theQueryResultFormat) throws IOException, ResultWritingFailed - Throws:
IOExceptionResultWritingFailed- Implementation Notes:
- The result set is closed as a side effect of this call
-
write
public static void write(@Nonnull BooleanQueryResult theResult, @Nonnull Path thePath, @Nonnull QueryResultFormat theQueryResultFormat) throws IOException, ResultWritingFailed - Throws:
IOExceptionResultWritingFailed- Implementation Notes:
- The result set is closed as a side effect of this call
-
write
public static void write(@Nonnull BooleanQueryResult theResult, @Nonnull OutputStream theOutput, @Nonnull QueryResultFormat theQueryResultFormat) throws IOException, ResultWritingFailed - Throws:
IOExceptionResultWritingFailed- Implementation Notes:
- The result set is closed as a side effect of this call
-
write
public static void write(@Nonnull SelectQueryResult theResult, @Nonnull Path thePath, @Nonnull QueryResultFormat theQueryResultFormat) throws IOException, ResultWritingFailed - Throws:
IOExceptionResultWritingFailed- Implementation Notes:
- The result set is closed as a side effect of this call
-
write
public static void write(@Nonnull SelectQueryResult theResult, @Nonnull OutputStream theOutput, @Nonnull QueryResultFormat theQueryResultFormat) throws IOException, ResultWritingFailed - Throws:
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 Optional<QueryResultWriter<BindingSet>> to(@Nonnull 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:
- Implementation Notes:
- The `OutputStream` is *not* closed when writing is complete
-
to
public static Optional<BooleanQueryResultWriter> to(@Nonnull QueryResultFormat theFormat, @Nonnull OutputStream theOutputStream, @Nonnull Options theOptions) -
to
public static Optional<QueryResultWriter<BindingSet>> to(@Nonnull 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:
- Implementation Notes:
- The `OutputStream` is *not* closed when writing is complete
-