org.apache.hadoop.record.RecordOutput Java Examples

The following examples show how to use org.apache.hadoop.record.RecordOutput. 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 File: RecordTypeInfo.java    From hadoop with 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 File: RecordTypeInfo.java    From big-c with 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 File: RecordTypeInfo.java    From hadoop-gpu with 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 File: RecordTypeInfo.java    From RDFS with 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 File: StructTypeID.java    From hadoop-gpu with 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 #6
Source File: StructTypeID.java    From hadoop-gpu with 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 #7
Source File: TypeID.java    From hadoop-gpu with 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 #8
Source File: MapTypeID.java    From hadoop-gpu with 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 #9
Source File: FieldTypeInfo.java    From hadoop-gpu with 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 #10
Source File: VectorTypeID.java    From hadoop-gpu with 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 #11
Source File: StructTypeID.java    From RDFS with 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 #12
Source File: StructTypeID.java    From RDFS with 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 #13
Source File: TypeID.java    From RDFS with 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 #14
Source File: MapTypeID.java    From RDFS with 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 #15
Source File: FieldTypeInfo.java    From RDFS with 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 #16
Source File: VectorTypeID.java    From RDFS with 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 #17
Source File: StructTypeID.java    From big-c with 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 #18
Source File: StructTypeID.java    From big-c with 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 #19
Source File: TypeID.java    From big-c with 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 #20
Source File: MapTypeID.java    From big-c with 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 #21
Source File: FieldTypeInfo.java    From big-c with 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 #22
Source File: VectorTypeID.java    From big-c with 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 #23
Source File: StructTypeID.java    From hadoop with 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 #24
Source File: StructTypeID.java    From hadoop with 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 #25
Source File: TypeID.java    From hadoop with 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 #26
Source File: MapTypeID.java    From hadoop with 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 #27
Source File: FieldTypeInfo.java    From hadoop with 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 #28
Source File: VectorTypeID.java    From hadoop with 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);
}