You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have recently added offset-based pagination support in #1655 to Marquez. Next, we'll need to define a API contract so that our clients can support pagination when calling list APIs. Both the java and pythonclients support listing datasets and jobs (as well as runs, etc).
How are datasets and jobs listed without paging?
python
The list methods return a dict containing a list of datasets and jobs:
/** Class for specifying list options. */classListOption {
intlimit;
intoffset// more options ...
}
and the resulting paging class ResultsPage<T> defined as:
/** A Page object wraps an API list method response. */classResultsPage<T> {
intlimit;
intoffset;
inttotalCount;
/** Returns true if there are more pages that can be retrieved. */booleanhasNextPage();
/** Retrieves the next Page object using the limit and offset. */Page<T> getNextPage();
/** Returns elements in this page. */List<T> getValues();
}
The text was updated successfully, but these errors were encountered:
We have recently added offset-based pagination support in #1655 to Marquez. Next, we'll need to define a API contract so that our clients can support pagination when calling list APIs. Both the
java
andpython
clients support listing datasets and jobs (as well as runs, etc).How are datasets and jobs listed without paging?
python
The list methods return a
dict
containing a list of datasets and jobs:java
The list methods return a
List<T>
containing a list of datasets and jobs:How will datasets and jobs listed with paging?
To avoid any breaking changes and allow the deprecation of the methods above, I proposal we overload the list methods by accepting an
Option
class:python
java
where
ListOption
is defined as:and the resulting paging class
ResultsPage<T>
defined as:The text was updated successfully, but these errors were encountered: