writer = new LzoBinaryBlockRecordWriter<ExciteLog, ThriftWritable<ExciteLog>>(new ThriftBlockWriter<ExciteLog>(os, ExciteLog.class, 10));
ThriftWritable<ExciteLog> thriftWritable = ThriftWritable.newInstance(ExciteLog.class);
for (int i = 0; i < repeatTimes; i++)
for (int j = 0; j < uids.length; j++) {
ExciteLog ExciteLog = new ExciteLog();
ExciteLog.setUid(uids[j]);
thriftWritable.set(ExciteLog);
writer.write(null, thriftWritable);
}
writer.close(null);