本文整理了Java中org.apache.metamodel.data.DataSet.getRow()
方法的一些代码示例,展示了DataSet.getRow()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataSet.getRow()
方法的具体详情如下:
包路径:org.apache.metamodel.data.DataSet
类名称:DataSet
方法名:getRow
暂无
代码示例来源:origin: apache/metamodel
@Override
public Row getRow() {
if (_currentDataSet == null) {
return null;
}
return _currentDataSet.getRow();
}
代码示例来源:origin: org.apache.metamodel/MetaModel-core
@Override
public Row getRow() {
if (_currentDataSet == null) {
return null;
}
return _currentDataSet.getRow();
}
代码示例来源:origin: org.apache.metamodel/MetaModel-core
@Override
public Row getRow() {
return _dataSet.getRow();
}
代码示例来源:origin: org.apache.metamodel/MetaModel-core
@Override
public Row getRow() {
return _dataSet.getRow();
}
代码示例来源:origin: apache/metamodel
@Override
public Row getRow() {
return _dataSet.getRow();
}
代码示例来源:origin: apache/metamodel
@Override
public Row getRow() {
return _dataSet.getRow();
}
代码示例来源:origin: org.apache.metamodel/MetaModel-jdbc
@Override
public Row getRow() throws MetaModelException {
if (_currentDataSet != null) {
return _currentDataSet.getRow();
}
throw new IllegalStateException("No rows available. Either DataSet is closed or next() hasn't been called");
}
代码示例来源:origin: apache/metamodel
@Override
public Row getRow() throws MetaModelException {
if (_currentDataSet != null) {
return _currentDataSet.getRow();
}
throw new IllegalStateException("No rows available. Either DataSet is closed or next() hasn't been called");
}
代码示例来源:origin: org.apache.metamodel/MetaModel-core
@Override
public Row getRow() {
final Row row = _dataSet.getRow();
return new ScalarFunctionRow(this, row);
}
代码示例来源:origin: apache/metamodel
@Override
public Row getRow() {
final Row row = _dataSet.getRow();
return new ScalarFunctionRow(this, row);
}
代码示例来源:origin: datacleaner/DataCleaner
public DataSetResult(final DataSet ds) {
_rows = new ArrayList<>();
while (ds.next()) {
_rows.add(ds.getRow());
}
ds.close();
}
代码示例来源:origin: org.eobjects.analyzerbeans/AnalyzerBeans-core
public DataSetResult(DataSet ds) {
_rows = new ArrayList<Row>();
while (ds.next()) {
_rows.add(ds.getRow());
}
ds.close();
}
代码示例来源:origin: org.apache.metamodel/MetaModel-core
private void materialize() {
if (!_materialized) {
try {
while (_dataSet.next()) {
_materializedRows.add(_dataSet.getRow());
}
} finally {
_dataSet.close();
}
_materialized = true;
}
}
代码示例来源:origin: apache/metamodel
private void materialize() {
if (!_materialized) {
try {
while (_dataSet.next()) {
_materializedRows.add(_dataSet.getRow());
}
} finally {
_dataSet.close();
}
_materialized = true;
}
}
代码示例来源:origin: apache/metamodel
@Override
public Row getRow() {
final DataSetHeader header = getHeader();
return _dataSet.getRow().getSubSelection(header);
}
代码示例来源:origin: org.apache.metamodel/MetaModel-core
@Override
public Row getRow() {
final DataSetHeader header = getHeader();
return _dataSet.getRow().getSubSelection(header);
}
代码示例来源:origin: org.eobjects.datacleaner/DataCleaner-monitor-services
private List<String> createRowValueList(DataSet dataSet) {
final List<String> values = new ArrayList<>();
Row row = dataSet.getRow();
for (int i = 0; i < dataSet.getSelectItems().length; i++) {
Object value = row.getValue(i);
values.add(ConvertToStringTransformer.transformValue(value));
}
return values;
}
代码示例来源:origin: org.apache.metamodel/MetaModel-core
public static List<Row> readDataSetFull(DataSet dataSet) {
final List<Row> result;
if (dataSet instanceof InMemoryDataSet) {
// if dataset is an in memory dataset we have a shortcut to avoid
// creating a new list
result = ((InMemoryDataSet) dataSet).getRows();
} else {
result = new ArrayList<Row>();
while (dataSet.next()) {
result.add(dataSet.getRow());
}
}
dataSet.close();
return result;
}
代码示例来源:origin: org.apache.metamodel/MetaModel-core
@Override
public boolean hasNext() {
if (_iterationState == 0 || _iterationState == 2) {
if (_dataSet.next()) {
_iterationState = 1;
_row = _dataSet.getRow();
} else {
_iterationState = 3;
_row = null;
_dataSet.close();
}
}
return _iterationState == 1;
}
代码示例来源:origin: apache/metamodel
private int getLastRowNum(Sheet sheet) {
final int lastRowNum = sheet.getLastRowNum();
if (lastRowNum == 0 && sheet instanceof SXSSFSheet) {
// streaming sheets have bad behaviour in this scenario - since no
// rows are in cache, it will return 0!
DataSet ds = _dataContext.query().from(sheet.getSheetName()).selectCount().execute();
ds.next();
final Number count = (Number) ds.getRow().getValue(0);
final int columnNameLineNumber = _configuration.getColumnNameLineNumber();
int oneBasedResult = count.intValue()
+ (columnNameLineNumber == ExcelConfiguration.NO_COLUMN_NAME_LINE ? 0 : columnNameLineNumber);
return oneBasedResult - 1;
}
return lastRowNum;
}
内容来源于网络,如有侵权,请联系作者删除!