BlobQueryReader Class
A streaming object to read query results.
- Inheritance
-
builtins.objectBlobQueryReader
Constructor
BlobQueryReader(name=None, container=None, errors=None, record_delimiter='\n', encoding=None, headers=None, response=None, error_cls=None)
Parameters
Name | Description |
---|---|
name
|
default value: None
|
container
|
default value: None
|
errors
|
default value: None
|
record_delimiter
|
default value:
|
encoding
|
default value: None
|
headers
|
default value: None
|
response
|
default value: None
|
error_cls
|
default value: None
|
Variables
Name | Description |
---|---|
name
|
The name of the blob being quered. |
container
|
The name of the container where the blob is. |
response_headers
|
The response_headers of the quick query request. |
record_delimiter
|
The delimiter used to separate lines, or records with the data. The records method will return these lines via a generator. |
Methods
readall |
Return all query results. This operation is blocking until all data is downloaded. If encoding has been configured - this will be used to decode individual records are they are received. |
readinto |
Download the query result to a stream. |
records |
Returns a record generator for the query result. Records will be returned line by line. If encoding has been configured - this will be used to decode individual records are they are received. |
readall
Return all query results.
This operation is blocking until all data is downloaded. If encoding has been configured - this will be used to decode individual records are they are received.
readall() -> bytes | str
Returns
Type | Description |
---|---|
The query results. |
readinto
Download the query result to a stream.
readinto(stream: IO) -> None
Parameters
Name | Description |
---|---|
stream
Required
|
The stream to download to. This can be an open file-handle, or any writable stream. |
Returns
Type | Description |
---|---|
None |
records
Returns a record generator for the query result.
Records will be returned line by line. If encoding has been configured - this will be used to decode individual records are they are received.
records() -> Iterable[bytes | str]
Returns
Type | Description |
---|---|
A record generator for the query result. |
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for