...
Code Block |
---|
private static final Version[] dsfidVersions = new Version[] { Version.GFE_66, Version.GFE_70, Version.GEODE_1_9_0 }; @Override public Version[] getSerializationVersions() { return dsfidVersions; } public void toDataPre6toDataPre_GFE_6_6_0_0(DataOutput out) throws IOException { // serialize for versions prior to 6.6 } public void toDataPre7toDataPre_GFE_7_0_0_0(DataOutput out) throws IOException { // serialize for versions 6.6 up to 7.0 } public void toDataPre_GEODE_1_9_0_0(DataOutput out) throws IOException { // serialize for versions prior to 1.9.0 } @Override public void toData(DataOutput out) throws IOException { // serialize for the current version } |
...