> > So, the question I have is, should > StandardRecord.serialize(LittleEndianOut) write out the sid and > reclength or not? > No, serialize(LittleEndianOut) should NOT write out the sid and record length.
I corrected the javadoc, it was written for StandardRecord.serialize(int offset, byte[] data) which does write sid and reclength. StandardRecord.serialize(LittleEndianOut) should write only record body, i.e. the number of bytes written must equal the record size reported by Record#getRecordSize() minus four. Yegor --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
