public enum SqlTimeUnit extends Enum<SqlTimeUnit>
Enum Constant and Description |
---|
DAY |
HOUR |
MILLISECOND |
MINUTE |
SECOND |
Modifier and Type | Method and Description |
---|---|
long |
populateAsMillisecond(int timeInterval) |
void |
unparse(org.apache.calcite.sql.SqlWriter writer) |
static SqlTimeUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SqlTimeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SqlTimeUnit DAY
public static final SqlTimeUnit HOUR
public static final SqlTimeUnit MINUTE
public static final SqlTimeUnit SECOND
public static final SqlTimeUnit MILLISECOND
public static SqlTimeUnit[] values()
for (SqlTimeUnit c : SqlTimeUnit.values()) System.out.println(c);
public static SqlTimeUnit valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic long populateAsMillisecond(int timeInterval)
public void unparse(org.apache.calcite.sql.SqlWriter writer)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.