Class TypeConversion.VarIntConversion

  • All Implemented Interfaces:
    TypeConversion<java.math.BigInteger>
    Enclosing interface:
    TypeConversion<T>

    public static class TypeConversion.VarIntConversion
    extends java.lang.Object
    implements TypeConversion<java.math.BigInteger>
    Converts GenericFixed to BigInteger.
    • Constructor Detail

      • VarIntConversion

        public VarIntConversion()
    • Method Detail

      • convert

        public java.math.BigInteger convert​(org.apache.avro.Schema fieldSchema,
                                            @NotNull
                                            java.lang.Object fieldValue)
        Description copied from interface: TypeConversion
        Convert value from the source type to the target type. Runtime exceptions are thrown on invalid argument or conversion failure.
        Specified by:
        convert in interface TypeConversion<java.math.BigInteger>
        Parameters:
        fieldSchema - avro schema to loop up the source schema
        fieldValue - value in the source type. The value cannot be null.
        Returns:
        the converted value