EntityStream
open class EntityStream : ObjectBase
A stream of entity values.
-
Close this stream and release all associated resources, without checking first that the end of stream has been reached.
See also
close.Declaration
Swift
open func abort() throws -
Close this stream and release all associated resources, checking first that the end of stream has been reached. Can safely be called even if the stream was previously closed. If a delta link was encountered before the stream was closed, it will be available via the
deltaLinkproperty only after the stream is closed. If a next link was encountered before the stream was closed, it will be available via thenextLinkproperty only after the stream is closed.See also
abort.Declaration
Swift
open func close() throws -
The delta-link (if any) that was encountered when
nextwas called repeatedly until end of stream and thenclosewas called, otherwisenil.Declaration
Swift
open var deltaLink: String? { get } -
Declaration
Swift
open func hasNext() throws -> BoolReturn Value
True If this stream has not been
closeand has a next entity value. Otherwise returnfalse. -
Has
closebeen called?Declaration
Swift
open var isClosed: Bool { get } -
Declaration
Swift
open func next() throws -> EntityValueReturn Value
The next entity value in this stream. Only call this if a previous call to
hasNextreturnedtrue. -
The next-link (if any) that was encountered when
nextwas called repeatedly until end of stream and thenclosewas called, otherwisenil.Declaration
Swift
open var nextLink: String? { get } -
The read-link (if any) that was encountered when
nextwas called repeatedly until end of stream and thenclosewas called, otherwisenil.Declaration
Swift
open var readLink: String? { get }