APISonar


io.prestosql.spi.type.DateType.DATE

> io > prestosql > spi > type > DateType > DATE
io APIs prestosql APIs spi APIs type APIs DateType APIs DATE APIs

Example 1
private void assertDate(String projection, int year, int month, int day)
    {
        assertFunction(
                projection,
                DateType.DATE,
                new SqlDate(toIntExact(LocalDate.of(year, month, day).toEpochDay())));
    }
Example 2
private static boolean isDiscrete(Type type)
    {
        return type.equals(IntegerType.INTEGER) ||
                type.equals(BigintType.BIGINT) ||
                type.equals(SmallintType.SMALLINT) ||
                type.equals(TinyintType.TINYINT) ||
                type.equals(BooleanType.BOOLEAN) ||
                type.equals(DateType.DATE) ||
                type instanceof DecimalType;
    }