diff --git a/arrow-json/benches/encode.rs b/arrow-json/benches/encode.rs index 2ac8a733be3..62bbe08cfc5 100644 --- a/arrow-json/benches/encode.rs +++ b/arrow-json/benches/encode.rs @@ -193,13 +193,13 @@ fn bench_json_encoding(c: &mut Criterion) { if test_case.explicit_nulls { // Create writer with explicit nulls - + WriterBuilder::new() .with_explicit_nulls(true) .build::<_, LineDelimited>(sink) } else { // Create default writer - + LineDelimitedWriter::new(sink) } }, diff --git a/arrow-json/src/writer/encoder.rs b/arrow-json/src/writer/encoder.rs index 3f3dbb0abd9..eff31dcb787 100644 --- a/arrow-json/src/writer/encoder.rs +++ b/arrow-json/src/writer/encoder.rs @@ -57,17 +57,17 @@ impl EncoderOptions { self.encoder_factory = Some(encoder_factory); self } - + /// Get whether to include nulls in the output or elide them. pub fn explicit_nulls(&self) -> bool { self.explicit_nulls } - + /// Get whether to encode structs as JSON objects or JSON arrays of their values. pub fn struct_mode(&self) -> StructMode { self.struct_mode } - + /// Get the optional hook for customizing encoding behavior. pub fn encoder_factory(&self) -> Option<&Arc> { self.encoder_factory.as_ref()