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

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

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

Table.newCursor介绍

[英]Convenience method for constructing a new CursorBuilder for this Table.
[中]为该表构造新游标生成器的简便方法。

代码示例

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

  1. @Override
  2. public CursorBuilder newCursor() {
  3. return wrapped.newCursor();
  4. }

代码示例来源:origin: com.healthmarketscience.jackcess/jackcess

  1. /**
  2. * Creates a normal, un-indexed cursor for the given table.
  3. * @param table the table over which this cursor will traverse
  4. */
  5. public static Cursor createCursor(Table table) throws IOException {
  6. return table.newCursor().toCursor();
  7. }

代码示例来源:origin: com.healthmarketscience.jackcess/jackcess

  1. /**
  2. * Creates an indexed cursor for the given table.
  3. * <p>
  4. * Note, index based table traversal may not include all rows, as certain
  5. * types of indexes do not include all entries (namely, some indexes ignore
  6. * null entries, see {@link Index#shouldIgnoreNulls}).
  7. *
  8. * @param index index for the table which will define traversal order as
  9. * well as enhance certain lookups
  10. */
  11. public static IndexCursor createCursor(Index index)
  12. throws IOException
  13. {
  14. return index.getTable().newCursor().setIndex(index).toIndexCursor();
  15. }

代码示例来源:origin: com.healthmarketscience.jackcess/jackcess

  1. private Iterator<Row> getComplexValFkIter(
  2. int complexValueFk, Collection<String> columnNames)
  3. throws IOException
  4. {
  5. if(_complexValIdCursor == null) {
  6. _complexValIdCursor = _flatTable.newCursor()
  7. .setIndexByColumns(_complexValFkCol)
  8. .toIndexCursor();
  9. }
  10. return _complexValIdCursor.newEntryIterable(complexValueFk)
  11. .setColumnNames(columnNames).iterator();
  12. }

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

  1. public Cursor getCursor() throws IOException {
  2. Index idx = getBestIndex();
  3. Cursor cursor;
  4. CursorBuilder cb = table.newCursor();
  5. if (idx == null) {
  6. cursor = cb.toCursor();
  7. } else {
  8. cursor = cb.setIndex(idx).toCursor();
  9. }
  10. cursor.setColumnMatcher(new ColumnMatcher());
  11. return cursor;
  12. }

代码示例来源:origin: com.healthmarketscience.jackcess/jackcess

  1. /**
  2. * Creates an indexed cursor for the given table, narrowed to the given
  3. * range.
  4. * <p>
  5. * Note, index based table traversal may not include all rows, as certain
  6. * types of indexes do not include all entries (namely, some indexes ignore
  7. * null entries, see {@link Index#shouldIgnoreNulls}).
  8. *
  9. * @param index index for the table which will define traversal order as
  10. * well as enhance certain lookups
  11. * @param startRow the first row of data for the cursor (inclusive), or
  12. * {@code null} for the first entry
  13. * @param endRow the last row of data for the cursor (inclusive), or
  14. * {@code null} for the last entry
  15. */
  16. public static IndexCursor createCursor(Index index,
  17. Object[] startRow, Object[] endRow)
  18. throws IOException
  19. {
  20. return index.getTable().newCursor().setIndex(index)
  21. .setStartRow(startRow)
  22. .setEndRow(endRow)
  23. .toIndexCursor();
  24. }

代码示例来源:origin: com.healthmarketscience.jackcess/jackcess

  1. throws IOException
  2. return index.getTable().newCursor().setIndex(index)
  3. .setStartRow(startRow)
  4. .setStartRowInclusive(startInclusive)

相关文章