@@ -606,18 +606,18 @@ func (data bulkUpsertRows) ApplyBulkUpsertRequest(a *allocator.Allocator, req *B
606606 return nil
607607}
608608
609- func NewBulkUpsertRows (rows value.Value ) bulkUpsertRows {
609+ func BulkUpsertDataRows (rows value.Value ) bulkUpsertRows {
610610 return bulkUpsertRows {
611611 Rows : rows ,
612612 }
613613}
614614
615615type bulkUpsertCsv struct {
616616 Data []byte
617- Options []CsvFormatOption
617+ Options []csvFormatOption
618618}
619619
620- type CsvFormatOption interface {
620+ type csvFormatOption interface {
621621 ApplyCsvFormatOption (req * BulkUpsertRequest ) (err error )
622622}
623623
@@ -637,7 +637,7 @@ func (data bulkUpsertCsv) ApplyBulkUpsertRequest(a *allocator.Allocator, req *Bu
637637 return err
638638}
639639
640- func NewBulkUpsertCsv (data []byte , opts ... CsvFormatOption ) bulkUpsertCsv {
640+ func BulkUpsertDataCsv (data []byte , opts ... csvFormatOption ) bulkUpsertCsv {
641641 return bulkUpsertCsv {
642642 Data : data ,
643643 Options : opts ,
@@ -674,7 +674,7 @@ func (opt *csvHeaderOption) ApplyCsvFormatOption(req *BulkUpsertRequest) error {
674674}
675675
676676// First not skipped line is a CSV header (list of column names).
677- func WithCsvHeader () CsvFormatOption {
677+ func WithCsvHeader () csvFormatOption {
678678 return & csvHeaderOption {}
679679}
680680
@@ -689,7 +689,7 @@ func (opt *csvNullValueOption) ApplyCsvFormatOption(req *BulkUpsertRequest) erro
689689}
690690
691691// String value that would be interpreted as NULL.
692- func WithCsvNullValue (value []byte ) CsvFormatOption {
692+ func WithCsvNullValue (value []byte ) csvFormatOption {
693693 return & csvNullValueOption {value }
694694}
695695
@@ -704,7 +704,7 @@ func (opt *csvDelimiterOption) ApplyCsvFormatOption(req *BulkUpsertRequest) erro
704704}
705705
706706// Fields delimiter in CSV file. It's "," if not set.
707- func WithCsvDelimiter (value []byte ) CsvFormatOption {
707+ func WithCsvDelimiter (value []byte ) csvFormatOption {
708708 return & csvDelimiterOption {value }
709709}
710710
@@ -719,16 +719,16 @@ func (opt *csvSkipRowsOption) ApplyCsvFormatOption(req *BulkUpsertRequest) error
719719}
720720
721721// Number of rows to skip before CSV data. It should be present only in the first upsert of CSV file.
722- func WithCsvSkipRows (count uint32 ) CsvFormatOption {
722+ func WithCsvSkipRows (count uint32 ) csvFormatOption {
723723 return & csvSkipRowsOption {count }
724724}
725725
726726type bulkUpsertArrow struct {
727727 Data []byte
728- Options []ArrowFormatOption
728+ Options []arrowFormatOption
729729}
730730
731- type ArrowFormatOption interface {
731+ type arrowFormatOption interface {
732732 ApplyArrowFormatOption (req * BulkUpsertRequest ) (err error )
733733}
734734
@@ -748,7 +748,7 @@ func (data bulkUpsertArrow) ApplyBulkUpsertRequest(a *allocator.Allocator, req *
748748 return err
749749}
750750
751- func NewBulkUpsertArrow (data []byte , opts ... ArrowFormatOption ) bulkUpsertArrow {
751+ func BulkUpsertDataArrow (data []byte , opts ... arrowFormatOption ) bulkUpsertArrow {
752752 return bulkUpsertArrow {
753753 Data : data ,
754754 Options : opts ,
@@ -786,6 +786,6 @@ func (opt *arrowSchemaOption) ApplyArrowFormatOption(req *BulkUpsertRequest) err
786786 return nil
787787}
788788
789- func WithArrowSchema (schema []byte ) ArrowFormatOption {
789+ func WithArrowSchema (schema []byte ) arrowFormatOption {
790790 return & arrowSchemaOption {schema }
791791}
0 commit comments