lentiq.models.table_column_statistics module
# coding: utf-8 ####alex test """ """ import pprint import re # noqa: F401 import six class TableColumnStatistics(object): """ """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { 'avg_col_len': 'object', 'distinct_count': 'object', 'max': 'object', 'max_col_len': 'object', 'min': 'object', 'num_nulls': 'object' } attribute_map = { 'avg_col_len': 'avgColLen', 'distinct_count': 'distinctCount', 'max': 'max', 'max_col_len': 'maxColLen', 'min': 'min', 'num_nulls': 'numNulls' } discriminator = None def __init__(self, avg_col_len=None, distinct_count=None, max=None, max_col_len=None, min=None, num_nulls=None): # noqa: E501 """TableColumnStatistics - a model defined in Swagger""" # noqa: E501 self._avg_col_len = None self._distinct_count = None self._max = None self._max_col_len = None self._min = None self._num_nulls = None if avg_col_len is not None: self.avg_col_len = avg_col_len if distinct_count is not None: self.distinct_count = distinct_count if max is not None: self.max = max if max_col_len is not None: self.max_col_len = max_col_len if min is not None: self.min = min if num_nulls is not None: self.num_nulls = num_nulls @property def avg_col_len(self): """Gets the avg_col_len of this TableColumnStatistics. # noqa: E501 :return: The avg_col_len of this TableColumnStatistics. # noqa: E501 :rtype: object """ return self._avg_col_len @avg_col_len.setter def avg_col_len(self, avg_col_len): """Sets the avg_col_len of this TableColumnStatistics. :param avg_col_len: The avg_col_len of this TableColumnStatistics. # noqa: E501 :type: object """ self._avg_col_len = avg_col_len @property def distinct_count(self): """Gets the distinct_count of this TableColumnStatistics. # noqa: E501 :return: The distinct_count of this TableColumnStatistics. # noqa: E501 :rtype: object """ return self._distinct_count @distinct_count.setter def distinct_count(self, distinct_count): """Sets the distinct_count of this TableColumnStatistics. :param distinct_count: The distinct_count of this TableColumnStatistics. # noqa: E501 :type: object """ self._distinct_count = distinct_count @property def max(self): """Gets the max of this TableColumnStatistics. # noqa: E501 :return: The max of this TableColumnStatistics. # noqa: E501 :rtype: object """ return self._max @max.setter def max(self, max): """Sets the max of this TableColumnStatistics. :param max: The max of this TableColumnStatistics. # noqa: E501 :type: object """ self._max = max @property def max_col_len(self): """Gets the max_col_len of this TableColumnStatistics. # noqa: E501 :return: The max_col_len of this TableColumnStatistics. # noqa: E501 :rtype: object """ return self._max_col_len @max_col_len.setter def max_col_len(self, max_col_len): """Sets the max_col_len of this TableColumnStatistics. :param max_col_len: The max_col_len of this TableColumnStatistics. # noqa: E501 :type: object """ self._max_col_len = max_col_len @property def min(self): """Gets the min of this TableColumnStatistics. # noqa: E501 :return: The min of this TableColumnStatistics. # noqa: E501 :rtype: object """ return self._min @min.setter def min(self, min): """Sets the min of this TableColumnStatistics. :param min: The min of this TableColumnStatistics. # noqa: E501 :type: object """ self._min = min @property def num_nulls(self): """Gets the num_nulls of this TableColumnStatistics. # noqa: E501 :return: The num_nulls of this TableColumnStatistics. # noqa: E501 :rtype: object """ return self._num_nulls @num_nulls.setter def num_nulls(self, num_nulls): """Sets the num_nulls of this TableColumnStatistics. :param num_nulls: The num_nulls of this TableColumnStatistics. # noqa: E501 :type: object """ self._num_nulls = num_nulls def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(TableColumnStatistics, dict): for key, value in self.items(): result[key] = value return result def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict()) def __repr__(self): """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, TableColumnStatistics): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
Classes
class TableColumnStatistics
class TableColumnStatistics(object): """ """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { 'avg_col_len': 'object', 'distinct_count': 'object', 'max': 'object', 'max_col_len': 'object', 'min': 'object', 'num_nulls': 'object' } attribute_map = { 'avg_col_len': 'avgColLen', 'distinct_count': 'distinctCount', 'max': 'max', 'max_col_len': 'maxColLen', 'min': 'min', 'num_nulls': 'numNulls' } discriminator = None def __init__(self, avg_col_len=None, distinct_count=None, max=None, max_col_len=None, min=None, num_nulls=None): # noqa: E501 """TableColumnStatistics - a model defined in Swagger""" # noqa: E501 self._avg_col_len = None self._distinct_count = None self._max = None self._max_col_len = None self._min = None self._num_nulls = None if avg_col_len is not None: self.avg_col_len = avg_col_len if distinct_count is not None: self.distinct_count = distinct_count if max is not None: self.max = max if max_col_len is not None: self.max_col_len = max_col_len if min is not None: self.min = min if num_nulls is not None: self.num_nulls = num_nulls @property def avg_col_len(self): """Gets the avg_col_len of this TableColumnStatistics. # noqa: E501 :return: The avg_col_len of this TableColumnStatistics. # noqa: E501 :rtype: object """ return self._avg_col_len @avg_col_len.setter def avg_col_len(self, avg_col_len): """Sets the avg_col_len of this TableColumnStatistics. :param avg_col_len: The avg_col_len of this TableColumnStatistics. # noqa: E501 :type: object """ self._avg_col_len = avg_col_len @property def distinct_count(self): """Gets the distinct_count of this TableColumnStatistics. # noqa: E501 :return: The distinct_count of this TableColumnStatistics. # noqa: E501 :rtype: object """ return self._distinct_count @distinct_count.setter def distinct_count(self, distinct_count): """Sets the distinct_count of this TableColumnStatistics. :param distinct_count: The distinct_count of this TableColumnStatistics. # noqa: E501 :type: object """ self._distinct_count = distinct_count @property def max(self): """Gets the max of this TableColumnStatistics. # noqa: E501 :return: The max of this TableColumnStatistics. # noqa: E501 :rtype: object """ return self._max @max.setter def max(self, max): """Sets the max of this TableColumnStatistics. :param max: The max of this TableColumnStatistics. # noqa: E501 :type: object """ self._max = max @property def max_col_len(self): """Gets the max_col_len of this TableColumnStatistics. # noqa: E501 :return: The max_col_len of this TableColumnStatistics. # noqa: E501 :rtype: object """ return self._max_col_len @max_col_len.setter def max_col_len(self, max_col_len): """Sets the max_col_len of this TableColumnStatistics. :param max_col_len: The max_col_len of this TableColumnStatistics. # noqa: E501 :type: object """ self._max_col_len = max_col_len @property def min(self): """Gets the min of this TableColumnStatistics. # noqa: E501 :return: The min of this TableColumnStatistics. # noqa: E501 :rtype: object """ return self._min @min.setter def min(self, min): """Sets the min of this TableColumnStatistics. :param min: The min of this TableColumnStatistics. # noqa: E501 :type: object """ self._min = min @property def num_nulls(self): """Gets the num_nulls of this TableColumnStatistics. # noqa: E501 :return: The num_nulls of this TableColumnStatistics. # noqa: E501 :rtype: object """ return self._num_nulls @num_nulls.setter def num_nulls(self, num_nulls): """Sets the num_nulls of this TableColumnStatistics. :param num_nulls: The num_nulls of this TableColumnStatistics. # noqa: E501 :type: object """ self._num_nulls = num_nulls def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(TableColumnStatistics, dict): for key, value in self.items(): result[key] = value return result def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict()) def __repr__(self): """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, TableColumnStatistics): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
Ancestors (in MRO)
- TableColumnStatistics
- builtins.object
Class variables
var attribute_map
var discriminator
var swagger_types
Static methods
def __init__(
self, avg_col_len=None, distinct_count=None, max=None, max_col_len=None, min=None, num_nulls=None)
TableColumnStatistics - a model defined in Swagger
def __init__(self, avg_col_len=None, distinct_count=None, max=None, max_col_len=None, min=None, num_nulls=None): # noqa: E501 """TableColumnStatistics - a model defined in Swagger""" # noqa: E501 self._avg_col_len = None self._distinct_count = None self._max = None self._max_col_len = None self._min = None self._num_nulls = None if avg_col_len is not None: self.avg_col_len = avg_col_len if distinct_count is not None: self.distinct_count = distinct_count if max is not None: self.max = max if max_col_len is not None: self.max_col_len = max_col_len if min is not None: self.min = min if num_nulls is not None: self.num_nulls = num_nulls
def to_dict(
self)
Returns the model properties as a dict
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(TableColumnStatistics, dict): for key, value in self.items(): result[key] = value return result
def to_str(
self)
Returns the string representation of the model
def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict())
Instance variables
var avg_col_len
Gets the avg_col_len of this TableColumnStatistics. # noqa: E501
:return: The avg_col_len of this TableColumnStatistics. # noqa: E501 :rtype: object
var distinct_count
Gets the distinct_count of this TableColumnStatistics. # noqa: E501
:return: The distinct_count of this TableColumnStatistics. # noqa: E501 :rtype: object
var max
Gets the max of this TableColumnStatistics. # noqa: E501
:return: The max of this TableColumnStatistics. # noqa: E501 :rtype: object
var max_col_len
Gets the max_col_len of this TableColumnStatistics. # noqa: E501
:return: The max_col_len of this TableColumnStatistics. # noqa: E501 :rtype: object
var min
Gets the min of this TableColumnStatistics. # noqa: E501
:return: The min of this TableColumnStatistics. # noqa: E501 :rtype: object
var num_nulls
Gets the num_nulls of this TableColumnStatistics. # noqa: E501
:return: The num_nulls of this TableColumnStatistics. # noqa: E501 :rtype: object