/** * serialize * * The way to serialize a Thrift "table" which in thrift land is really a * function and thus this class's name. * * @param o * - this list should be in the order of the function's params for * now. If we wanted to remove this requirement, we'd need to make it * a List<Pair<String, Object>> with the String being the field name. * */ @Override public void serialize(Object o, ObjectInspector oi, TProtocol oprot) throws TException, SerDeException, NoSuchFieldException, IllegalAccessException { if (thrift_mode) { oprot.writeStructBegin(new TStruct(name)); } fieldList.serialize(o, oi, oprot); if (thrift_mode) { oprot.writeStructEnd(); } }
/** * serialize * * The way to serialize a Thrift "table" which in thrift land is really a * function and thus this class's name. * * @param o * - this list should be in the order of the function's params for * now. If we wanted to remove this requirement, we'd need to make it * a List<Pair<String, Object>> with the String being the field name. * */ @Override public void serialize(Object o, ObjectInspector oi, TProtocol oprot) throws TException, SerDeException, NoSuchFieldException, IllegalAccessException { if (thrift_mode) { oprot.writeStructBegin(new TStruct(name)); } fieldList.serialize(o, oi, oprot); if (thrift_mode) { oprot.writeStructEnd(); } }
/** * serialize * * The way to serialize a Thrift "table" which in thrift land is really a * function and thus this class's name. * * @param o * - this list should be in the order of the function's params for * now. If we wanted to remove this requirement, we'd need to make it * a List<Pair<String, Object>> with the String being the field name. * */ @Override public void serialize(Object o, ObjectInspector oi, TProtocol oprot) throws TException, SerDeException, NoSuchFieldException, IllegalAccessException { if (thrift_mode) { oprot.writeStructBegin(new TStruct(name)); } fieldList.serialize(o, oi, oprot); if (thrift_mode) { oprot.writeStructEnd(); } }
/** * serialize * * The way to serialize a Thrift "table" which in thrift land is really a * function and thus this class's name. * * @param o * - this list should be in the order of the function's params for * now. If we wanted to remove this requirement, we'd need to make it * a List<Pair<String, Object>> with the String being the field name. * */ @Override public void serialize(Object o, ObjectInspector oi, TProtocol oprot) throws TException, SerDeException, NoSuchFieldException, IllegalAccessException { if (thrift_mode) { oprot.writeStructBegin(new TStruct(name)); } fieldList.serialize(o, oi, oprot); if (thrift_mode) { oprot.writeStructEnd(); } }
/** * serialize * * The way to serialize a Thrift "table" which in thrift land is really a * function and thus this class's name. * * @param o * - this list should be in the order of the function's params for * now. If we wanted to remove this requirement, we'd need to make it * a List<Pair<String, Object>> with the String being the field name. * */ @Override public void serialize(Object o, ObjectInspector oi, TProtocol oprot) throws TException, SerDeException, NoSuchFieldException, IllegalAccessException { if (thrift_mode) { oprot.writeStructBegin(new TStruct(name)); } fieldList.serialize(o, oi, oprot); if (thrift_mode) { oprot.writeStructEnd(); } }
/** * serialize * * The way to serialize a Thrift "table" which in thrift land is really a * function and thus this class's name. * * @param o * - this list should be in the order of the function's params for * now. If we wanted to remove this requirement, we'd need to make it * a List<Pair<String, Object>> with the String being the field name. * */ @Override public void serialize(Object o, ObjectInspector oi, TProtocol oprot) throws TException, SerDeException, NoSuchFieldException, IllegalAccessException { if (thrift_mode) { oprot.writeStructBegin(new TStruct(name)); } fieldList.serialize(o, oi, oprot); if (thrift_mode) { oprot.writeStructEnd(); } }