# dm.selectors.interval package

## Submodules

## dm.selectors.interval.AbstractTableIntervalSelector module

Abstract class for interval selector.

Selector can select given intervals of values from a given table.

class `dm.selectors.interval.AbstractTableIntervalSelector.``AbstractTableIntervalSelector`(con, table_name)

  Bases: `dm.selectors.AbstractSelector.AbstractSelector`

  abstract `interval`(column_name, start, end)

    It selects a required interval from source.

    Parameters

      - column_name – name of column that contains required values

      - start – timestamp that denotes start of the required interval

      - end – timestamp that denotes end of the required interval

    Returns

      data from the column in given interval (start, end)

## dm.selectors.interval.SimpleIntervalSelector module

Simple interval selector from database.

Selector can select given intervals of values from a given table without cache.

class `dm.selectors.interval.SimpleIntervalSelector.``SimpleTableIntervalSelector`(con, table_name)

  Bases: `dm.selectors.interval.AbstractTableIntervalSelector.AbstractTableIntervalSelector`

  `interval`(column_name, start, end)

    It select a required interval from database.

    Parameters

      - column_name – name of column that contains required values

      - start – timestamp that denotes start of the required interval

      - end – timestamp that denotes end of the required interval

    Returns

      data from the column in given interval (start, end)

## Module contents