当前位置: 首页>>代码示例>>Golang>>正文


Golang v2.JobConfigurationLoad类代码示例

本文整理汇总了Golang中google/golang.org/api/bigquery/v2.JobConfigurationLoad的典型用法代码示例。如果您正苦于以下问题:Golang JobConfigurationLoad类的具体用法?Golang JobConfigurationLoad怎么用?Golang JobConfigurationLoad使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了JobConfigurationLoad类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。

示例1: populateLoadConfig

func (fc *FileConfig) populateLoadConfig(conf *bq.JobConfigurationLoad) {
	conf.SkipLeadingRows = fc.SkipLeadingRows
	conf.SourceFormat = string(fc.SourceFormat)
	conf.AllowJaggedRows = fc.AllowJaggedRows
	conf.AllowQuotedNewlines = fc.AllowQuotedNewlines
	conf.Encoding = string(fc.Encoding)
	conf.FieldDelimiter = fc.FieldDelimiter
	conf.IgnoreUnknownValues = fc.IgnoreUnknownValues
	conf.MaxBadRecords = fc.MaxBadRecords
	if fc.Schema != nil {
		conf.Schema = fc.Schema.asTableSchema()
	}
	conf.Quote = fc.quote()
}
开发者ID:trythings,项目名称:trythings,代码行数:14,代码来源:file.go

示例2: customizeLoadSrc

func (gcs *GCSReference) customizeLoadSrc(conf *bq.JobConfigurationLoad, projectID string) {
	conf.SourceUris = gcs.uris
	conf.SkipLeadingRows = gcs.SkipLeadingRows
	conf.SourceFormat = string(gcs.SourceFormat)
	conf.Encoding = string(gcs.Encoding)
	conf.FieldDelimiter = gcs.FieldDelimiter

	// TODO(mcgreevy): take into account gcs.ForceZeroQuote once the underlying library supports it.
	conf.Quote = gcs.Quote
}
开发者ID:rizzles,项目名称:convert,代码行数:10,代码来源:gcs.go

示例3: customizeLoadSrc

func (gcs *GCSReference) customizeLoadSrc(conf *bq.JobConfigurationLoad) {
	conf.SourceUris = gcs.uris
	conf.SkipLeadingRows = gcs.SkipLeadingRows
	conf.SourceFormat = string(gcs.SourceFormat)
	conf.Encoding = string(gcs.Encoding)
	conf.FieldDelimiter = gcs.FieldDelimiter

	if gcs.ForceZeroQuote {
		quote := ""
		conf.Quote = &quote
	} else if gcs.Quote != "" {
		conf.Quote = &gcs.Quote
	}
}
开发者ID:rawlingsj,项目名称:gofabric8,代码行数:14,代码来源:gcs.go

示例4: customizeLoadDst

func (t *Table) customizeLoadDst(conf *bq.JobConfigurationLoad, projectID string) {
	conf.DestinationTable = t.tableRefProto()
}
开发者ID:hsinhoyeh,项目名称:gcloud-golang,代码行数:3,代码来源:table.go

示例5: customizeLoad

func (opt ignoreUnknownValues) customizeLoad(conf *bq.JobConfigurationLoad, projectID string) {
	conf.IgnoreUnknownValues = true
}
开发者ID:nildev,项目名称:account,代码行数:3,代码来源:load_op.go

示例6: customizeLoadDst

func (t *Table) customizeLoadDst(conf *bq.JobConfigurationLoad, projectID string) {
	conf.DestinationTable = t.tableRefProto()
	conf.CreateDisposition = string(t.CreateDisposition)
	conf.WriteDisposition = string(t.WriteDisposition)
}
开发者ID:AbhiAgarwal,项目名称:abelana,代码行数:5,代码来源:table.go

示例7: customizeLoad

func (opt TableWriteDisposition) customizeLoad(conf *bq.JobConfigurationLoad, projectID string) {
	conf.WriteDisposition = string(opt)
}
开发者ID:hsinhoyeh,项目名称:gcloud-golang,代码行数:3,代码来源:table.go


注:本文中的google/golang.org/api/bigquery/v2.JobConfigurationLoad类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。