public class Model2HDFSBinarySerializer extends Object
| Constructor and Description |
|---|
Model2HDFSBinarySerializer(org.apache.hadoop.fs.FileSystem fs,
boolean force) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
id(T m) |
Model |
load(Model m,
org.apache.hadoop.fs.Path f) |
Model |
load(org.apache.hadoop.fs.Path f) |
protected T |
loadHeader(AutoBuffer ab) |
void |
save(Model m,
org.apache.hadoop.fs.Path f) |
protected AutoBuffer |
saveHeader(T m,
AutoBuffer ab) |
public Model2HDFSBinarySerializer(org.apache.hadoop.fs.FileSystem fs,
boolean force)
public void save(Model m, org.apache.hadoop.fs.Path f) throws IOException
IOExceptionpublic Model load(org.apache.hadoop.fs.Path f) throws IOException
IOExceptionpublic Model load(Model m, org.apache.hadoop.fs.Path f) throws IOException
IOExceptionprotected int id(T m)
protected AutoBuffer saveHeader(T m, AutoBuffer ab)
protected T loadHeader(AutoBuffer ab)
Copyright © 2013–2014 0xdata. All rights reserved.