# flytekit.models.presto

This is a deprecated module. Model files for plugins should go alongside the microlib.
See ``plugins/flytekit-kf-pytorch/flytekitplugins/kfpytorch/models.py`` as an example.

## Directory

### Classes

| Class | Description |
|-|-|
| [`PrestoQuery`](https://www.union.ai/docs/v1/selfmanaged/api-reference/flytekit-sdk/packages/flytekit.models.presto/page.md#flytekitmodelsprestoprestoquery) |  |

## flytekit.models.presto.PrestoQuery

```python
class PrestoQuery(
    routing_group,
    catalog,
    schema,
    statement,
)
```
Initializes a new PrestoQuery.

| Parameter | Type | Description |
|-|-|-|
| `routing_group` |  | |
| `catalog` |  | |
| `schema` |  | |
| `statement` |  | |

### Properties

| Property | Type | Description |
|-|-|-|
| `catalog` | `None` | :rtype: int |
| `is_empty` | `None` |  |
| `routing_group` | `None` | The query string. :rtype: str |
| `schema` | `None` | :rtype: int |
| `statement` | `None` | :rtype: int |

### Methods

| Method | Description |
|-|-|
| [`from_flyte_idl()`](#from_flyte_idl) |  |
| [`serialize_to_string()`](#serialize_to_string) |  |
| [`short_string()`](#short_string) | :rtype: Text. |
| [`to_flyte_idl()`](#to_flyte_idl) | :rtype: _presto. |

#### from_flyte_idl()

```python
def from_flyte_idl(
    pb2_object,
)
```
| Parameter | Type | Description |
|-|-|-|
| `pb2_object` |  | |

#### serialize_to_string()

```python
def serialize_to_string()
```
#### short_string()

```python
def short_string()
```
:rtype: Text

#### to_flyte_idl()

```python
def to_flyte_idl()
```
:rtype: _presto.PrestoQuery

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/flytekit-sdk/packages/flytekit.models.presto.md
**HTML**: https://www.union.ai/docs/v1/selfmanaged/api-reference/flytekit-sdk/packages/flytekit.models.presto/
