BlazingContext()¶
BlazingContext is the Python API of BlazingSQL. Along with initialization arguments, the BlazingContext class has a number of methods which assist not only in creating and querying tables, but also in connecting remote data sources and understanding your ETL.
You must establish a BlazingContext to connect to a BlazingSQL instance to create tables, run queries, and basically do anything with BlazingSQL. First, import the required libraries.
from blazingsql import BlazingContext
bc = BlazingContext()
Constructor¶
|
BlazingContext is the Python API of BlazingSQL. |
Managing tables¶
|
Create a BlazingSQL table. |
|
Drop table from BlazingContext memory. |
|
Returns a dictionary with the names of all the columns and their types for the specified table. |
Returns a list with the names of all created tables. |
|
|
|
|
Querying tables¶
|
Query a BlazingSQL table. |
|
Returns break down of a given query’s Logical Relational Algebra plan. |
|
|
|
Ancillary methods¶
|
|
This function returns a dictionary which contains as key the gpuID and as value the free memory (bytes) |
|
This function returns a dictionary which contains as key the gpuID and as value the max memory (bytes) |
|
This function resets the max memory usage counter to 0 |