public final class Result extends Object implements DictionaryInterface, Iterable<String>
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String key)
Tests whether a projecting result key exists or not.
|
int |
count()
Return A number of the projecting values in the result.
|
Array |
getArray(int index)
The projecting result value at the given index as a Array object
|
Array |
getArray(String key)
The projecting result value for the given key as a readonly Array object.
|
Blob |
getBlob(int index)
The projecting result value at the given index as a Blob object
|
Blob |
getBlob(String key)
The projecting result value for the given key as a Blob object.
|
boolean |
getBoolean(int index)
The projecting result value at the given index as a boolean value
|
boolean |
getBoolean(String key)
The projecting result value for the given key as a boolean value.
|
Date |
getDate(int index)
The projecting result value at the given index as an Array object
|
Date |
getDate(String key)
The projecting result value for the given key as a Date object.
|
Dictionary |
getDictionary(int index)
The projecting result value at the given index as a Dictionary object
|
Dictionary |
getDictionary(String key)
The projecting result value for the given key as a readonly Dictionary object.
|
double |
getDouble(int index)
The projecting result value at the given index as a double value
|
double |
getDouble(String key)
The projecting result value for the given key as a double value.
|
float |
getFloat(int index)
The projecting result value at the given index as a float value
|
float |
getFloat(String key)
The projecting result value for the given key as a float value.
|
int |
getInt(int index)
The projecting result value at the given index as a integer value
|
int |
getInt(String key)
The projecting result value for the given key as a integer value
Returns 0 if the key doesn't exist.
|
List<String> |
getKeys()
Return All projecting keys
|
long |
getLong(int index)
The projecting result value at the given index as a long value
|
long |
getLong(String key)
The projecting result value for the given key as a long value
Returns 0L if the key doesn't exist.
|
Number |
getNumber(int index)
The projecting result value at the given index as a Number object
|
Number |
getNumber(String key)
The projecting result value for the given key as a Number object
Returns null if the key doesn't exist.
|
String |
getString(int index)
The projecting result value at the given index as a String object
|
String |
getString(String key)
The projecting result value for the given key as a String object
Returns null if the key doesn't exist.
|
Object |
getValue(int index)
The projecting result value at the given index.
|
Object |
getValue(String key)
The projecting result value for the given key as a Object
Returns null if the key doesn't exist.
|
Iterator<String> |
iterator()
Gets an iterator over the projecting result keys.
|
List<Object> |
toList()
Gets all values as an List.
|
Map<String,Object> |
toMap()
Gets all values as a Dictionary.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public int count()
count
in interface DictionaryInterface
public Object getValue(int index)
index
- The select result index as a Object.public String getString(int index)
index
- The select result index.public Number getNumber(int index)
index
- The select result index.public int getInt(int index)
index
- The select result index.public long getLong(int index)
index
- The select result index.public float getFloat(int index)
index
- The select result index.public double getDouble(int index)
index
- The select result index.public boolean getBoolean(int index)
index
- The select result index.public Blob getBlob(int index)
index
- The select result index.public Date getDate(int index)
index
- The select result index.public Array getArray(int index)
index
- The select result index.public Dictionary getDictionary(int index)
index
- The select result index.@NonNull public List<Object> toList()
@NonNull public List<String> getKeys()
getKeys
in interface DictionaryInterface
@Nullable public Object getValue(@NonNull String key)
getValue
in interface DictionaryInterface
key
- The select result key.@Nullable public String getString(@NonNull String key)
getString
in interface DictionaryInterface
key
- The select result key.@Nullable public Number getNumber(@NonNull String key)
getNumber
in interface DictionaryInterface
key
- The select result key.public int getInt(@NonNull String key)
getInt
in interface DictionaryInterface
key
- The select result key.public long getLong(@NonNull String key)
getLong
in interface DictionaryInterface
key
- The select result key.public float getFloat(@NonNull String key)
getFloat
in interface DictionaryInterface
key
- The select result key.public double getDouble(@NonNull String key)
getDouble
in interface DictionaryInterface
key
- The select result key.public boolean getBoolean(@NonNull String key)
getBoolean
in interface DictionaryInterface
key
- The select result key.@Nullable public Blob getBlob(@NonNull String key)
getBlob
in interface DictionaryInterface
key
- The select result key.@Nullable public Date getDate(@NonNull String key)
getDate
in interface DictionaryInterface
key
- The select result key.@Nullable public Array getArray(@NonNull String key)
getArray
in interface DictionaryInterface
key
- The select result key.@Nullable public Dictionary getDictionary(@NonNull String key)
getDictionary
in interface DictionaryInterface
key
- The select result key.@NonNull public Map<String,Object> toMap()
toMap
in interface DictionaryInterface
public boolean contains(@NonNull String key)
contains
in interface DictionaryInterface
key
- The select result key.