Source code for ads.type_discovery.abstract_detector

#!/usr/bin/env python
# -*- coding: utf-8; -*-

# Copyright (c) 2020, 2022 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/

from __future__ import print_function, absolute_import

import abc


[docs] class AbstractTypeDiscoveryDetector(metaclass=abc.ABCMeta):
[docs] @abc.abstractmethod def discover(self, name, series): return
[docs] class DiscreteDiscoveryDetector(AbstractTypeDiscoveryDetector, metaclass=abc.ABCMeta):
[docs] @abc.abstractmethod def discover(self, name, series): return