Class BinarySelectQueryResultWriter
java.lang.Object
com.stardog.stark.query.io.binary.BinarySelectQueryResultWriter
- All Implemented Interfaces:
BinaryQueryResultConstants,QueryResultWriter<BindingSet>,SelectQueryResultWriter,QueryResultHandler<BindingSet>,SelectQueryResultHandler
public final class BinarySelectQueryResultWriter
extends Object
implements SelectQueryResultWriter, BinaryQueryResultConstants
Writer for SelectQueryResult in a binary format
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
Fields inherited from interface com.stardog.stark.query.io.binary.BinaryQueryResultConstants
BNODE_RECORD_MARKER, DATATYPE_LITERAL_RECORD_MARKER, DEFAULT_GRAPH_RECORD_MARKER, EMPTY_ROW_RECORD_MARKER, ERROR_RECORD_MARKER, FORMAT_VERSION, LANG_LITERAL_RECORD_MARKER, MAGIC_NUMBER, MALFORMED_QUERY_ERROR, NAMED_GRAPH_RECORD_MARKER, NAMESPACE_RECORD_MARKER, NULL_RECORD_MARKER, PLAIN_LITERAL_RECORD_MARKER, QNAME_RECORD_MARKER, QUERY_EVALUATION_ERROR, REPEAT_RECORD_MARKER, STATEMENT_RECORD_MARKER, TABLE_END_RECORD_MARKER, URI_RECORD_MARKER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidend()Signal that query processing has completedformat()Theformatthis writer will serialize output invoidhandle(BindingSet theBindings) Handle a result to a queryvoidHandle the set of links from the resultvoidvoidstart()Indicates that writing has begun.voidThe variables in the projection of the query
-
Constructor Details
-
BinarySelectQueryResultWriter
-
-
Method Details
-
start
Indicates that writing has begun.- Specified by:
startin interfaceQueryResultHandler<BindingSet>- Specified by:
startin interfaceQueryResultWriter<BindingSet>- Throws:
ResultWritingFailed- if writing failed.
-
namespace
- Specified by:
namespacein interfaceQueryResultWriter<BindingSet>- Throws:
ResultWritingFailed
-
variables
The variables in the projection of the query- Specified by:
variablesin interfaceSelectQueryResultHandler- Parameters:
theVars- the variables- See Also:
-
handle
Handle a result to a query- Specified by:
handlein interfaceQueryResultHandler<BindingSet>- Specified by:
handlein interfaceQueryResultWriter<BindingSet>- Parameters:
theBindings- the result- Throws:
ResultWritingFailed
-
end
Signal that query processing has completed- Specified by:
endin interfaceQueryResultHandler<BindingSet>- Specified by:
endin interfaceQueryResultWriter<BindingSet>- Throws:
ResultWritingFailed
-
links
Handle the set of links from the result- Specified by:
linksin interfaceQueryResultHandler<BindingSet>- Specified by:
linksin interfaceQueryResultWriter<BindingSet>- Parameters:
theLinks- The links- Throws:
ResultWritingFailed- See Also:
-
format
Theformatthis writer will serialize output in- Specified by:
formatin interfaceQueryResultWriter<BindingSet>- Returns:
- the format
-