本文整理了Java中org.apache.metamodel.data.DataSet.close()
方法的一些代码示例,展示了DataSet.close()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataSet.close()
方法的具体详情如下:
包路径:org.apache.metamodel.data.DataSet
类名称:DataSet
方法名:close
[英]Closes the DataSet and any resources it may be holding.
[中]关闭数据集及其可能持有的任何资源。
代码示例来源:origin: apache/metamodel
@Override
public void close() {
_dataSet.close();
}
}
代码示例来源:origin: org.apache.metamodel/MetaModel-core
@Override
public void close() {
_dataSet.close();
}
}
代码示例来源:origin: org.apache.metamodel/MetaModel-core
@Override
public void close() {
_dataSet.close();
}
代码示例来源:origin: apache/metamodel
@Override
public void close() {
_dataSet.close();
}
代码示例来源:origin: org.apache.metamodel/MetaModel-core
@Override
public void close() {
_dataSet.close();
}
代码示例来源:origin: apache/metamodel
@Override
public void close() {
_dataSet.close();
}
代码示例来源:origin: org.apache.metamodel/MetaModel-jdbc
@Override
public void close() {
if (_currentDataSet != null) {
logger.debug("currentDataSet.close()");
_currentDataSet.close();
}
_currentDataSet = null;
_queryIterator = null;
}
代码示例来源:origin: apache/metamodel
@Override
public void close() {
if (_currentDataSet != null) {
logger.debug("currentDataSet.close()");
_currentDataSet.close();
}
_currentDataSet = null;
_queryIterator = null;
}
代码示例来源:origin: org.apache.metamodel/MetaModel-core
@Override
public void close() {
super.close();
_dataSet.close();
}
代码示例来源:origin: apache/metamodel
@Override
public void close() {
super.close();
_dataSet.close();
}
}
代码示例来源:origin: org.apache.metamodel/MetaModel-core
@Override
public void close() {
super.close();
_dataSet.close();
}
}
代码示例来源:origin: apache/metamodel
@Override
public void close() {
super.close();
_dataSet.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: datacleaner/DataCleaner
public DataSetResult(final DataSet ds) {
_rows = new ArrayList<>();
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: 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: 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: apache/metamodel
@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
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;
}
内容来源于网络,如有侵权,请联系作者删除!