Java Code Examples for org.apache.hadoop.record.RecordOutput

The following examples show how to use org.apache.hadoop.record.RecordOutput. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: hadoop   Source File: RecordTypeInfo.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * 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);
}
 
Example 2
Source Project: big-c   Source File: RecordTypeInfo.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * 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);
}
 
Example 3
Source Project: RDFS   Source File: RecordTypeInfo.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * 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);
}
 
Example 4
Source Project: hadoop-gpu   Source File: RecordTypeInfo.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * 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);
}
 
Example 5
Source Project: hadoop   Source File: VectorTypeID.java    License: Apache License 2.0 4 votes vote down vote up
@Override
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeByte(typeVal, tag);
  typeIDElement.write(rout, tag);
}
 
Example 6
Source Project: hadoop   Source File: FieldTypeInfo.java    License: Apache License 2.0 4 votes vote down vote up
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeString(fieldID, tag);
  typeID.write(rout, tag);
}
 
Example 7
Source Project: hadoop   Source File: MapTypeID.java    License: Apache License 2.0 4 votes vote down vote up
@Override
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeByte(typeVal, tag);
  typeIDKey.write(rout, tag);
  typeIDValue.write(rout, tag);
}
 
Example 8
Source Project: hadoop   Source File: TypeID.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * Serialize the TypeID object
 */
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeByte(typeVal, tag);
}
 
Example 9
Source Project: hadoop   Source File: StructTypeID.java    License: Apache License 2.0 4 votes vote down vote up
@Override
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeByte(typeVal, tag);
  writeRest(rout, tag);
}
 
Example 10
Source Project: hadoop   Source File: StructTypeID.java    License: Apache License 2.0 4 votes vote down vote up
void writeRest(RecordOutput rout, String tag) throws IOException {
  rout.writeInt(typeInfos.size(), tag);
  for (FieldTypeInfo ti : typeInfos) {
    ti.write(rout, tag);
  }
}
 
Example 11
Source Project: big-c   Source File: VectorTypeID.java    License: Apache License 2.0 4 votes vote down vote up
@Override
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeByte(typeVal, tag);
  typeIDElement.write(rout, tag);
}
 
Example 12
Source Project: big-c   Source File: FieldTypeInfo.java    License: Apache License 2.0 4 votes vote down vote up
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeString(fieldID, tag);
  typeID.write(rout, tag);
}
 
Example 13
Source Project: big-c   Source File: MapTypeID.java    License: Apache License 2.0 4 votes vote down vote up
@Override
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeByte(typeVal, tag);
  typeIDKey.write(rout, tag);
  typeIDValue.write(rout, tag);
}
 
Example 14
Source Project: big-c   Source File: TypeID.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * Serialize the TypeID object
 */
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeByte(typeVal, tag);
}
 
Example 15
Source Project: big-c   Source File: StructTypeID.java    License: Apache License 2.0 4 votes vote down vote up
@Override
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeByte(typeVal, tag);
  writeRest(rout, tag);
}
 
Example 16
Source Project: big-c   Source File: StructTypeID.java    License: Apache License 2.0 4 votes vote down vote up
void writeRest(RecordOutput rout, String tag) throws IOException {
  rout.writeInt(typeInfos.size(), tag);
  for (FieldTypeInfo ti : typeInfos) {
    ti.write(rout, tag);
  }
}
 
Example 17
Source Project: RDFS   Source File: VectorTypeID.java    License: Apache License 2.0 4 votes vote down vote up
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeByte(typeVal, tag);
  typeIDElement.write(rout, tag);
}
 
Example 18
Source Project: RDFS   Source File: FieldTypeInfo.java    License: Apache License 2.0 4 votes vote down vote up
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeString(fieldID, tag);
  typeID.write(rout, tag);
}
 
Example 19
Source Project: RDFS   Source File: MapTypeID.java    License: Apache License 2.0 4 votes vote down vote up
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeByte(typeVal, tag);
  typeIDKey.write(rout, tag);
  typeIDValue.write(rout, tag);
}
 
Example 20
Source Project: RDFS   Source File: TypeID.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * Serialize the TypeID object
 */
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeByte(typeVal, tag);
}
 
Example 21
Source Project: RDFS   Source File: StructTypeID.java    License: Apache License 2.0 4 votes vote down vote up
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeByte(typeVal, tag);
  writeRest(rout, tag);
}
 
Example 22
Source Project: RDFS   Source File: StructTypeID.java    License: Apache License 2.0 4 votes vote down vote up
void writeRest(RecordOutput rout, String tag) throws IOException {
  rout.writeInt(typeInfos.size(), tag);
  for (FieldTypeInfo ti : typeInfos) {
    ti.write(rout, tag);
  }
}
 
Example 23
Source Project: hadoop-gpu   Source File: VectorTypeID.java    License: Apache License 2.0 4 votes vote down vote up
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeByte(typeVal, tag);
  typeIDElement.write(rout, tag);
}
 
Example 24
Source Project: hadoop-gpu   Source File: FieldTypeInfo.java    License: Apache License 2.0 4 votes vote down vote up
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeString(fieldID, tag);
  typeID.write(rout, tag);
}
 
Example 25
Source Project: hadoop-gpu   Source File: MapTypeID.java    License: Apache License 2.0 4 votes vote down vote up
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeByte(typeVal, tag);
  typeIDKey.write(rout, tag);
  typeIDValue.write(rout, tag);
}
 
Example 26
Source Project: hadoop-gpu   Source File: TypeID.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * Serialize the TypeID object
 */
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeByte(typeVal, tag);
}
 
Example 27
Source Project: hadoop-gpu   Source File: StructTypeID.java    License: Apache License 2.0 4 votes vote down vote up
void write(RecordOutput rout, String tag) throws IOException {
  rout.writeByte(typeVal, tag);
  writeRest(rout, tag);
}
 
Example 28
Source Project: hadoop-gpu   Source File: StructTypeID.java    License: Apache License 2.0 4 votes vote down vote up
void writeRest(RecordOutput rout, String tag) throws IOException {
  rout.writeInt(typeInfos.size(), tag);
  for (FieldTypeInfo ti : typeInfos) {
    ti.write(rout, tag);
  }
}