Package org.dashbuilder.dataset
Class DataSetLookup
- java.lang.Object
-
- org.dashbuilder.dataset.DataSetLookup
-
public class DataSetLookup extends Object
A data set look up request.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdataSetUUIDThe UUID of the data set to retrieve.protected intnumberOfRowsThe number of rows to get.protected List<DataSetOp>operationListThe list of operations to apply on the target data set as part of the lookup operation.protected introwOffsetThe starting row offset of the target data set.protected booleantestModeFlag indicating this lookup request is in test mode
-
Constructor Summary
Constructors Constructor Description DataSetLookup()DataSetLookup(String dataSetUUID, DataSetOp... ops)
-
Method Summary
-
-
-
Field Detail
-
dataSetUUID
protected String dataSetUUID
The UUID of the data set to retrieve.
-
rowOffset
protected int rowOffset
The starting row offset of the target data set.
-
numberOfRows
protected int numberOfRows
The number of rows to get.
-
testMode
protected boolean testMode
Flag indicating this lookup request is in test mode
-
-
Method Detail
-
testMode
public boolean testMode()
-
setTestMode
public void setTestMode(boolean testMode)
-
isEmpty
public boolean isEmpty()
-
setDataSetUUID
public void setDataSetUUID(String dataSetUUID)
-
getRowOffset
public int getRowOffset()
-
setRowOffset
public void setRowOffset(int rowOffset)
-
getNumberOfRows
public int getNumberOfRows()
-
setNumberOfRows
public void setNumberOfRows(int numberOfRows)
-
getDataSetUUID
public String getDataSetUUID()
-
getOperation
public <T extends DataSetOp> T getOperation(int index)
-
removeOperation
public <T extends DataSetOp> T removeOperation(int index)
-
getOperationIdx
public int getOperationIdx(DataSetOp op)
-
removeOperations
public int removeOperations(DataSetOpType type)
-
addOperation
public DataSetLookup addOperation(int pos, DataSetOp... ops)
-
addOperation
public DataSetLookup addOperation(DataSetOp... ops)
-
getLastGroupOp
public DataSetGroup getLastGroupOp()
-
getFirstFilterOp
public DataSetFilter getFirstFilterOp()
-
getFirstSortOp
public DataSetSort getFirstSortOp()
-
getFirstGroupOpIndex
public int getFirstGroupOpIndex(int fromIndex, String columnId, Boolean onlySelections)
-
getFirstGroupOpSelections
public List<DataSetGroup> getFirstGroupOpSelections()
-
getLastGroupOpIndex
public int getLastGroupOpIndex(int fromIndex, String columnId, boolean onlySelections)
-
getLastGroupOpIndex
public int getLastGroupOpIndex(int fromIndex)
-
cloneInstance
public DataSetLookup cloneInstance()
-
-