File tree Expand file tree Collapse file tree
openmessaging-api/src/main/java/io/openmessaging/api/schema Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919import java .util .List ;
2020
2121/**
22- * Used for traverse the data in the message body When do not know the specific Schema.
22+ * Used for traverse the data in the message body when do not know the specific Schema.
2323 *
2424 * @version OMS 2.0.0
2525 * @since OMS 2.0.0
2626 */
2727public interface GenericRecord {
2828
29+ /**
30+ * return schema id
31+ *
32+ * @return schema id
33+ */
2934 String getSchemaId ();
3035
36+ /**
37+ * return the list of fields associated with the record
38+ *
39+ * @return the list of fields associated with the record
40+ */
3141 List <Field > getFields ();
3242
43+ /**
44+ * retrieve the value of the provided field
45+ *
46+ * @param field the field to retrieve the value
47+ * @return the value object
48+ */
3349 Object getField (Field field );
3450
35- Object getField (String field );
51+ /**
52+ * retrieve the value of the provided fieldName
53+ * @param fieldName the field name to retrieve the value
54+ * @return the value object
55+ */
56+ Object getField (String fieldName );
3657}
You can’t perform that action at this time.
0 commit comments