public CellConsumer wrapConsumer(CellConsumer cellConsumer) { if (cellConsumerWrapper == null) return cellConsumer; return cellConsumerWrapper.apply(cellConsumer); }
@Override public Object apply(Object[] objects, Object o) { return transformer.apply(objects[builderIndex]); } }
@Override public Object apply(Object[] objects, Object o) { return transformer.apply(objects[builderIndex]); } }
@Override public O next() { return transformer.apply(it.next()); } }
@Override public O next() { return transformer.apply(it.next()); } }
@Override public O map(S source, MappingContext<? super S> context) throws MappingException { return transform.apply(delegate.map(source, context)); } }
@Override public O map(ROW source, MappingContext<? super ROW> context) throws MappingException { return transformer.apply(delegate.map(source, context)); } }
@Override public void accept(I i) throws Exception { handler.accept(transformer.apply(i)); } }
@Override public void accept(I i) throws Exception { handler.accept(transformer.apply(i)); } }
@Override public O map(ROW source, MappingContext<? super ROW> context) throws MappingException { return transformer.apply(delegate.map(source, context)); } }
@Override public O map(S source, MappingContext<? super S> context) throws MappingException { return transform.apply(delegate.map(source, context)); } }
@Override public O map(ROW source, MappingContext<? super ROW> context) throws MappingException { return transformer.apply(delegate.map(source, context)); } }
@Override public O map(ROW source, MappingContext<? super ROW> context) throws MappingException { return transformer.apply(delegate.map(source, context)); } }
@Override public O map(Row source) throws MappingException { return transform.apply(delegate.map(source)); }
@Override public O map(Row source, MappingContext<? super Row> context) throws MappingException { return transform.apply(delegate.map(source, context)); }
public final B addMapping(K key, Object... properties) { if (properties.length == 1) { // catch Object... on column definition if (properties[0] instanceof ColumnDefinition) { return addMapping(key, (ColumnDefinition<K, ?>) properties[0]); } } return addMapping(key, columnDefinitionFactory.apply(properties)); }
public final B addMapping(K key, Object... properties) { if (properties.length == 1) { // catch Object... on column definition if (properties[0] instanceof ColumnDefinition) { return addMapping(key, (ColumnDefinition<K, ?>) properties[0]); } } return addMapping(key, columnDefinitionFactory.apply(properties)); }
public <K extends FieldKey<K>> K apply(K key) { return key.alias(renameFunction.apply(key.getName())); }
@Override protected ContextualSourceFieldMapper<ROW, T> getMapper(final ROW row) throws MappingException { for (PredicatedMapper<ROW, ROWS, T, EX> tm : mappers) { if (tm.getPredicate().test(row)) { return tm.getMapper(); } } throw new MappingException("No mapper found for " + errorConverter.apply(row)); }
@Override protected ContextualSourceFieldMapper<ROW, T> getMapper(final ROW row) throws MappingException { for (PredicatedMapper<ROW, ROWS, T, EX> tm : mappers) { if (tm.getPredicate().test(row)) { return tm.getMapper(); } } throw new MappingException("No mapper found for " + errorConverter.apply(row)); }