@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class KeyValueWriterWithBasePath extends KeyValueWriter
Writer
that supports
output to different files.Constructor and Description |
---|
KeyValueWriterWithBasePath() |
Modifier and Type | Method and Description |
---|---|
abstract void |
write(Object key,
Object value,
String basePath)
Writes a key/value pair.
|
write
public abstract void write(Object key, Object value, String basePath) throws IOException
key
- the key to writevalue
- the value to writebasePath
- the base path of the output file.IOException
- if an error occurs{@link
- IOInterruptedException} if IO was interruptedCopyright © 2024 Apache Software Foundation. All rights reserved.