Class StatsType

java.lang.Object
org.basex.index.stats.StatsType

public final class StatsType extends Object
Value types, used for index statistics and query optimizations.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final byte
    All values are of type double.
    static final byte
    All distinct values are of type double.
    static final byte
    All values are of type integer.
    static final byte
    All distinct values are of type integer.
    static final byte
    No values exist.
    static final byte
    Values are arbitrary strings.
    static final byte
    A limited number of distinct strings exists.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isCategory(int type)
    Indicates if the specified type is a category.
    static boolean
    isDouble(int type)
    Indicates if the specified type is a double.
    static boolean
    isInteger(int type)
    Indicates if the specified type is an integer.
    static boolean
    isNone(int type)
    Indicates if no data exists.
    static boolean
    isNumeric(int type)
    Indicates if the specified type is numeric.
    static boolean
    isString(int type)
    Indicates if the specified type is a string.
    static String
    toString(int type)
    Returns a string representation of the specified type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • STRING

      public static final byte STRING
      Values are arbitrary strings.
      See Also:
    • STRING_CATEGORY

      public static final byte STRING_CATEGORY
      A limited number of distinct strings exists.
      See Also:
    • INTEGER

      public static final byte INTEGER
      All values are of type integer.
      See Also:
    • DOUBLE

      public static final byte DOUBLE
      All values are of type double.
      See Also:
    • NONE

      public static final byte NONE
      No values exist.
      See Also:
    • INTEGER_CATEGORY

      public static final byte INTEGER_CATEGORY
      All distinct values are of type integer.
      See Also:
    • DOUBLE_CATEGORY

      public static final byte DOUBLE_CATEGORY
      All distinct values are of type double.
      See Also:
  • Method Details

    • isNone

      public static boolean isNone(int type)
      Indicates if no data exists.
      Parameters:
      type - type
      Returns:
      result of check
    • isNumeric

      public static boolean isNumeric(int type)
      Indicates if the specified type is numeric.
      Parameters:
      type - type
      Returns:
      result of check
    • isInteger

      public static boolean isInteger(int type)
      Indicates if the specified type is an integer.
      Parameters:
      type - type
      Returns:
      result of check
    • isDouble

      public static boolean isDouble(int type)
      Indicates if the specified type is a double.
      Parameters:
      type - type
      Returns:
      result of check
    • isString

      public static boolean isString(int type)
      Indicates if the specified type is a string.
      Parameters:
      type - type
      Returns:
      result of check
    • isCategory

      public static boolean isCategory(int type)
      Indicates if the specified type is a category.
      Parameters:
      type - type
      Returns:
      result of check
    • toString

      public static String toString(int type)
      Returns a string representation of the specified type.
      Parameters:
      type - type
      Returns:
      string