hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Owen O'Malley" <owen.omal...@gmail.com>
Subject Re: Questions about SequenceFiles
Date Tue, 11 May 2010 14:59:26 GMT
Assumption for Writables that should be documented somewhere:
  * Each type must have a 0 argument constructor.
  * Each call to write must not assume any shared state.
  * Each call to readFields must consume exactly the number of bytes
produced by write.

SequenceFile also assumes:
  * All keys are exactly the same type (not polymorphic).
  * All values are exactly the same type.
  * Both types are specified by the writer in the create call.

-- Owen

View raw message