public abstract class FileRepositorySerializer<S> extends Object
| Constructor and Description |
|---|
FileRepositorySerializer() |
| Modifier and Type | Method and Description |
|---|---|
List<S> |
deserializeRecords(byte[] bytes) |
List<S> |
deserializeRecords(List<String> lines) |
List<S> |
loadRecordsFromFile(org.neo4j.io.fs.FileSystemAbstraction fileSystem,
File recordsFile) |
static List<String> |
readFromFile(org.neo4j.io.fs.FileSystemAbstraction fs,
File file) |
void |
saveRecordsToFile(org.neo4j.io.fs.FileSystemAbstraction fileSystem,
File recordsFile,
Collection<S> records) |
byte[] |
serialize(Collection<S> records) |
static void |
writeToFile(org.neo4j.io.fs.FileSystemAbstraction fs,
File file,
byte[] bytes) |
public static void writeToFile(org.neo4j.io.fs.FileSystemAbstraction fs,
File file,
byte[] bytes)
throws IOException
IOExceptionpublic static List<String> readFromFile(org.neo4j.io.fs.FileSystemAbstraction fs, File file) throws IOException
IOExceptionpublic void saveRecordsToFile(org.neo4j.io.fs.FileSystemAbstraction fileSystem,
File recordsFile,
Collection<S> records)
throws IOException
IOExceptionpublic List<S> loadRecordsFromFile(org.neo4j.io.fs.FileSystemAbstraction fileSystem, File recordsFile) throws IOException, FormatException
IOExceptionFormatExceptionpublic byte[] serialize(Collection<S> records)
public List<S> deserializeRecords(byte[] bytes) throws FormatException
FormatExceptionpublic List<S> deserializeRecords(List<String> lines) throws FormatException
FormatExceptionCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.