private void writeIncludes(RecordDataSchema recordDataSchema) throws IOException { _builder.writeFieldName(INCLUDE_KEY); _builder.writeStartArray(); for (NamedDataSchema includedSchema : recordDataSchema.getInclude()) { encode(includedSchema); } _builder.writeEndArray(); }
for (NamedDataSchema includedSchema : recordDataSchema.getInclude())
final List<NamedDataSchema> includes = schema.getInclude(); for (NamedDataSchema includedSchema : includes)
case RECORD: RecordDataSchema recordDataSchema = (RecordDataSchema) schema; boolean hasIncludes = isEncodeInclude() && !recordDataSchema.getInclude().isEmpty(); boolean fieldsBeforeIncludes = recordDataSchema.isFieldsBeforeIncludes(); if (hasIncludes && !fieldsBeforeIncludes)
for (NamedDataSchema include : recordSchema.getInclude())
List<NamedDataSchema> includes = schema.getInclude(); if (includes.size() > 0 && !schema.isFieldsBeforeIncludes())