Interface CastExecutor<IN,​OUT>

  • Type Parameters:
    IN - Input internal type
    OUT - Output internal type
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @Internal
    @FunctionalInterface
    public interface CastExecutor<IN,​OUT>
    Interface to model a function that performs the casting of a value from one type to another.
    • Method Detail

      • cast

        @Nullable
        OUT cast​(@Nullable
                 IN value)
          throws TableRuntimeException
        Cast the input value. The output is null only and only if the input is null. The method throws an exception if something goes wrong when casting.
        Parameters:
        value - Input value.
        Throws:
        TableRuntimeException