# `SparkEx.TableArg`
[🔗](https://github.com/lukaszsamson/spark_ex/blob/v0.1.1/lib/spark_ex/table_arg.ex#L1)

Minimal table-argument wrapper for DataFrame subquery usage.

# `t`

```elixir
@type t() :: %SparkEx.TableArg{
  order_spec: [term()],
  partition_spec: [term()],
  plan: term(),
  state: :init | :partitioned | :ordered,
  with_single_partition: boolean() | nil
}
```

# `order_by`

```elixir
@spec order_by(
  t(),
  SparkEx.Column.t()
  | String.t()
  | atom()
  | [SparkEx.Column.t() | String.t() | atom()]
) :: t()
```

# `partition_by`

```elixir
@spec partition_by(
  t(),
  SparkEx.Column.t()
  | String.t()
  | atom()
  | [SparkEx.Column.t() | String.t() | atom()]
) :: t()
```

# `to_subquery_expr`

```elixir
@spec to_subquery_expr(t()) :: SparkEx.Column.expr()
```

# `with_single_partition`

```elixir
@spec with_single_partition(t()) :: t()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
