本文整理匯總了Java中com.taobao.tddl.executor.cursor.ITempTableSortCursor類的典型用法代碼示例。如果您正苦於以下問題:Java ITempTableSortCursor類的具體用法?Java ITempTableSortCursor怎麽用?Java ITempTableSortCursor使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ITempTableSortCursor類屬於com.taobao.tddl.executor.cursor包,在下文中一共展示了ITempTableSortCursor類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: tempTableSortCursor
import com.taobao.tddl.executor.cursor.ITempTableSortCursor; //導入依賴的package包/類
@Override
public ITempTableSortCursor tempTableSortCursor(ExecutionContext executionContext, ISchematicCursor cursor,
List<IOrderBy> orderBys, boolean sortedDuplicates, long requestID)
throws TddlException {
try {
if (GeneralUtil.getExtraCmdBoolean(executionContext.getExtraCmds(),
ConnectionProperties.ALLOW_TEMPORARY_TABLE,
false)) {
IRepository bdbRepo = ExecutorContext.getContext()
.getRepositoryHolder()
.getOrCreateRepository(Group.GroupType.BDB_JE.name(),
Collections.EMPTY_MAP,
executionContext.getExtraCmds());
return new TempTableSortCursor(this,
bdbRepo,
cursor,
orderBys,
sortedDuplicates,
requestID,
executionContext);
}
throw new IllegalStateException("not allow to use temporary table . allow first");
} catch (Exception e) {
closeParentCursor(cursor);
throw new TddlException(e);
}
}
示例2: tempTableSortCursor
import com.taobao.tddl.executor.cursor.ITempTableSortCursor; //導入依賴的package包/類
@Override
public ITempTableSortCursor tempTableSortCursor(ExecutionContext executionContext, ISchematicCursor cursor,
List<IOrderBy> orderBys, boolean sortedDuplicates, long requestID)
throws TddlException {
try {
if ("True".equalsIgnoreCase(GeneralUtil.getExtraCmdString(executionContext.getExtraCmds(),
ExtraCmd.ALLOW_TEMPORARY_TABLE))) {
IRepository bdbRepo = ExecutorContext.getContext()
.getRepositoryHolder()
.getOrCreateRepository(Group.GroupType.BDB_JE.name(), Collections.EMPTY_MAP);
return new TempTableSortCursor(this,
bdbRepo,
cursor,
orderBys,
sortedDuplicates,
requestID,
executionContext);
}
throw new IllegalStateException("not allow to use temporary table . allow first ");
} catch (Exception e) {
closeParentCursor(cursor);
throw new TddlException(e);
}
}
示例3: tempTableSortCursor
import com.taobao.tddl.executor.cursor.ITempTableSortCursor; //導入依賴的package包/類
/**
* 臨時表的排序用cursor ,將數據拿出寫入臨時表中,並進行排序。
*
* @param context
* @param cursor
* @param orderBys
* @param sortedDuplicates
* @param requestID
* @return
* @throws TddlException
*/
ITempTableSortCursor tempTableSortCursor(ExecutionContext context, ISchematicCursor cursor,
List<IOrderBy> orderBys, boolean sortedDuplicates, long requestID)
throws TddlException;