Class ShowSeriesStatement.Builder
- java.lang.Object
-
- io.github.willena.influxql.ast.statement.ShowSeriesStatement.Builder
-
- All Implemented Interfaces:
Buildable<ShowSeriesStatement>
- Enclosing class:
- ShowSeriesStatement
public static final class ShowSeriesStatement.Builder extends Object implements Buildable<ShowSeriesStatement>
ShowSeriesStatement
builder static inner class.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShowSeriesStatement
build()
Returns aShowSeriesStatement
built from the parameters previously set.ShowSeriesStatement.Builder
from(Sources sources)
Sets thesources
and returns a reference to this Builder enabling method chaining.ShowSeriesStatement.Builder
from(Source source, Source... sources)
ShowSeriesStatement.Builder
limit(int limit)
Sets thelimit
and returns a reference to this Builder enabling method chaining.ShowSeriesStatement.Builder
offset(int offset)
Sets theoffset
and returns a reference to this Builder enabling method chaining.ShowSeriesStatement.Builder
on(String database)
Sets thedatabase
and returns a reference to this Builder enabling method chaining.ShowSeriesStatement.Builder
orderBy(SortField sortField, SortField... sortFields)
ShowSeriesStatement.Builder
orderBy(SortFields sortFields)
Sets thesortFields
and returns a reference to this Builder enabling method chaining.ShowSeriesStatement.Builder
where(Expression conditions)
Sets theconditions
and returns a reference to this Builder enabling method chaining.
-
-
-
Method Detail
-
on
public ShowSeriesStatement.Builder on(String database)
Sets thedatabase
and returns a reference to this Builder enabling method chaining.- Parameters:
database
- thedatabase
to set- Returns:
- a reference to this Builder
-
from
public ShowSeriesStatement.Builder from(Sources sources)
Sets thesources
and returns a reference to this Builder enabling method chaining.- Parameters:
sources
- thesources
to set- Returns:
- a reference to this Builder
-
from
public ShowSeriesStatement.Builder from(Source source, Source... sources)
-
where
public ShowSeriesStatement.Builder where(Expression conditions)
Sets theconditions
and returns a reference to this Builder enabling method chaining.- Parameters:
conditions
- theconditions
to set- Returns:
- a reference to this Builder
-
orderBy
public ShowSeriesStatement.Builder orderBy(SortFields sortFields)
Sets thesortFields
and returns a reference to this Builder enabling method chaining.- Parameters:
sortFields
- thesortFields
to set- Returns:
- a reference to this Builder
-
orderBy
public ShowSeriesStatement.Builder orderBy(SortField sortField, SortField... sortFields)
-
limit
public ShowSeriesStatement.Builder limit(int limit)
Sets thelimit
and returns a reference to this Builder enabling method chaining.- Parameters:
limit
- thelimit
to set- Returns:
- a reference to this Builder
-
offset
public ShowSeriesStatement.Builder offset(int offset)
Sets theoffset
and returns a reference to this Builder enabling method chaining.- Parameters:
offset
- theoffset
to set- Returns:
- a reference to this Builder
-
build
public ShowSeriesStatement build()
Returns aShowSeriesStatement
built from the parameters previously set.- Specified by:
build
in interfaceBuildable<ShowSeriesStatement>
- Returns:
- a
ShowSeriesStatement
built with parameters of thisShowSeriesStatement.Builder
-
-