本文整理汇总了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;
}
}
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}