Result
public final class Result : ArrayProtocol, DictionaryProtocol, SequenceResult represents a single row in the query result. The projecting result value can be accessed either by using a zero based index or by a key corresponding to the SelectResult objects given when constructing the Query object.
A key used for accessing the projecting result value could be one of the followings:
- The alias name of the SelectResult object.
- The last component of the keypath or property name of the property expression used when creating the SelectResult object.
- The provision key in $1, $2, …$N format for the SelectResult that doesn’t have an alias name specified or is not a property expression such as an aggregate function expression (e.g. count(), avg(), min(), max(), sum() and etc). The number suffix after the ‘$’ character is a running number starting from one.
- 
                  
                  A number of the projecting values in the result. DeclarationSwift public var count: Int
- 
                  
                  The projecting result value at the given index. DeclarationSwift public func value(at index: Int) -> Any?ParametersindexThe select result index. Return ValueThe value. 
- 
                  
                  The projecting result value at the given index as a String value. Returns nil if the value is not a string. DeclarationSwift public func string(at index: Int) -> String?ParametersindexThe select result index. Return ValueThe String object or nil. 
- 
                  
                  The projecting result value at the given index as a Number value. Returns nil if the value is not a number. DeclarationSwift public func number(at index: Int) -> NSNumber?ParametersindexThe select result index. Return ValueThe Number value. 
- 
                  
                  The projecting result value at the given index as an Int value. Returns 0 if the value is not a numeric value. DeclarationSwift public func int(at index: Int) -> IntParametersindexThe select result index. Return ValueThe Int value. 
- 
                  
                  The projecting result value at the given index as an Int64 value. Returns 0 if the value is not a numeric value. DeclarationSwift public func int64(at index: Int) -> Int64ParametersindexThe select result index. Return ValueThe Int value. 
- 
                  
                  The projecting result value at the given index as a Double value. Returns 0.0 if the value is not a numeric value. DeclarationSwift public func double(at index: Int) -> DoubleParametersindexThe select result index. Return ValueThe Double value. 
- 
                  
                  The projecting result value at the given index as a Float value. Returns 0.0 if the value is not a numeric value. DeclarationSwift public func float(at index: Int) -> FloatParametersindexThe select result index. Return ValueThe Float value. 
- 
                  
                  The projecting result value at the given index as a Boolean value. Returns true if the value is not null, and is either trueor a nonzero number.DeclarationSwift public func boolean(at index: Int) -> BoolParametersindexThe select result index. Return ValueThe Bool value. 
- 
                  
                  The projecting result value at the given index as a Blob value. Returns nil if the value is not a blob. DeclarationSwift public func blob(at index: Int) -> Blob?ParametersindexThe select result index. Return ValueThe Blob value or nil. 
- 
                  
                  The projecting result value at the given index as a Date value. Returns nil if the value is not a string and is not parseable as a date. DeclarationSwift public func date(at index: Int) -> Date?ParametersindexThe select result index. Return ValueThe Date value or nil. 
- 
                  
                  The projecting result value at the given index as a readonly ArrayObject value. Returns nil if the value is not an array. DeclarationSwift public func array(at index: Int) -> ArrayObject?ParametersindexThe select result index. Return ValueThe ReadOnlyArrayObject or nil. 
- 
                  
                  The projecting result value at the given index as a readonly DictionaryObject value. Returns nil if the value is not a dictionary. DeclarationSwift public func dictionary(at index: Int) -> DictionaryObject?ParametersindexThe select result index. Return ValueThe ReadOnlyDictionaryObject or nil. 
- 
                  
                  Gets all values as an Array. The value types of the values contained in the returned Array object are Array, Blob, Dictionary, Number types, NSNull, and String. DeclarationSwift public func toArray() -> Array<Any>Return ValueThe Array representing all values. 
- 
                  
                  Subscript access to a ReadOnlyFragment object of the projecting result value at the given index. DeclarationSwift public subscript(index: Int) -> FragmentParametersindexThe select result index. 
- 
                  
                  All projecting keys. DeclarationSwift public var keys: Array<String>
