Read - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

DataInterfaceStream

  

Read

  

get a block of the data stored in the DataInterfaceStream module

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

stream:-Read( number )

Parameters

stream

-

DataInterfaceStream module

number

-

integer; amount of data to read

Description

• 

Read returns the next number elements of data from stream. If stream stores a character type, then the elements are characters and a string is returned. If stream stores binary data, then an element is of type integer[1] and an rtable is returned.

• 

If there are less than number elements in the stream, all the remaining elements are returned, as with the Get command.

Examples

driverDatabaseLoadDriver:

conndriver:-OpenConnectionurl,name,pass:resconn:-ExecuteQuerySELECT * FROM stream:res:-Next

true

(1)

res:-GetData1

the quick brown fox jumped over the lazy dog

(2)

res:-GetData2

[   1..127 1-D Array    ]

[ Data Type: integer[1] ]

[ Storage: rectangular  ]

[    Order: C_order     ]

strres:-GetData1,stream=true:str:-Type

VARCHAR

(3)

str:-Read5

the q

(4)

str:-Skip5;str:-Read5

brown

(5)

strres:-GetData2,stream=true:str:-Type

BINARY

(6)

str:-Read5

1,2,3,4,5

(7)

str:-Skip5;str:-Read5

11,12,13,14,15

(8)

See Also

Database

Database[DataInterfaceStream]

Database[DataInterfaceStream][Get]

Database[DataInterfaceStream][Skip]

Database[usage]

 


Download Help Document