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.StringfileSuffix()Retrieve suffix of file names.ReaderopenReader(Path path, EntityDescriptor entity)Open reader for data stored at givenPathWriteropenWriter(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:FileFormatOpen reader for data stored at givenPath- Specified by:
openReaderin interfaceFileFormat- Parameters:
path-Pathon associatedFileSystementity- 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:FileFormatOpen writer for data on givenPath.- Specified by:
openWriterin interfaceFileFormat- Parameters:
path-Pathon associatedFileSystementity- 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:FileFormatRetrieve suffix of file names.- Specified by:
fileSuffixin interfaceFileFormat- Returns:
- String suffix
-
-