Get - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

# Online Help

###### All Products    Maple    MapleSim

DataInterfaceStream

 Get
 return the data stored in the DataInterfaceStream

 Calling Sequence stream:-Get( )

Parameters

 stream - DataInterfaceStream module

Description

 • Get returns the remainder of the data stored in stream. If no data has been accessed with Read or Skip then Get returns the entire element.

Examples

 > $\mathrm{driver}≔\mathrm{Database}\left[\mathrm{LoadDriver}\right]\left(\right):$
 > $\mathrm{conn}≔\mathrm{driver}:-\mathrm{OpenConnection}\left(\mathrm{url},\mathrm{name},\mathrm{pass}\right):$$\mathrm{res}≔\mathrm{conn}:-\mathrm{ExecuteQuery}\left("SELECT * FROM stream"\right):$$\mathrm{res}:-\mathrm{Next}\left(\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{res}:-\mathrm{GetData}\left(1\right)$
 ${"the quick brown fox jumped over the lazy dog"}$ (2)
 > $\mathrm{res}:-\mathrm{GetData}\left(2\right)$

 [   1..127 1-D Array   ] [ datatype= integer[1] ] [ storage= rectangular ] [    order=C_order]    ]

 > $\mathrm{str}≔\mathrm{res}:-\mathrm{GetData}\left(1,\mathrm{stream}=\mathrm{true}\right):$$\mathrm{str}:-\mathrm{Type}\left(\right)$
 ${\mathrm{VARCHAR}}$ (3)
 > $\mathrm{str}:-\mathrm{Read}\left(5\right)$
 ${"the q"}$ (4)
 > $\mathrm{str}:-\mathrm{Skip}\left(5\right);$$\mathrm{str}:-\mathrm{Read}\left(5\right)$
 ${"brown"}$ (5)
 > $\mathrm{str}:-\mathrm{Get}\left(\right)$
 ${"fox jumped over the lazy dog"}$ (6)
 > $\mathrm{str}≔\mathrm{res}:-\mathrm{GetData}\left(2,\mathrm{stream}=\mathrm{true}\right):$$\mathrm{str}:-\mathrm{Type}\left(\right)$
 ${\mathrm{BINARY}}$ (7)
 > $\mathrm{str}:-\mathrm{Read}\left(5\right)$
 $\left[{1}{,}{2}{,}{3}{,}{4}{,}{5}\right]$ (8)
 > $\mathrm{str}:-\mathrm{Skip}\left(5\right);$$\mathrm{str}:-\mathrm{Read}\left(5\right)$
 $\left[{11}{,}{12}{,}{13}{,}{14}{,}{15}\right]$ (9)
 > $\mathrm{str}:-\mathrm{Get}\left(\right)$

 [   1..112 1-D Array    ] [ Data Type: integer[1] ] [ Storage: rectangular  ] [    Order: C_order     ]

 See Also