-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation Improvements #4381
Merged
Merged
Changes from 2 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
dc81b87
Reorder crate documentation
tustvold 46ca2be
Add backlinks
tustvold 2fe7f2a
Merge remote-tracking branch 'upstream/master' into reorder-docs
tustvold 4fefb47
More examples
tustvold e817527
Merge remote-tracking branch 'upstream/master' into reorder-docs
tustvold 5f801d4
Link from typedefs to generic types
tustvold 3631db0
Restore examples
tustvold 83d62df
Example cleanup
tustvold d1ca801
Review feedback
tustvold 75d027b
Merge remote-tracking branch 'upstream/master' into reorder-docs
tustvold File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,38 +21,6 @@ | |
//! Please see the [arrow crates.io](https://crates.io/crates/arrow) | ||
//! page for feature flags and tips to improve performance. | ||
//! | ||
//! # Crate Topology | ||
//! | ||
//! The [`arrow`] project is implemented as multiple sub-crates, which are then re-exported by | ||
//! this top-level crate. | ||
//! | ||
//! Crate authors can choose to depend on this top-level crate, or just | ||
//! the sub-crates they need. | ||
//! | ||
//! The current list of sub-crates is: | ||
//! | ||
//! * [`arrow-arith`][arrow_arith] - arithmetic kernels | ||
//! * [`arrow-array`][arrow_array] - type-safe arrow array abstractions | ||
//! * [`arrow-buffer`][arrow_buffer] - buffer abstractions for arrow arrays | ||
//! * [`arrow-cast`][arrow_cast] - cast kernels for arrow arrays | ||
//! * [`arrow-csv`][arrow_csv] - read/write CSV to arrow format | ||
//! * [`arrow-data`][arrow_data] - the underlying data of arrow arrays | ||
//! * [`arrow-ipc`][arrow_ipc] - read/write IPC to arrow format | ||
//! * [`arrow-json`][arrow_json] - read/write JSON to arrow format | ||
//! * [`arrow-ord`][arrow_ord] - ordering kernels for arrow arrays | ||
//! * [`arrow-row`][arrow_row] - comparable row format | ||
//! * [`arrow-schema`][arrow_schema] - the logical types for arrow arrays | ||
//! * [`arrow-select`][arrow_select] - selection kernels for arrow arrays | ||
//! * [`arrow-string`][arrow_string] - string kernels for arrow arrays | ||
//! | ||
//! _This list is likely to grow as further functionality is split out from the top-level crate_ | ||
//! | ||
//! Some functionality is also distributed independently of this crate: | ||
//! | ||
//! * [`arrow-flight`] - support for [Arrow Flight RPC] | ||
//! * [`arrow-integration-test`] - support for [Arrow JSON Test Format] | ||
//! * [`parquet`](https://docs.rs/parquet/latest/parquet/) - support for [Apache Parquet] | ||
//! | ||
//! # Columnar Format | ||
//! | ||
//! The [`array`] module provides statically typed implementations of all the array types as defined | ||
|
@@ -73,7 +41,7 @@ | |
//! ``` | ||
//! | ||
//! It is also possible to write generic code. For example, the following is generic over | ||
//! all primitively typed arrays: | ||
//! all primitively typed arrays | ||
//! | ||
//! ```rust | ||
//! # use std::iter::Sum; | ||
|
@@ -92,7 +60,7 @@ | |
//! assert_eq!(sum(&TimestampNanosecondArray::from(vec![1, 2, 3])), 6); | ||
//! ``` | ||
//! | ||
//! And the following is generic over all arrays with comparable values: | ||
//! And the following is generic over all arrays with comparable values | ||
//! | ||
//! ```rust | ||
//! # use arrow::array::{ArrayAccessor, ArrayIter, Int32Array, StringArray}; | ||
|
@@ -109,7 +77,7 @@ | |
//! assert_eq!(min(&StringArray::from(vec!["b", "a", "c"])), Some("a")); | ||
//! ``` | ||
//! | ||
//! For more examples, and details consult the [arrow_array] docs. | ||
//! **For more examples, and details consult the [arrow_array] docs.** | ||
//! | ||
//! # Type Erasure / Trait Objects | ||
//! | ||
|
@@ -317,6 +285,36 @@ | |
//! assert_eq!(string.value(1), "foo"); | ||
//! ``` | ||
//! | ||
//! # Crate Topology | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is moved lower-down so that the first thing people see is how to use an array There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is a good change |
||
//! | ||
//! The [`arrow`] project is implemented as multiple sub-crates, which are then re-exported by | ||
//! this top-level crate. | ||
//! | ||
//! Crate authors can choose to depend on this top-level crate, or just | ||
//! the sub-crates they need. | ||
//! | ||
//! The current list of sub-crates is: | ||
//! | ||
//! * [`arrow-arith`][arrow_arith] - arithmetic kernels | ||
//! * [`arrow-array`][arrow_array] - type-safe arrow array abstractions | ||
//! * [`arrow-buffer`][arrow_buffer] - buffer abstractions for arrow arrays | ||
//! * [`arrow-cast`][arrow_cast] - cast kernels for arrow arrays | ||
//! * [`arrow-csv`][arrow_csv] - read/write CSV to arrow format | ||
//! * [`arrow-data`][arrow_data] - the underlying data of arrow arrays | ||
//! * [`arrow-ipc`][arrow_ipc] - read/write IPC to arrow format | ||
//! * [`arrow-json`][arrow_json] - read/write JSON to arrow format | ||
//! * [`arrow-ord`][arrow_ord] - ordering kernels for arrow arrays | ||
//! * [`arrow-row`][arrow_row] - comparable row format | ||
//! * [`arrow-schema`][arrow_schema] - the logical types for arrow arrays | ||
//! * [`arrow-select`][arrow_select] - selection kernels for arrow arrays | ||
//! * [`arrow-string`][arrow_string] - string kernels for arrow arrays | ||
//! | ||
//! Some functionality is also distributed independently of this crate: | ||
//! | ||
//! * [`arrow-flight`] - support for [Arrow Flight RPC] | ||
//! * [`arrow-integration-test`] - support for [Arrow JSON Test Format] | ||
//! * [`parquet`](https://docs.rs/parquet/latest/parquet/) - support for [Apache Parquet] | ||
//! | ||
//! # Safety and Security | ||
//! | ||
//! Like many crates, this crate makes use of unsafe where prudent. However, it endeavours to be | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very easy to miss, as it is sandwiched between a code block and heading. Making it bold helps avoid this