/** * Obtain a JSON string representation of the specified {@link SourceRecord}. * * @param record the {@link SourceRecord}; may not be null * @return the JSON string representation */ public static String asDetailedString(SourceRecord record) { return new RecordWriter().detailed(true).append(record).toString(); }
/** * Obtain a JSON string representation of the specified {@link Schema}. * * @param schema the {@link Schema}; may not be null * @return the JSON string representation */ public static String asDetailedString(Schema schema) { return new RecordWriter().detailed(true).append(schema).toString(); }
/** * Obtain a JSON string representation of the specified {@link Struct}. * * @param struct the {@link Struct}; may not be null * @return the JSON string representation */ public static String asString(Struct struct) { return new RecordWriter().append(struct).toString(); }
/** * Obtain a JSON string representation of the specified field. * * @param field the field; may not be null * @return the JSON string representation */ public static String asString(Object field) { return new RecordWriter().append(field).toString(); }
/** * Obtain a JSON string representation of the specified {@link SourceRecord}. * * @param record the {@link SourceRecord}; may not be null * @return the JSON string representation */ public static String asString(SourceRecord record) { return new RecordWriter().append(record).toString(); }
/** * Obtain a JSON string representation of the specified field. * * @param field the field; may not be null * @return the JSON string representation */ public static String asDetailedString(Field field) { return new RecordWriter().detailed(true).append(field).toString(); }
/** * Obtain a JSON string representation of the specified {@link Schema}. * * @param schema the {@link Schema}; may not be null * @return the JSON string representation */ public static String asString(Schema schema) { return new RecordWriter().append(schema).toString(); }
/** * Obtain a JSON string representation of the specified field. * * @param field the field; may not be null * @return the JSON string representation */ public static String asString(Field field) { return new RecordWriter().append(field).toString(); }
/** * Obtain a JSON string representation of the specified {@link Struct}. * * @param struct the {@link Struct}; may not be null * @return the JSON string representation */ public static String asDetailedString(Struct struct) { return new RecordWriter().detailed(true).append(struct).toString(); }
/** * Obtain a JSON string representation of the specified {@link Struct}. * * @param struct the {@link Struct}; may not be null * @return the JSON string representation */ public static String asString(Struct struct) { return new RecordWriter().append(struct).toString(); }
/** * Obtain a JSON string representation of the specified {@link Schema}. * * @param schema the {@link Schema}; may not be null * @return the JSON string representation */ public static String asDetailedString(Schema schema) { return new RecordWriter().detailed(true).append(schema).toString(); }
/** * Obtain a JSON string representation of the specified {@link Struct}. * * @param struct the {@link Struct}; may not be null * @return the JSON string representation */ public static String asDetailedString(Struct struct) { return new RecordWriter().detailed(true).append(struct).toString(); }
/** * Obtain a JSON string representation of the specified field. * * @param field the field; may not be null * @return the JSON string representation */ public static String asString(Object field) { return new RecordWriter().append(field).toString(); }
/** * Obtain a JSON string representation of the specified field. * * @param field the field; may not be null * @return the JSON string representation */ public static String asString(Field field) { return new RecordWriter().append(field).toString(); }
/** * Obtain a JSON string representation of the specified {@link SourceRecord}. * * @param record the {@link SourceRecord}; may not be null * @return the JSON string representation */ public static String asDetailedString(SourceRecord record) { return new RecordWriter().detailed(true).append(record).toString(); }
/** * Obtain a JSON string representation of the specified {@link SourceRecord}. * * @param record the {@link SourceRecord}; may not be null * @return the JSON string representation */ public static String asString(SourceRecord record) { return new RecordWriter().append(record).toString(); }
/** * Obtain a JSON string representation of the specified field. * * @param field the field; may not be null * @return the JSON string representation */ public static String asDetailedString(Field field) { return new RecordWriter().detailed(true).append(field).toString(); }
/** * Obtain a JSON string representation of the specified {@link Schema}. * * @param schema the {@link Schema}; may not be null * @return the JSON string representation */ public static String asString(Schema schema) { return new RecordWriter().append(schema).toString(); }