当前位置: 首页>>代码示例>>Python>>正文


Python StandardNormalizer.normalize方法代码示例

本文整理汇总了Python中StandardNormalizer.StandardNormalizer.normalize方法的典型用法代码示例。如果您正苦于以下问题:Python StandardNormalizer.normalize方法的具体用法?Python StandardNormalizer.normalize怎么用?Python StandardNormalizer.normalize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在StandardNormalizer.StandardNormalizer的用法示例。


在下文中一共展示了StandardNormalizer.normalize方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: normalize

# 需要导入模块: from StandardNormalizer import StandardNormalizer [as 别名]
# 或者: from StandardNormalizer.StandardNormalizer import normalize [as 别名]
def normalize(table, sql):
    """Normalizes results by rounding numbers, including those found in a
       string (VARCHAR) column representing a GEOGRAPHY_POINT or GEOGRAPHY
       (point or polygon) to the specified number of significant digits; the
       result tuples of ORDER BY statements are not reordered.
    """
    return StandardNormalizer.normalize(table, sql, SortNulls.never, 8)
开发者ID:87439247,项目名称:voltdb,代码行数:9,代码来源:geo-normalizer.py

示例2: normalize

# 需要导入模块: from StandardNormalizer import StandardNormalizer [as 别名]
# 或者: from StandardNormalizer.StandardNormalizer import normalize [as 别名]
def normalize(table, sql):
    """Normalizes the result tuples of ORDER BY statements in the default
       manner, without sorting SQL NULL (Python None) values at all; in some
       cases, this could lead to mismatches between HSqlDB, which always sorts
       NULL values first, and VoltDB, which sorts NULL values as if they were
       the lowest value (first with ORDER BY ASC, last with ORDER BY DESC), in
       which case you could use a different normalizer, such as
       nulls-lowest-normalizer.py.
    """
    return StandardNormalizer.normalize(table, sql, SortNulls.never)
开发者ID:royxhl,项目名称:voltdb,代码行数:12,代码来源:normalizer.py

示例3: normalize

# 需要导入模块: from StandardNormalizer import StandardNormalizer [as 别名]
# 或者: from StandardNormalizer.StandardNormalizer import normalize [as 别名]
def normalize(table, sql, num_digits=12, sort_nulls=SortNulls.never):
    """Normalizes the result tuples of ORDER BY statements in the default
       manner, without sorting SQL NULL (Python None) values at all; in some
       cases, this could lead to mismatches between HSqlDB, which always sorts
       NULL values first, and VoltDB, which sorts NULL values as if they were
       the lowest value (first with ORDER BY ASC, last with ORDER BY DESC), in
       which case you could use a different normalizer, such as
       nulls-lowest-normalizer.py. Also rounds numbers, including those found
       in a string (VARCHAR) column representing a GEOGRAPHY_POINT or GEOGRAPHY
       (point or polygon) to the specified number of significant digits; the
       result tuples of ORDER BY statements are not reordered.
    """
    return StandardNormalizer.normalize(table, sql, num_digits, sort_nulls)
开发者ID:simonzhangsm,项目名称:voltdb,代码行数:15,代码来源:normalizer.py

示例4: normalize

# 需要导入模块: from StandardNormalizer import StandardNormalizer [as 别名]
# 或者: from StandardNormalizer.StandardNormalizer import normalize [as 别名]
def normalize(table, sql):
    """Normalizes the result tuples of ORDER BY statements, sorting SQL NULL
       (Python None) values as if they were the lowest values, i.e., first
       when using ORDER BY col1 ASC, but last when using ORDER BY col1 DESC.
    """
    return StandardNormalizer.normalize(table, sql, SortNulls.lowest)
开发者ID:AdvEnc,项目名称:voltdb,代码行数:8,代码来源:nulls-lowest-normalizer.py

示例5: normalize

# 需要导入模块: from StandardNormalizer import StandardNormalizer [as 别名]
# 或者: from StandardNormalizer.StandardNormalizer import normalize [as 别名]
def normalize(table, sql):
    """Normalizes the result tuples of ORDER BY statements, sorting SQL NULL
       (Python None) values first (whether using ORDER BY ASC or DESC).
    """
    return StandardNormalizer.normalize(table, sql, SortNulls.first)
开发者ID:kumarrus,项目名称:voltdb,代码行数:7,代码来源:nulls-first-normalizer.py


注:本文中的StandardNormalizer.StandardNormalizer.normalize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。