[ https://issues.apache.org/jira/browse/TEZ-2800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14738984#comment-14738984 ]
Hitesh Shah commented on TEZ-2800: ---------------------------------- You dont need to use a map. Consider vertex v1 (idx=0) having 100 tasks and v2 (idx=1) having 250 tasks. Assuming no filtering/sorting, if 75 tasks are requested at a time, a simple algo would be to: - pick vertex ( idx=0 ), get tasks from id 0 to 74 - next, call pick vertex idx 1, start from 75 to numTasks are hit. Move to vertex idx 1 and get remaining tasks ... Vertex ids do not change - neither do task ids. Yes - there can be new tasks created between the first and second calls but that is ok. > AM web service API V2: Add fromMinID > ------------------------------------ > > Key: TEZ-2800 > URL: https://issues.apache.org/jira/browse/TEZ-2800 > Project: Apache Tez > Issue Type: Sub-task > Components: UI > Reporter: Sreenath Somarajapuram > > Items from the given ID would be fetched. -- This message was sent by Atlassian JIRA (v6.3.4#6332)