public class QueryResultImpl extends Object implements QueryResult
Title: Default implementation of QueryResult
Description:
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
| Constructor and Description |
|---|
QueryResultImpl(Query query) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ResultBinding binding)
Adds a new binding to the query result.
|
boolean |
equals(Object obj) |
List<aterm.ATermAppl> |
getResultVars()
Returns result variables.
|
int |
hashCode() |
boolean |
isDistinct() |
boolean |
isEmpty()
Tests whether the result is empty or not.
|
Iterator<ResultBinding> |
iterator() |
int |
size()
Returns number of bindings in the result.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic QueryResultImpl(Query query)
public void add(ResultBinding binding)
add in interface QueryResultbinding - to be addedpublic List<aterm.ATermAppl> getResultVars()
getResultVars in interface QueryResultpublic boolean isDistinct()
isDistinct in interface QueryResultpublic boolean isEmpty()
isEmpty in interface QueryResultpublic Iterator<ResultBinding> iterator()
iterator in interface Iterable<ResultBinding>public int size()
size in interface QueryResultCopyright © 2019. All rights reserved.