All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dflib.exp.datetime.DateColumn Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package org.dflib.exp.datetime;

import org.dflib.DateExp;
import org.dflib.exp.Column;

import java.time.LocalDate;

/**
 * @since 0.11
 */
public class DateColumn extends Column implements DateExp {

    public DateColumn(String name) {
        super(name, LocalDate.class);
    }

    public DateColumn(int position) {
        super(position, LocalDate.class);
    }

    @Override
    public String toQL() {
        return position >= 0 ? "$date(" + position + ")" : name;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy