File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a BSD-style
3
3
// license that can be found in the LICENSE file.
4
4
5
- // Package rarrow handles conversion between ROOT and ARROW data models.
6
5
package rarrow // import "go-hep.org/x/hep/groot/rarrow"
7
6
8
7
import (
Original file line number Diff line number Diff line change @@ -141,6 +141,13 @@ func (rec *Record) NewSlice(i, j int64) array.Record {
141
141
return NewRecord (rec .tree , WithStart (rec .offset + i ), WithEnd (rec .offset + j ))
142
142
}
143
143
144
+ // RecordReader is an ARROW RecordReader for ROOT Trees.
145
+ //
146
+ // RecordReader does not materialize more than one record at a time.
147
+ // The number of rows (or entries, in ROOT speak) that record loads can be configured
148
+ // at creation time with the WithChunk function.
149
+ // The default is one entry per record.
150
+ // One can pass -1 to WithChunk to create a record with all entries of the Tree or Chain.
144
151
type RecordReader struct {
145
152
refs int64
146
153
@@ -156,8 +163,7 @@ type RecordReader struct {
156
163
rec * Record
157
164
}
158
165
159
- type RecordReaderOption func (r * RecordReader )
160
-
166
+ // NewRecordReader creates a new ARROW RecordReader from the provided ROOT Tree.
161
167
func NewRecordReader (tree rtree.Tree , opts ... Option ) * RecordReader {
162
168
cfg := newConfig (opts )
163
169
Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a BSD-style
3
3
// license that can be found in the LICENSE file.
4
4
5
- // Package rarrow handles conversion between ROOT and ARROW data models.
6
5
package rarrow // import "go-hep.org/x/hep/groot/rarrow"
7
6
8
7
import (
You can’t perform that action at this time.
0 commit comments