public void serialize(ContinuableRecordOutput out) {out.writeInt(_numStrings);out.writeInt(_numUniqueStrings);for ( int k = 0; k < strings.size(); k++ ){if (k % ExtSSTRecord.DEFAULT_BUCKET_SIZE == 0){int rOff = out.getTotalSize();int index = k/ExtSSTRecord.DEFAULT_BUCKET_SIZE;if (index < ExtSSTRecord.MAX_BUCKETS) {bucketAbsoluteOffsets[index] = rOff;bucketRelativeOffsets[index] = rOff;}}UnicodeString s = getUnicodeString(k);s.serialize(out);}}
public void Serialize(ContinuableRecordOutput out1){out1.WriteInt(_numStrings);out1.WriteInt(_numUniqueStrings);for (int k = 0; k < strings.Size; k++){if (k % ExtSSTRecord.DEFAULT_BUCKET_SIZE == 0){int rOff = out1.TotalSize;int index = k / ExtSSTRecord.DEFAULT_BUCKET_SIZE;if (index < ExtSSTRecord.MAX_BUCKETS){bucketAbsoluteOffsets[index] = rOff;bucketRelativeOffsets[index] = rOff;}}UnicodeString s = GetUnicodeString(k);s.Serialize(out1);}}