当前位置: 首页>>代码示例>>Java>>正文


Java ExecUtils.fromIRowSetToArrayRowSet方法代码示例

本文整理汇总了Java中com.taobao.tddl.executor.utils.ExecUtils.fromIRowSetToArrayRowSet方法的典型用法代码示例。如果您正苦于以下问题:Java ExecUtils.fromIRowSetToArrayRowSet方法的具体用法?Java ExecUtils.fromIRowSetToArrayRowSet怎么用?Java ExecUtils.fromIRowSetToArrayRowSet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.taobao.tddl.executor.utils.ExecUtils的用法示例。


在下文中一共展示了ExecUtils.fromIRowSetToArrayRowSet方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: blockNestedLoopJoin

import com.taobao.tddl.executor.utils.ExecUtils; //导入方法依赖的package包/类
private void blockNestedLoopJoin(List<CloneableRecord> leftJoinOnColumnCache, IColumn rightColumn,
                                 IValueFilterCursor vfc, Map<CloneableRecord, DuplicateKVPair> records)
                                                                                                       throws TddlException {
    IRowSet kv = null;
    while ((kv = vfc.next()) != null) {

        kv = ExecUtils.fromIRowSetToArrayRowSet(kv);
        Object rightValue = ExecUtils.getValueByIColumn(kv, rightColumn);
        for (CloneableRecord record : leftJoinOnColumnCache) {
            Comparable comp = (Comparable) record.getMap().values().iterator().next();
            if (rightValue.equals(comp)) {
                buildDuplicate(records, kv, record);
                break;
            }
        }
    }
}
 
开发者ID:loye168,项目名称:tddl5,代码行数:18,代码来源:BlockNestedtLoopCursor.java

示例2: advance

import com.taobao.tddl.executor.utils.ExecUtils; //导入方法依赖的package包/类
private IRowSet advance(List<IRowSet> subSet, ISchematicCursor cursor, List columns) throws TddlException {
    subSet.clear();
    if (cursor.current() == null) {
        if (cursor.next() == null) {
            return null;
        }
    }

    // 这里的数据要固化下来,否则next之后数据就丢了
    IRowSet key = ExecUtils.fromIRowSetToArrayRowSet(cursor.current());
    subSet.add(key);

    while (cursor.next() != null && compare(key, cursor.current(), columns, columns) == 0) {
        subSet.add(ExecUtils.fromIRowSetToArrayRowSet(cursor.current()));
    }

    return key;
}
 
开发者ID:loye168,项目名称:tddl5,代码行数:19,代码来源:SortMergeJoinCursor.java

示例3: next

import com.taobao.tddl.executor.utils.ExecUtils; //导入方法依赖的package包/类
@Override
public IRowSet next() throws TddlException {

    IRowSet row = super.next();

    if (row != null) {
        if (executionContext.isEnableTrace()) {
            JoinNextOperation op = new JoinNextOperation(ExecUtils.fromIRowSetToArrayRowSet(current));
            executionContext.getTracer().trace(op);
        }
    }

    return row;
}
 
开发者ID:loye168,项目名称:tddl5,代码行数:15,代码来源:IndexNestedLoopMgetImpCursor.java

示例4: getOneLeftCursor

import com.taobao.tddl.executor.utils.ExecUtils; //导入方法依赖的package包/类
protected IRowSet getOneLeftCursor(boolean forward) throws TddlException {
    if (forward) {
        left = ExecUtils.fromIRowSetToArrayRowSet(left_cursor.next());
    } else {
        left = ExecUtils.fromIRowSetToArrayRowSet(left_cursor.prev());
    }
    return left;
}
 
开发者ID:loye168,项目名称:tddl5,代码行数:9,代码来源:IndexNestLoopCursor.java

示例5: next

import com.taobao.tddl.executor.utils.ExecUtils; //导入方法依赖的package包/类
@Override
public IRowSet next() throws SQLException {
    if (ds == null) {
        throw new IllegalArgumentException("ds is null");
    }

    checkInitedInRsNext();
    prev_kv = current;
    try {
        if (resultSet.isClosed()) {
            return null;
        }
    } catch (Exception ex) {
        return null;
    }
    if (resultSet.next()) {
        current = My_Convertor.convert(resultSet, cursorMeta);

        if (executionContext.isEnableTrace()) {
            NextOperation op = new NextOperation(ExecUtils.fromIRowSetToArrayRowSet(current));
            executionContext.getTracer().trace(op);
        }
    } else {
        current = null;
    }

    return current;
}
 
开发者ID:loye168,项目名称:tddl5,代码行数:29,代码来源:My_JdbcHandler.java


注:本文中的com.taobao.tddl.executor.utils.ExecUtils.fromIRowSetToArrayRowSet方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。