File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,13 @@ func (f *Field) Nullable() bool {
226
226
return f .Type ().Nullable ()
227
227
}
228
228
229
+ // SetConfig modifies the Field's Config property to
230
+ // be set to conf and returns the Field.
231
+ func (f * Field ) SetConfig (conf * FieldConfig ) * Field {
232
+ f .Config = conf
233
+ return f
234
+ }
235
+
229
236
// FloatAt returns a float64 at the specified index idx for all supported Field types.
230
237
// It will panic if idx is out of range.
231
238
//
Original file line number Diff line number Diff line change @@ -211,13 +211,6 @@ func (f *Frame) TypeIndices(fTypes ...FieldType) []int {
211
211
return indices
212
212
}
213
213
214
- // SetConfig modifies the Field's Config property to
215
- // be set to conf and returns the Field.
216
- func (f * Field ) SetConfig (conf * FieldConfig ) * Field {
217
- f .Config = conf
218
- return f
219
- }
220
-
221
214
// NewFrame returns a new Frame.
222
215
func NewFrame (name string , fields ... * Field ) * Frame {
223
216
return & Frame {
@@ -232,6 +225,12 @@ func (f *Frame) SetMeta(m *FrameMeta) *Frame {
232
225
return f
233
226
}
234
227
228
+ // SetRefID sets the Frame's RefID attribute to r and returns the Frame.
229
+ func (f * Frame ) SetRefID (r string ) * Frame {
230
+ f .RefID = r
231
+ return f
232
+ }
233
+
235
234
// Rows returns the number of rows in the frame.
236
235
func (f * Frame ) Rows () int {
237
236
if len (f .Fields ) > 0 {
You can’t perform that action at this time.
0 commit comments