- 
                  
                  The projecting result value for the given key. Returns nil if the key doesn’t exist. DeclarationSwift public func value(forKey key: String) -> Any?ParameterskeyThe select result key. Return ValueThe value or nil. 
- 
                  
                  The projecting result value for the given key as a String value. Returns nil if the key doesn’t exist, or the value is not a string. DeclarationSwift public func string(forKey key: String) -> String?ParameterskeyThe select result key. Return ValueThe String value or nil. 
- 
                  
                  The projecting result value for the given key as a Number value. Returns nil if the key doesn’t exist, or the value is not a number. DeclarationSwift public func number(forKey key: String) -> NSNumber?ParameterskeyThe select result key. Return ValueThe Number value or nil. 
- 
                  
                  The projecting result value for the given key as an Int value. Returns 0 if the key doesn’t exist, or the value is not a numeric value. DeclarationSwift public func int(forKey key: String) -> IntParameterskeyThe select result key. Return ValueThe Int value. 
- 
                  
                  The projecting result value for the given key as an Int64 value. Returns 0 if the key doesn’t exist, or the value is not a numeric value. DeclarationSwift public func int64(forKey key: String) -> Int64ParameterskeyThe select result key. Return ValueThe Int value. 
- 
                  
                  The projecting result value for the given key as a Float value. Returns 0.0 if the key doesn’t exist, or the value is not a numeric value. DeclarationSwift public func float(forKey key: String) -> FloatParameterskeyThe select result key. Return ValueThe float value. 
- 
                  
                  The projecting result value for the given key as a Double value. Returns 0.0 if the key doesn’t exist, or the value is not a numeric value. DeclarationSwift public func double(forKey key: String) -> DoubleParameterskeyThe select result key. Return ValueThe Double value. 
- 
                  
                  The projecting result value for the given key as a Boolean value. Returns true if the key doesn’t exist, or the value is not null, and is either trueor a nonzero number.DeclarationSwift public func boolean(forKey key: String) -> BoolParameterskeyThe select result key. Return ValueThe Bool value. 
- 
                  
                  The projecting result value for the given key as a Blob value. Returns nil if the key doesn’t exist, or the value is not a blob. DeclarationSwift public func blob(forKey key: String) -> Blob?ParameterskeyThe select result key. Return ValueThe Blob value or nil. 
- 
                  
                  The projecting result value for the given key as a Date value. Returns nil if the key doesn’t exist, or the value is not a string and is not parseable as a date. DeclarationSwift public func date(forKey key: String) -> Date?ParameterskeyThe select result key. Return ValueThe Date value or nil. 
- 
                  
                  The projecting result value for the given key as a readonly ArrayObject value. Returns nil if the key doesn’t exist, or the value is not an array. DeclarationSwift public func array(forKey key: String) -> ArrayObject?ParameterskeyThe select result key. Return ValueThe ReadOnlyArrayObject value or nil. 
- 
                  
                  The projecting result value for the given key as a readonly DictionaryObject value. Returns nil if the key doesn’t exist, or the value is not a dictionary. DeclarationSwift public func dictionary(forKey key: String) -> DictionaryObject?ParameterskeyThe select result key. Return ValueThe ReadOnlyDictionaryObject or nil. 
- 
                  
                  Tests whether a projecting result key exists or not. DeclarationSwift public func contains(key: String) -> BoolParameterskeyThe select result key. Return ValueTrue if exists, otherwise false. 
- 
                  
                  Gets all values as a Dictionary. The value types of the values contained in the returned Dictionary object are Array, Blob, Dictionary, Number types, NSNull, and String. DeclarationSwift public func toDictionary() -> Dictionary<String, Any>Return ValueThe Dictionary representing all values. 
- 
                  
                  Gets an iterator over the prjecting result keys. DeclarationSwift public func makeIterator() -> IndexingIterator<[String]>Return ValueThe IndexingIterator object of all result keys. 
- 
                  
                  Subscript access to a ReadOnlyFragment object of the projecting result value for the given key. DeclarationSwift public subscript(key: String) -> FragmentParameterskeyThe select result key. 
 Result Class Reference
        Result Class Reference