Package com.exasol.adapter.sql
Class SqlLimit
- java.lang.Object
-
- com.exasol.adapter.sql.SqlNode
-
- com.exasol.adapter.sql.SqlLimit
-
public class SqlLimit extends SqlNode
LIMIT
sql node.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> R
accept(SqlNodeVisitor<R> visitor)
SeeSqlNodeVisitor
int
getLimit()
Gets limit.int
getOffset()
Gets offset.SqlNodeType
getType()
Gets type.boolean
hasOffset()
Has offset boolean.void
setLimit(int limit)
Sets limit.void
setOffset(int offset)
Sets offset.
-
-
-
Method Detail
-
getLimit
public int getLimit()
Gets limit.- Returns:
- the limit
-
setLimit
public void setLimit(int limit)
Sets limit.- Parameters:
limit
- the limit
-
getOffset
public int getOffset()
Gets offset.- Returns:
- the offset
-
setOffset
public void setOffset(int offset)
Sets offset.- Parameters:
offset
- the offset
-
hasOffset
public boolean hasOffset()
Has offset boolean.- Returns:
- the boolean
-
getType
public SqlNodeType getType()
Description copied from class:SqlNode
Gets type.
-
accept
public <R> R accept(SqlNodeVisitor<R> visitor) throws AdapterException
Description copied from class:SqlNode
SeeSqlNodeVisitor
- Specified by:
accept
in classSqlNode
- Type Parameters:
R
- generic SqlNodeVisitor type- Parameters:
visitor
- The visitor object on which the appropriate visit(sqlNode) method is called- Returns:
- visited object
- Throws:
AdapterException
- can be thrown
-
-