public SnapshotRecord readSnapshotRecord ( ) throws IOException , ClassNotFoundException { byte [ ] key = DataSerializer . readByteArray ( dis ) ; if ( key == null ) { return null ; } byte [ ] value = DataSerializer . readByteArray ( dis ) ; return new SnapshotRecord ( key , value ) ; }
Reads a snapshot entry . If the last entry has been read a null value will be returned .