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

Online Help

All Products    Maple    MapleSim


DataInterfaceStream

  

Get

  

return the data stored in the DataInterfaceStream

 

Calling Sequence

Parameters

Description

Examples

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

> 

driver≔DatabaseLoadDriver⁡:

> 

conn≔driver:-OpenConnection⁡url,name,pass:res≔conn:-ExecuteQuery⁡SELECT * FROM stream:res:-Next⁡

true

(1)
> 

res:-GetData⁡1

the quick brown fox jumped over the lazy dog

(2)
> 

res:-GetData⁡2

[   1..127 1-D Array   ]

[ datatype= integer[1] ]

[ storage= rectangular ]

[    order=C_order]    ]

> 

str≔res:-GetData⁡1,stream=true:str:-Type⁡

VARCHAR

(3)
> 

str:-Read⁡5

the q

(4)
> 

str:-Skip⁡5;str:-Read⁡5

brown

(5)
> 

str:-Get⁡

fox jumped over the lazy dog

(6)
> 

str≔res:-GetData⁡2,stream=true:str:-Type⁡

BINARY

(7)
> 

str:-Read⁡5

1,2,3,4,5

(8)
> 

str:-Skip⁡5;str:-Read⁡5

11,12,13,14,15

(9)
> 

str:-Get⁡

[   1..112 1-D Array    ]

[ Data Type: integer[1] ]

[ Storage: rectangular  ]

[    Order: C_order     ]

See Also

Database

Database[DataInterfaceStream]

Database[DataInterfaceStream][Read]

Database[DataInterfaceStream][Type]

Database[usage]