Package com.stardog.stark.query.io.text
Class TextBooleanQueryResultWriter
java.lang.Object
com.stardog.stark.query.io.text.TextBooleanQueryResultWriter
- All Implemented Interfaces:
BooleanQueryResultHandler,BooleanQueryResultWriter,QueryResultWriter<Boolean>,QueryResultHandler<Boolean>
Writer implementation for simple text-based
boolean results
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TextBooleanQueryResultWriter
-
-
Method Details
-
format
Theformatthis writer will serialize output in- Specified by:
formatin interfaceQueryResultWriter<Boolean>- Returns:
- the format
-
namespace
- Specified by:
namespacein interfaceQueryResultWriter<Boolean>- Throws:
ResultWritingFailed
-
links
Handle the set of links from the result- Specified by:
linksin interfaceQueryResultHandler<Boolean>- Specified by:
linksin interfaceQueryResultWriter<Boolean>- Parameters:
theLinks- The links- See Also:
-
handle
Handle a result to a query- Specified by:
handlein interfaceBooleanQueryResultHandler- Specified by:
handlein interfaceQueryResultHandler<Boolean>- Specified by:
handlein interfaceQueryResultWriter<Boolean>- Parameters:
theResult- the result
-
start
public void start()Indicates that writing has begun.- Specified by:
startin interfaceQueryResultHandler<Boolean>- Specified by:
startin interfaceQueryResultWriter<Boolean>
-
end
public void end()Signal that query processing has completed- Specified by:
endin interfaceQueryResultHandler<Boolean>- Specified by:
endin interfaceQueryResultWriter<Boolean>
-