Interface RowsAndColumnsDecorator
-
- All Known Implementing Classes:
DefaultRowsAndColumnsDecorator
public interface RowsAndColumnsDecorator
An interface for "decorating" a rowsAndColumns. This basically takes extra metadata that impacts the shape of the RowsAndColumns. Generally speaking, all of the void methods on this interface should cause the RowsAndColumns object to act as if it has been mutated with that decoration already. That is, whether an implementation is lazy or not should not impact what is visible/not visible. After all decoration methods have been called, eitherrestrictColumns(List)
ortoRowsAndColumns()
can be called to generate a RowsAndColumns with the decorations applied. Note, that it is generally expected that implementations will choose to lazily apply the decorations and not actually materialize them until the last possible moment, but this is an implementation detail left up to the specific implementation.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addFilter(Filter filter)
void
addVirtualColumns(VirtualColumns virtualColumn)
static RowsAndColumnsDecorator
fromRAC(RowsAndColumns rac)
void
limitTimeRange(org.joda.time.Interval interval)
RowsAndColumns
restrictColumns(List<String> columns)
void
setOffsetLimit(OffsetLimit offsetLimit)
void
setOrdering(List<ColumnWithDirection> ordering)
RowsAndColumns
toRowsAndColumns()
-
-
-
Method Detail
-
fromRAC
static RowsAndColumnsDecorator fromRAC(RowsAndColumns rac)
-
limitTimeRange
void limitTimeRange(org.joda.time.Interval interval)
-
addFilter
void addFilter(Filter filter)
-
addVirtualColumns
void addVirtualColumns(VirtualColumns virtualColumn)
-
setOffsetLimit
void setOffsetLimit(OffsetLimit offsetLimit)
-
setOrdering
void setOrdering(List<ColumnWithDirection> ordering)
-
restrictColumns
RowsAndColumns restrictColumns(List<String> columns)
-
toRowsAndColumns
RowsAndColumns toRowsAndColumns()
-
-