📄 query.html
字号:
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/semanticweb/kaon2/api/reasoner/Query.html#next()">next</A></B>()</CODE>
<BR>
Moves the cursor of the stream to the next position.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/semanticweb/kaon2/api/reasoner/Query.html#open()">open</A></B>()</CODE>
<BR>
Starts the evaluation of the query.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/semanticweb/kaon2/api/reasoner/Query.html#setDistinct(boolean)">setDistinct</A></B>(boolean distinct)</CODE>
<BR>
Ensures that duplicates are removed from the query result.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/semanticweb/kaon2/api/reasoner/Query.html#setLimit(int)">setLimit</A></B>(int limit)</CODE>
<BR>
Sets the limit on the number of results returned.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/semanticweb/kaon2/api/reasoner/Query.html#setOffset(int)">setOffset</A></B>(int offset)</CODE>
<BR>
Sets the number of tuples that are skipped after the query is executed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/semanticweb/kaon2/api/reasoner/Query.html#sortResults(int[])">sortResults</A></B>(int[] sortedPositions)</CODE>
<BR>
Ensures that the results are sorted.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/semanticweb/kaon2/api/reasoner/Query.html#sortResults(int[], java.util.Comparator[])">sortResults</A></B>(int[] sortedPositions,
java.util.Comparator<<A HREF="../../../../../org/semanticweb/kaon2/api/logic/Term.html" title="interface in org.semanticweb.kaon2.api.logic">Term</A>>[] comparators)</CODE>
<BR>
Ensures that the results are sorted.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../org/semanticweb/kaon2/api/logic/Term.html" title="interface in org.semanticweb.kaon2.api.logic">Term</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/semanticweb/kaon2/api/reasoner/Query.html#tupleBuffer()">tupleBuffer</A></B>()</CODE>
<BR>
Returns the buffer containing the current tuple of the operator.</TD>
</TR>
</TABLE>
<P>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="dispose()"><!-- --></A><H3>
dispose</H3>
<PRE>
void <B>dispose</B>()</PRE>
<DL>
<DD>Should be callend when the query is not used any more in order to free resources.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getReasoner()"><!-- --></A><H3>
getReasoner</H3>
<PRE>
<A HREF="../../../../../org/semanticweb/kaon2/api/reasoner/Reasoner.html" title="interface in org.semanticweb.kaon2.api.reasoner">Reasoner</A> <B>getReasoner</B>()</PRE>
<DL>
<DD>Returns the reasoner that created the query.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the reasoner that created the query</DL>
</DD>
</DL>
<HR>
<A NAME="getQueryFormula()"><!-- --></A><H3>
getQueryFormula</H3>
<PRE>
<A HREF="../../../../../org/semanticweb/kaon2/api/logic/Formula.html" title="interface in org.semanticweb.kaon2.api.logic">Formula</A> <B>getQueryFormula</B>()</PRE>
<DL>
<DD>Returns the formula of the query.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the formula of the query</DL>
</DD>
</DL>
<HR>
<A NAME="getDistinguishedVariables()"><!-- --></A><H3>
getDistinguishedVariables</H3>
<PRE>
<A HREF="../../../../../org/semanticweb/kaon2/api/logic/Variable.html" title="interface in org.semanticweb.kaon2.api.logic">Variable</A>[] <B>getDistinguishedVariables</B>()</PRE>
<DL>
<DD>Returns the distinguished variables of the query. These are the variables that are returned by the query.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the distinguished variables of the query</DL>
</DD>
</DL>
<HR>
<A NAME="getConstructPattern()"><!-- --></A><H3>
getConstructPattern</H3>
<PRE>
<A HREF="../../../../../org/semanticweb/kaon2/api/logic/FactFormula.html" title="interface in org.semanticweb.kaon2.api.logic">FactFormula</A>[] <B>getConstructPattern</B>()</PRE>
<DL>
<DD>Returns the construct pattern of the query.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the construct pattern of the query</DL>
</DD>
</DL>
<HR>
<A NAME="getTemporaryChanges()"><!-- --></A><H3>
getTemporaryChanges</H3>
<PRE>
<A HREF="../../../../../org/semanticweb/kaon2/api/OntologyChangeEvent.html" title="class in org.semanticweb.kaon2.api">OntologyChangeEvent</A>[] <B>getTemporaryChanges</B>()</PRE>
<DL>
<DD>Returns the temporary changes of the query.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the temporary changes of the query</DL>
</DD>
</DL>
<HR>
<A NAME="interrupt()"><!-- --></A><H3>
interrupt</H3>
<PRE>
void <B>interrupt</B>()
throws <A HREF="../../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></PRE>
<DL>
<DD>Equivalent to getReasoner().interrupt(). This method is thread-safe.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></CODE> - thrown if there is an error</DL>
</DD>
</DL>
<HR>
<A NAME="setDistinct(boolean)"><!-- --></A><H3>
setDistinct</H3>
<PRE>
void <B>setDistinct</B>(boolean distinct)
throws <A HREF="../../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></PRE>
<DL>
<DD>Ensures that duplicates are removed from the query result.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>distinct</CODE> - if <code>true</code>, duplicate tuples are removed from the query result
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></CODE> - thrown if there is an error in evaluation</DL>
</DD>
</DL>
<HR>
<A NAME="sortResults(int[], java.util.Comparator[])"><!-- --></A><H3>
sortResults</H3>
<PRE>
void <B>sortResults</B>(int[] sortedPositions,
java.util.Comparator<<A HREF="../../../../../org/semanticweb/kaon2/api/logic/Term.html" title="interface in org.semanticweb.kaon2.api.logic">Term</A>>[] comparators)
throws <A HREF="../../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></PRE>
<DL>
<DD>Ensures that the results are sorted. This method cancels the effects of distinctness.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sortedPositions</CODE> - the positions which are sorted<DD><CODE>comparators</CODE> - the comparators for positions
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></CODE> - thrown if there is an error in evaluation</DL>
</DD>
</DL>
<HR>
<A NAME="sortResults(int[])"><!-- --></A><H3>
sortResults</H3>
<PRE>
void <B>sortResults</B>(int[] sortedPositions)
throws <A HREF="../../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></PRE>
<DL>
<DD>Ensures that the results are sorted. Each position is sorted in the natural order.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sortedPositions</CODE> - the positions which are sorted
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></CODE> - thrown if there is an error in evaluation</DL>
</DD>
</DL>
<HR>
<A NAME="doNotSortResults()"><!-- --></A><H3>
doNotSortResults</H3>
<PRE>
void <B>doNotSortResults</B>()
throws <A HREF="../../../../../org/semanticweb/kaon2/api/KAON2Exception.html" title="class in org.semanticweb.kaon2.api">KAON2Exception</A></PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -