Package org.basex.index.stats
Class StatsType
java.lang.Object
org.basex.index.stats.StatsType
Value types, used for index statistics and query optimizations.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byteAll values are of type double.static final byteAll distinct values are of type double.static final byteAll values are of type integer.static final byteAll distinct values are of type integer.static final byteNo values exist.static final byteValues are arbitrary strings.static final byteA limited number of distinct strings exists. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisCategory(int type) Indicates if the specified type is a category.static booleanisDouble(int type) Indicates if the specified type is a double.static booleanisInteger(int type) Indicates if the specified type is an integer.static booleanisNone(int type) Indicates if no data exists.static booleanisNumeric(int type) Indicates if the specified type is numeric.static booleanisString(int type) Indicates if the specified type is a string.static StringtoString(int type) Returns a string representation of the specified type.
-
Field Details
-
STRING
public static final byte STRINGValues are arbitrary strings.- See Also:
-
STRING_CATEGORY
public static final byte STRING_CATEGORYA limited number of distinct strings exists.- See Also:
-
INTEGER
public static final byte INTEGERAll values are of type integer.- See Also:
-
DOUBLE
public static final byte DOUBLEAll values are of type double.- See Also:
-
NONE
public static final byte NONENo values exist.- See Also:
-
INTEGER_CATEGORY
public static final byte INTEGER_CATEGORYAll distinct values are of type integer.- See Also:
-
DOUBLE_CATEGORY
public static final byte DOUBLE_CATEGORYAll 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
Returns a string representation of the specified type.- Parameters:
type- type- Returns:
- string
-