Class BinarySelectQueryResultParser
- java.lang.Object
-
- com.stardog.stark.query.io.binary.BinarySelectQueryResultParser
-
- All Implemented Interfaces:
BinaryQueryResultConstants
,QueryResultParser<SelectQueryResultHandler>
,SelectQueryResultParser
public final class BinarySelectQueryResultParser extends java.lang.Object implements SelectQueryResultParser, BinaryQueryResultConstants
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
-
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 Constructor Description BinarySelectQueryResultParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryResultFormat
format()
The format this parser can parsevoid
parse(java.io.InputStream theStream, SelectQueryResultHandler theHandler, Options theOptions)
Parse the results.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.stardog.stark.query.io.QueryResultParser
parse
-
-
-
-
Method Detail
-
format
@Nonnull public QueryResultFormat format()
The format this parser can parse- Specified by:
format
in interfaceQueryResultParser<SelectQueryResultHandler>
- Returns:
- the format
-
parse
public void parse(@Nonnull java.io.InputStream theStream, @Nonnull SelectQueryResultHandler theHandler, @Nonnull Options theOptions) throws java.io.IOException
Parse the results.- Specified by:
parse
in interfaceQueryResultParser<SelectQueryResultHandler>
- Parameters:
theStream
- the stream to read fromtheHandler
- the handler to pass parse events totheOptions
- the parsing options- Throws:
java.io.IOException
- if there was an error while reading from the stream
-
-