public class LimitSpec extends Object
Constructor and Description |
---|
LimitSpec(LinkedHashSet<OrderByColumn> sortColumns)
Constructor.
|
LimitSpec(LinkedHashSet<OrderByColumn> sortColumns,
OptionalInt limit)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
LinkedHashSet<OrderByColumn> |
getColumns()
Getter for columns.
|
OptionalInt |
getLimit()
Getter for limit.
|
String |
getType()
Getter for type of orderBy.
|
int |
hashCode() |
LimitSpec |
withColumns(LinkedHashSet<OrderByColumn> sortColumns) |
LimitSpec |
withLimit(OptionalInt limit) |
public LimitSpec(LinkedHashSet<OrderByColumn> sortColumns)
sortColumns
- The set of columnspublic LimitSpec(LinkedHashSet<OrderByColumn> sortColumns, OptionalInt limit)
sortColumns
- The set of columnslimit
- The number of result rowspublic String getType()
public OptionalInt getLimit()
public LinkedHashSet<OrderByColumn> getColumns()
public LimitSpec withColumns(LinkedHashSet<OrderByColumn> sortColumns)
public LimitSpec withLimit(OptionalInt limit)
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.