Package cz.o2.proxima.direct.io.bulkfs
Class JsonFormat
- java.lang.Object
-
- cz.o2.proxima.direct.io.bulkfs.JsonFormat
-
- All Implemented Interfaces:
FileFormat
,java.io.Serializable
public class JsonFormat extends java.lang.Object implements FileFormat
Format storing elements as JSON values, one per line.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
fileSuffix()
Retrieve suffix of file names.Reader
openReader(Path path, EntityDescriptor entity)
Open reader for data stored at givenPath
Writer
openWriter(Path path, EntityDescriptor entity)
Open writer for data on givenPath
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cz.o2.proxima.direct.io.bulkfs.FileFormat
setup
-
-
-
-
Method Detail
-
openReader
public Reader openReader(Path path, EntityDescriptor entity)
Description copied from interface:FileFormat
Open reader for data stored at givenPath
- Specified by:
openReader
in interfaceFileFormat
- Parameters:
path
-Path
on associatedFileSystem
entity
- descriptor of entity whose data we are going to read- Returns:
- reader of the data
-
openWriter
public Writer openWriter(Path path, EntityDescriptor entity)
Description copied from interface:FileFormat
Open writer for data on givenPath
.- Specified by:
openWriter
in interfaceFileFormat
- Parameters:
path
-Path
on associatedFileSystem
entity
- descriptor of entity whose data we are going to write- Returns:
- writer for the data
-
fileSuffix
public java.lang.String fileSuffix()
Description copied from interface:FileFormat
Retrieve suffix of file names.- Specified by:
fileSuffix
in interfaceFileFormat
- Returns:
- String suffix
-
-