public MapRecord(final RecordSchema schema, final Map<String, Object> values, final boolean checkTypes, final boolean dropUnknownFields) { Objects.requireNonNull(values); this.schema = Objects.requireNonNull(schema); this.values = checkTypes ? checkTypes(values, schema) : values; this.serializedForm = Optional.empty(); this.checkTypes = checkTypes; this.dropUnknownFields = dropUnknownFields; }
public MapRecord(final RecordSchema schema, final Map<String, Object> values, final SerializedForm serializedForm, final boolean checkTypes, final boolean dropUnknownFields) { Objects.requireNonNull(values); this.schema = Objects.requireNonNull(schema); this.values = checkTypes ? checkTypes(values, schema) : values; this.serializedForm = Optional.ofNullable(serializedForm); this.checkTypes = checkTypes; this.dropUnknownFields = dropUnknownFields; }
public MapRecord(final RecordSchema schema, final Map<String, Object> values, final boolean checkTypes, final boolean dropUnknownFields) { Objects.requireNonNull(values); this.schema = Objects.requireNonNull(schema); this.values = checkTypes ? checkTypes(values, schema) : values; this.serializedForm = Optional.empty(); this.checkTypes = checkTypes; this.dropUnknownFields = dropUnknownFields; }
public MapRecord(final RecordSchema schema, final Map<String, Object> values, final SerializedForm serializedForm, final boolean checkTypes, final boolean dropUnknownFields) { Objects.requireNonNull(values); this.schema = Objects.requireNonNull(schema); this.values = checkTypes ? checkTypes(values, schema) : values; this.serializedForm = Optional.ofNullable(serializedForm); this.checkTypes = checkTypes; this.dropUnknownFields = dropUnknownFields; }