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

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

本文整理了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

@Override
public CursorBuilder newCursor() {
  return wrapped.newCursor();
}

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

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

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

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

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

private Iterator<Row> getComplexValFkIter(
  int complexValueFk, Collection<String> columnNames)
 throws IOException
{
 if(_complexValIdCursor == null) {
  _complexValIdCursor = _flatTable.newCursor()
   .setIndexByColumns(_complexValFkCol)
   .toIndexCursor();
 }
 return _complexValIdCursor.newEntryIterable(complexValueFk)
  .setColumnNames(columnNames).iterator();
}

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

public Cursor getCursor() throws IOException {
  Index idx = getBestIndex();
  Cursor cursor;
  CursorBuilder cb = table.newCursor();
  if (idx == null) {
    cursor = cb.toCursor();
  } else {
    cursor = cb.setIndex(idx).toCursor();
  }
  cursor.setColumnMatcher(new ColumnMatcher());
  return cursor;
}

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

/**
 * Creates an indexed cursor for the given table, narrowed to the given
 * range.
 * <p>
 * Note, index based table traversal may not include all rows, as certain
 * types of indexes do not include all entries (namely, some indexes ignore
 * null entries, see {@link Index#shouldIgnoreNulls}).
 * 
 * @param index index for the table which will define traversal order as
 *              well as enhance certain lookups
 * @param startRow the first row of data for the cursor (inclusive), or
 *                 {@code null} for the first entry
 * @param endRow the last row of data for the cursor (inclusive), or
 *               {@code null} for the last entry
 */
public static IndexCursor createCursor(Index index,
                    Object[] startRow, Object[] endRow)
 throws IOException
{
 return index.getTable().newCursor().setIndex(index)
  .setStartRow(startRow)
  .setEndRow(endRow)
  .toIndexCursor();
}

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

throws IOException
return index.getTable().newCursor().setIndex(index)
 .setStartRow(startRow)
 .setStartRowInclusive(startInclusive)

相关文章