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

tech.ydb.jooq.dsl.function.builtin.ByteAt Maven / Gradle / Ivy

The newest version!
package tech.ydb.jooq.dsl.function.builtin;

import org.jooq.Context;
import org.jooq.Field;
import org.jooq.Name;
import org.jooq.impl.AbstractYdbFunction;
import org.jooq.types.UByte;
import org.jooq.types.UInteger;
import tech.ydb.jooq.YdbTypes;

import static org.jooq.impl.DSL.function;
import static org.jooq.impl.DSL.systemName;

public final class ByteAt extends AbstractYdbFunction {

    private static final Name BYTE_AT = systemName("ByteAt");

    private final Field source;
    private final Field index;

    public ByteAt(Field source, Field index) {
        super(
                BYTE_AT,
                YdbTypes.UINT8
        );

        this.source = source;
        this.index = index;
    }

    @Override
    public void accept(Context ctx) {
        ctx.visit(function(BYTE_AT, getDataType(), source, index));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy