Interface ClickHouseDeserializer<T extends ClickHouseValue>

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ClickHouseDeserializer<T extends ClickHouseValue>
    Functional interface for deserialization.
    • Method Detail

      • deserialize

        T deserialize​(T ref,
                      ClickHouseConfig config,
                      ClickHouseColumn column,
                      ClickHouseInputStream input)
               throws IOException
        Deserializes data read from input stream.
        Parameters:
        ref - wrapper object can be reused, could be null(always return new wrapper object)
        config - non-null configuration
        column - non-null type information
        input - non-null input stream
        Returns:
        deserialized value which might be the same instance as ref
        Throws:
        IOException - when failed to read data from input stream