Package com.semedy.reasoner.api.core
Class ResultBufferThreaded
java.lang.Object
com.semedy.reasoner.api.core.ResultBufferThreaded
- All Implemented Interfaces:
ResultBuffer
Buffer for results of queries.
- Author:
- juergen
-
Constructor Summary
ConstructorsConstructorDescriptionResultBufferThreaded(long[] codebuffer, int length, Object[] objectbuffer, List<String> variables) -
Method Summary
-
Constructor Details
-
ResultBufferThreaded
-
-
Method Details
-
get
Get object with variable name.
Queries must deliver the variable names (parameter).- Specified by:
getin interfaceResultBuffer- Parameters:
variableName- , name of the variable including question mark- Returns:
- result object
- Throws:
IOExceptionReasoningException
-
get
Get object at argument index- Specified by:
getin interfaceResultBuffer- Parameters:
index- , argument index- Returns:
- result object
- Throws:
SymboltableExceptionIOException
-
getCode
Get code with variable name.
Queries must deliver the variable names (parameter).- Specified by:
getCodein interfaceResultBuffer- Parameters:
variableName- , name of the variable including question mark- Returns:
- result object
- Throws:
IOExceptionReasoningException
-
getCode
Get code at argument index- Specified by:
getCodein interfaceResultBuffer- Parameters:
index- , argument index- Returns:
- result object
- Throws:
SymboltableExceptionIOException
-
length
public int length()get result tuple length- Specified by:
lengthin interfaceResultBuffer- Returns:
- length of tuple
-
toString
- Specified by:
toStringin interfaceResultBuffer- Overrides:
toStringin classObject
-
toArray
get an array of result objects- Specified by:
toArrayin interfaceResultBuffer- Returns:
- array of result objects
- Throws:
SymboltableExceptionIOException
-