public final class FileWriters extends Object
FileWriter.| Modifier and Type | Method and Description |
|---|---|
static <U,V> FileWriter<U> |
transform(FileWriter<V> writer,
com.google.common.base.Function<U,V> transform)
Creates a
FileWriter that writes to the given FileWriter with each event transformed by the
given transformation function. |
public static <U,V> FileWriter<U> transform(FileWriter<V> writer, com.google.common.base.Function<U,V> transform)
FileWriter that writes to the given FileWriter with each event transformed by the
given transformation function.U - source typeV - target typewriter - the FileWriter to write totransform - the transformation function for each individual eventFileWriterCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.