com.healthmarketscience.jackcess.Table.getNextRow()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(248)

本文整理了Java中com.healthmarketscience.jackcess.Table.getNextRow()方法的一些代码示例,展示了Table.getNextRow()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.getNextRow()方法的具体详情如下:
包路径:com.healthmarketscience.jackcess.Table
类名称:Table
方法名:getNextRow

Table.getNextRow介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

private Object[] getOneRow() throws KettleException {
 try {
  if ( meta.isFileField() ) {
   while ( ( data.readrow == null || ( ( data.rw = data.t.getNextRow() ) == null ) ) ) {
    if ( !openNextFile() ) {
     return null;
   while ( ( data.file == null || ( ( data.rw = data.t.getNextRow() ) == null ) ) ) {
    if ( !openNextFile() ) {
     return null;

代码示例来源:origin: net.sf.ucanaccess/ucanaccess

@Override
public Row getNextRow() throws IOException {
  return wrapped.getNextRow();
}

代码示例来源:origin: apache/tika

xhtml.startElement("tbody");
Row r = table.getNextRow();
  r = table.getNextRow();

代码示例来源:origin: stackoverflow.com

Table RESOURCES = Database.open(new File("TargetFile.mdb")).getTable("RESOURCES");
 int pcount = RESOURCES.getRowCount();
 String csvFilename = "C:\\STATS\\APEX\\report.csv";
 CSVReader csvReader = new CSVReader(new FileReader(csvFilename));
 List<String[]> content = csvReader.readAll();
 Map<ValueKey, Integer> csvValuesCount = new HashMap<ValueKey, Integer>();
 for (String[] rowcsv  : content) {
   ValueKey key = new ValueKey(rowcsv[6], rowcsv[1]);
   Integer count = csvValuesCount.get(key);
   csvValuesCount.put(key,count == null ? 1: count + 1);
 }
 int count = 0;
 // Taking 1st resource data
 for (int i = 0; i < pcount; i++) {
   Map<String, Object> row = RESOURCES.getNextRow();
   TEAM = row.get("TEAM").toString();
   MDMID = row.get("MDM ID").toString();
   NAME = row.get("RESOURCE NAME").toString();
   PGNAME = row.get("PG NAME").toString();
   PGTARGET = row.get("PG TARGET").toString();
   int PGTARGETI = Integer.parseInt(PGTARGET);
   Integer countInteger = csvValuesCount.get(new ValueKey(MDMID, PGNAME));
   count = countInteger == null ? 0: countInteger;
 }

代码示例来源:origin: stackoverflow.com

//open csv and make lookup set
Set<String> mdmids = new HashSet<String>() 
String[] rowcsv = null;
String csvFilename = "C:\\STATS\\APEX\\report.csv";
CSVReader csvReader = new CSVReader(new FileReader(csvFilename));
List content = csvReader.readAll();

for (Object object : content) {
  rowcsv = (String[]) object;             
    mdmids.add(rowcsv[6])
}
Table RESOURCES = Database.open(new File("TargetFile.mdb")).getTable("RESOURCES");
pcount = RESOURCES.getRowCount();
count = 0;
// Taking 1st resource data
for (i = 0; i < pcount; i++){
Map<String, Object> row = RESOURCES.getNextRow();                            
  TEAM = row.get("TEAM").toString();
MDMID = row.get("MDM ID").toString();
NAME = row.get("RESOURCE NAME").toString();
PGNAME = row.get("PG NAME").toString();
PGTARGET = row.get("PG TARGET").toString();
int PGTARGETI = Integer.parseInt(PGTARGET);

// use lookup set
if(mdmids.contains(MDMID)) {
  count++;
}
}

代码示例来源:origin: jhpoelen/eol-globi-data

private static Map<String, Term> buildTermMap(ResourceService service) throws IOException {
  LOG.info(CMECSService.class.getSimpleName() + " instantiating...");
  String uri = "https://cmecscatalog.org/cmecs/documents/cmecs4.accdb";
  LOG.info("CMECS data [" + uri + "] downloading ...");
  URI resourceURI = service.getResourceURI(uri);
  if (resourceURI == null) {
    throw new IOException("failed to access [" + uri + "]");
  }
  Database db = new DatabaseBuilder()
      .setFile(new File(resourceURI))
      .setReadOnly(true)
      .open();
  Map<String, Term> aquaticSettingsTerms = new HashMap<>();
  Table table = db.getTable("Aquatic Setting");
  Map<String, Object> row;
  while ((row = table.getNextRow()) != null) {
    Integer id = (Integer) row.get("AquaticSetting_Id");
    String name = (String) row.get("AquaticSettingName");
    String termId = TaxonomyProvider.ID_CMECS + id;
    aquaticSettingsTerms.put(StringUtils.lowerCase(StringUtils.strip(name)), new TermImpl(termId, name));
  }
  LOG.info(CMECSService.class.getSimpleName() + " instantiated.");
  return aquaticSettingsTerms;
}

代码示例来源:origin: org.apache.tika/tika-parsers

xhtml.startElement("tbody");
Row r = table.getNextRow();
  r = table.getNextRow();

代码示例来源:origin: com.github.lafa.tikaNoExternal/tika-parsers

xhtml.startElement("tbody");
Row r = table.getNextRow();
  r = table.getNextRow();

相关文章