Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
976b219f
Commit
976b219f
authored
6 years ago
by
Enrico Guiraud
Browse files
Options
Downloads
Patches
Plain Diff
[DF][NFC] Improve Cache documentation
Fixes ROOT-9646.
parent
d73bcbdc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tree/dataframe/inc/ROOT/RDFInterface.hxx
+9
-10
9 additions, 10 deletions
tree/dataframe/inc/ROOT/RDFInterface.hxx
with
9 additions
and
10 deletions
tree/dataframe/inc/ROOT/RDFInterface.hxx
+
9
−
10
View file @
976b219f
...
@@ -470,9 +470,12 @@ public:
...
@@ -470,9 +470,12 @@ public:
/// \brief Save selected columns in memory
/// \brief Save selected columns in memory
/// \param[in] columns to be cached in memory
/// \param[in] columns to be cached in memory
///
///
/// The content of the selected columns is saved in memory exploiting the functionality offered by
/// This action returns a new `RDataFrame` object, completely detached from
/// the Take action. No extra copy is carried out when serving cached data to the actions and
/// the originating `RDataFrame`. The new dataframe only contains the cached
/// transformations requesting it.
/// columns and stores their content in memory for fast, zero-copy subsequent access.
///
/// Use `Cache` if you know you will only need a subset of the (`Filter`ed) data that
/// fits in memory and that will be accessed many times.
template
<
typename
...
BranchTypes
>
template
<
typename
...
BranchTypes
>
RInterface
<
RLoopManager
>
Cache
(
const
ColumnNames_t
&
columnList
)
RInterface
<
RLoopManager
>
Cache
(
const
ColumnNames_t
&
columnList
)
{
{
...
@@ -484,9 +487,7 @@ public:
...
@@ -484,9 +487,7 @@ public:
/// \brief Save selected columns in memory
/// \brief Save selected columns in memory
/// \param[in] columns to be cached in memory
/// \param[in] columns to be cached in memory
///
///
/// The content of the selected columns is saved in memory exploiting the functionality offered by
/// See the previous overloads for more information.
/// the Take action. No extra copy is carried out when serving cached data to the actions and
/// transformations requesting it.
RInterface
<
RLoopManager
>
Cache
(
const
ColumnNames_t
&
columnList
)
RInterface
<
RLoopManager
>
Cache
(
const
ColumnNames_t
&
columnList
)
{
{
// Early return: if the list of columns is empty, just return an empty RDF
// Early return: if the list of columns is empty, just return an empty RDF
...
@@ -535,7 +536,7 @@ public:
...
@@ -535,7 +536,7 @@ public:
/// \param[in] a regular expression to select the columns
/// \param[in] a regular expression to select the columns
///
///
/// The existing columns are matched against the regeular expression. If the string provided
/// The existing columns are matched against the regeular expression. If the string provided
/// is empty, all columns are selected.
/// is empty, all columns are selected.
See the previous overloads for more information.
RInterface
<
RLoopManager
>
Cache
(
std
::
string_view
columnNameRegexp
=
""
)
RInterface
<
RLoopManager
>
Cache
(
std
::
string_view
columnNameRegexp
=
""
)
{
{
auto
selectedColumns
=
ConvertRegexToColumns
(
columnNameRegexp
,
"Cache"
);
auto
selectedColumns
=
ConvertRegexToColumns
(
columnNameRegexp
,
"Cache"
);
...
@@ -546,9 +547,7 @@ public:
...
@@ -546,9 +547,7 @@ public:
/// \brief Save selected columns in memory
/// \brief Save selected columns in memory
/// \param[in] columns to be cached in memory
/// \param[in] columns to be cached in memory
///
///
/// The content of the selected columns is saved in memory exploiting the functionality offered by
/// See the previous overloads for more information.
/// the Take action. No extra copy is carried out when serving cached data to the actions and
/// transformations requesting it.
RInterface
<
RLoopManager
>
Cache
(
std
::
initializer_list
<
std
::
string
>
columnList
)
RInterface
<
RLoopManager
>
Cache
(
std
::
initializer_list
<
std
::
string
>
columnList
)
{
{
ColumnNames_t
selectedColumns
(
columnList
);
ColumnNames_t
selectedColumns
(
columnList
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment