Module markov.dispatchers.misc_dispatch

Functions

def mkv_column_info(ds_id: str, segment_type: SegmentType) ‑> List[ColumnInfo]

Get the column info for the dataset with the given ds_id and segment_type.

Args

ds_id
id of the dataset.
segment_type
SegmentType of the dataset for which column info is required.

Returns

List of ColumnInfo object.

def mkv_column_info_col_names(ds_id: str, segment_type: SegmentType, col_names: List[str]) ‑> List[ColumnInfo]

Return the ColumnState of the Columns with name specified in col_names list.

Args

ds_id
Dataset id of the given dataset.
segment_type
Segment type of this dataset we want to fetch the information about.
col_names
List of the names of column for which information is requested.

Returns

List of column info that contains stats about the column

def mkv_column_info_index(ds_id: str, segment_type: SegmentType, col_indexes: List[int]) ‑> List[ColumnInfo]

Return the column info of columns specified by the col indexes.

Args

ds_id
Data set if for which we need to fetch column info.
segment_type
SegmentType for which we want to seek Column info.
col_indexes
List of column index integers (0 indexed)

Returns

Column info list of the columns.

def mkv_get_analysis_uri(ds_id: str) ‑> str

Get the column_stats results (URI) for the dataset with ds_id.

Args

ds_id
data_set_id of the dataset for which column_stats is requested.

Returns

URI that maps to the column_stats page of that DataSet. Permissions are validated at the server and if the user has permissions to access this dataset only then column_stats is returned.

Get the column_stats results (URI) for the dataset with ds_id.

Args

ds_id
data_set_id of the dataset for which column_stats is requested.
segment_type
Segment type we want to fetch the column_stats about.

Returns

URI that maps to the column_stats page of that DataSet. Permissions are validated at the server and if the user has permissions to access this dataset only then column_stats is returned.