/** * Creates a RowWriterFactory instance for writing tuples with given parameter types. */ public static <A, B> RowWriterFactory<Tuple2<A, B>> mapTupleToRow( Class<A> a, Class<B> b ) { return mapToRow(Tuple2.class, tuple2ColumnMapper(a, b)); }
/** * Creates a RowWriterFactory instance for writing tuples with given parameter types. */ public static <A, B> RowWriterFactory<Tuple2<A, B>> mapTupleToRow( Class<A> a, Class<B> b ) { return mapToRow(Tuple2.class, tuple2ColumnMapper(a, b)); }
/** * Creates a RowWriterFactory instance for writing tuples with given parameter types. */ public static <A, B> RowWriterFactory<Tuple2<A, B>> mapTupleToRow( Class<A> a, Class<B> b ) { return mapToRow(Tuple2.class, tuple2ColumnMapper(a, b)); }
/** * Creates a RowWriterFactory instance for writing tuples with given parameter types. */ public static <A, B> RowWriterFactory<Tuple2<A, B>> mapTupleToRow( Class<A> a, Class<B> b ) { return mapToRow(Tuple2.class, tuple2ColumnMapper(a, b)); }
/** * Creates a RowWriterFactory instance for writing tuples with given parameter types. */ public static <A, B> RowWriterFactory<Tuple2<A, B>> mapTupleToRow( Class<A> a, Class<B> b ) { return mapToRow(Tuple2.class, tuple2ColumnMapper(a, b)); }
/** * Creates a RowReaderFactory instance for reading tuples with given parameter types. */ public static <A, B> RowReaderFactory<Tuple2<A, B>> mapRowToTuple( Class<A> a, Class<B> b ) { final TypeTags.TypeTag<Tuple2<A, B>> tupleTT = typeTag(Tuple2.class, typeTag(a), typeTag(b) ); return new ClassBasedRowReaderFactory<>(tupleTT, tuple2ColumnMapper(a, b)); }
/** * Creates a RowReaderFactory instance for reading tuples with given parameter types. */ public static <A, B> RowReaderFactory<Tuple2<A, B>> mapRowToTuple( Class<A> a, Class<B> b ) { final TypeTags.TypeTag<Tuple2<A, B>> tupleTT = typeTag(Tuple2.class, typeTag(a), typeTag(b) ); return new ClassBasedRowReaderFactory<>(tupleTT, tuple2ColumnMapper(a, b)); }
/** * Creates a RowReaderFactory instance for reading tuples with given parameter types. */ public static <A, B> RowReaderFactory<Tuple2<A, B>> mapRowToTuple( Class<A> a, Class<B> b ) { final TypeTags.TypeTag<Tuple2<A, B>> tupleTT = typeTag(Tuple2.class, typeTag(a), typeTag(b) ); return new ClassBasedRowReaderFactory<>(tupleTT, tuple2ColumnMapper(a, b)); }
/** * Creates a RowReaderFactory instance for reading tuples with given parameter types. */ public static <A, B> RowReaderFactory<Tuple2<A, B>> mapRowToTuple( Class<A> a, Class<B> b ) { final TypeTags.TypeTag<Tuple2<A, B>> tupleTT = typeTag(Tuple2.class, typeTag(a), typeTag(b) ); return new ClassBasedRowReaderFactory<>(tupleTT, tuple2ColumnMapper(a, b)); }
/** * Creates a RowReaderFactory instance for reading tuples with given parameter types. */ public static <A, B> RowReaderFactory<Tuple2<A, B>> mapRowToTuple( Class<A> a, Class<B> b ) { final TypeTags.TypeTag<Tuple2<A, B>> tupleTT = typeTag(Tuple2.class, typeTag(a), typeTag(b) ); return new ClassBasedRowReaderFactory<>(tupleTT, tuple2ColumnMapper(a, b)); }