import org.joda.time.DateTimeZone;
public class DateTruncTimeZoneAwareFunction extends BaseDateTruncFunction {
public static void register(ScalarFunctionModule module) {
module.register(new DateTruncTimeZoneAwareFunction(new FunctionInfo(
new FunctionIdent(NAME, ImmutableList.<DataType>of(
DataTypes.STRING, DataTypes.STRING, DataTypes.TIMESTAMP)),
DataTypes.TIMESTAMP)
));
module.register(new DateTruncTimeZoneAwareFunction(new FunctionInfo(
new FunctionIdent(NAME, ImmutableList.<DataType>of(
DataTypes.STRING, DataTypes.STRING, DataTypes.LONG)),
DataTypes.TIMESTAMP)
));
module.register(new DateTruncTimeZoneAwareFunction(new FunctionInfo(
new FunctionIdent(NAME, ImmutableList.<DataType>of(
DataTypes.STRING, DataTypes.STRING, DataTypes.STRING)),
DataTypes.TIMESTAMP)
));
}