public class TupleResult extends Object
TypedValue
s.
Values for individual fields can be fetched as TypedValue
or converted into a requested type.
Field values can be fetched as one of the following types:
TypedValue
Date
String
UUID
To iterate over the result set use standard iteration flows.
Constructor and Description |
---|
TupleResult(JNA.TypedValueList pointer) |
Modifier and Type | Method and Description |
---|---|
Boolean |
asBool(Integer index)
Return the
Boolean at the specified index. |
Date |
asDate(Integer index)
Return the
Date at the specified index. |
Double |
asDouble(Integer index)
Return the
Double at the specified index. |
Long |
asEntid(Integer index)
Return the Entid at the specified index.
|
String |
asKeyword(Integer index)
Return the keyword
String at the specified index. |
Long |
asLong(Integer index)
Return the
Long at the specified index. |
String |
asString(Integer index)
Return the
String at the specified index. |
UUID |
asUUID(Integer index)
Return the
UUID at the specified index. |
void |
close() |
protected void |
destroyPointer(JNA.TypedValueList p) |
protected void |
finalize() |
TypedValue |
get(Integer index)
Return the
TypedValue at the specified index. |
public TupleResult(JNA.TypedValueList pointer)
public TypedValue get(Integer index)
TypedValue
at the specified index.
If the index is greater than the number of values then this function will crash.index
- The index of the value to fetch.TypedValue
at that index.public Long asLong(Integer index)
Long
at the specified index.
If the index is greater than the number of values then this function will crash.
If the value type if the TypedValue
at this index is not `Long` then this function will crash.index
- The index of the value to fetch.Long
at that index.public Long asEntid(Integer index)
TypedValue
at this index is not `Ref` then this function will crash.index
- The index of the value to fetch.public String asKeyword(Integer index)
String
at the specified index.
If the index is greater than the number of values then this function will crash.
If the value type if the TypedValue
at this index is not `Keyword` then this function will crash.index
- The index of the value to fetch.public Boolean asBool(Integer index)
Boolean
at the specified index.
If the index is greater than the number of values then this function will crash.
If the value type if the TypedValue
at this index is not `Boolean` then this function will crash.index
- The index of the value to fetch.Boolean
at that index.public Double asDouble(Integer index)
Double
at the specified index.
If the index is greater than the number of values then this function will crash.
If the value type if the TypedValue
at this index is not `Double` then this function will crash.index
- The index of the value to fetch.Double
at that index.public Date asDate(Integer index)
Date
at the specified index.
If the index is greater than the number of values then this function will crash.
If the value type if the TypedValue
at this index is not `Instant` then this function will crash.index
- The index of the value to fetch.Date
at that index.public String asString(Integer index)
String
at the specified index.
If the index is greater than the number of values then this function will crash.
If the value type if the TypedValue
at this index is not `String` then this function will crash.index
- The index of the value to fetch.String
at that index.public UUID asUUID(Integer index)
UUID
at the specified index.
If the index is greater than the number of values then this function will crash.
If the value type if the TypedValue
at this index is not `Uuid` then this function will crash.index
- The index of the value to fetch.UUID
at that index.protected void destroyPointer(JNA.TypedValueList p)
public void close()
close
in interface AutoCloseable