本文整理汇总了Java中org.apache.hadoop.record.RecordOutput类的典型用法代码示例。如果您正苦于以下问题:Java RecordOutput类的具体用法?Java RecordOutput怎么用?Java RecordOutput使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RecordOutput类属于org.apache.hadoop.record包,在下文中一共展示了RecordOutput类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: serialize
import org.apache.hadoop.record.RecordOutput; //导入依赖的package包/类
/**
* Serialize the type information for a record
*/
@Override
public void serialize(RecordOutput rout, String tag) throws IOException {
// write out any header, version info, here
rout.startRecord(this, tag);
rout.writeString(name, tag);
sTid.writeRest(rout, tag);
rout.endRecord(this, tag);
}
示例2: serialize
import org.apache.hadoop.record.RecordOutput; //导入依赖的package包/类
/**
* Serialize the type information for a record
*/
public void serialize(RecordOutput rout, String tag) throws IOException {
// write out any header, version info, here
rout.startRecord(this, tag);
rout.writeString(name, tag);
sTid.writeRest(rout, tag);
rout.endRecord(this, tag);
}
示例3: write
import org.apache.hadoop.record.RecordOutput; //导入依赖的package包/类
@Override
void write(RecordOutput rout, String tag) throws IOException {
rout.writeByte(typeVal, tag);
typeIDElement.write(rout, tag);
}
示例4: write
import org.apache.hadoop.record.RecordOutput; //导入依赖的package包/类
void write(RecordOutput rout, String tag) throws IOException {
rout.writeString(fieldID, tag);
typeID.write(rout, tag);
}
示例5: write
import org.apache.hadoop.record.RecordOutput; //导入依赖的package包/类
@Override
void write(RecordOutput rout, String tag) throws IOException {
rout.writeByte(typeVal, tag);
typeIDKey.write(rout, tag);
typeIDValue.write(rout, tag);
}
示例6: write
import org.apache.hadoop.record.RecordOutput; //导入依赖的package包/类
/**
* Serialize the TypeID object
*/
void write(RecordOutput rout, String tag) throws IOException {
rout.writeByte(typeVal, tag);
}
示例7: write
import org.apache.hadoop.record.RecordOutput; //导入依赖的package包/类
@Override
void write(RecordOutput rout, String tag) throws IOException {
rout.writeByte(typeVal, tag);
writeRest(rout, tag);
}
示例8: writeRest
import org.apache.hadoop.record.RecordOutput; //导入依赖的package包/类
void writeRest(RecordOutput rout, String tag) throws IOException {
rout.writeInt(typeInfos.size(), tag);
for (FieldTypeInfo ti : typeInfos) {
ti.write(rout, tag);
}
}
示例9: write
import org.apache.hadoop.record.RecordOutput; //导入依赖的package包/类
void write(RecordOutput rout, String tag) throws IOException {
rout.writeByte(typeVal, tag);
typeIDElement.write(rout, tag);
}
示例10: write
import org.apache.hadoop.record.RecordOutput; //导入依赖的package包/类
void write(RecordOutput rout, String tag) throws IOException {
rout.writeByte(typeVal, tag);
typeIDKey.write(rout, tag);
typeIDValue.write(rout, tag);
}
示例11: write
import org.apache.hadoop.record.RecordOutput; //导入依赖的package包/类
void write(RecordOutput rout, String tag) throws IOException {
rout.writeByte(typeVal, tag);
writeRest(rout, tag);
}