Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Mar 11, 2025
1 parent 4a6c787 commit d5e2a94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions arrow-json/benches/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
},
Expand Down
6 changes: 3 additions & 3 deletions arrow-json/src/writer/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<dyn EncoderFactory>> {
self.encoder_factory.as_ref()
Expand Down

0 comments on commit d5e2a94

Please sign in to comment.