枚举 | |
---|---|
COLUMN_DATA_TYPE_UNSPECIFIED |
默认枚举值,对类型没有影响。请勿使用。 |
COLUMN_DATA_TYPE_STRING |
关联的列应被视为字符串(如果文件是 CSV 文件,则采用与输入文件相同的编码)。如果系统自动检测到列为数值,则此参数非常有用。 |
COLUMN_DATA_TYPE_NUMERIC |
关联的列应被视为数值(对于没有数据的列非常有用,这些列默认会变为字符串)。 |
COLUMN_DATA_TYPE_LONG |
关联的列应视为 long。 |
ColumnDataType
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eEnums specify the data type of a column in a dataset.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCOLUMN_DATA_TYPE_STRING\u003c/code\u003e, \u003ccode\u003eCOLUMN_DATA_TYPE_NUMERIC\u003c/code\u003e, and \u003ccode\u003eCOLUMN_DATA_TYPE_LONG\u003c/code\u003e enums enforce specific data type interpretations for columns.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCOLUMN_DATA_TYPE_UNSPECIFIED\u003c/code\u003e is a default value and should not be used.\u003c/p\u003e\n"],["\u003cp\u003eThese enums are particularly helpful when a column's data type is auto-detected incorrectly or when dealing with empty columns.\u003c/p\u003e\n"]]],[],null,["# ColumnDataType\n\n| Enums ||\n|--------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `COLUMN_DATA_TYPE_UNSPECIFIED` | Default enum value, no effect on types. Do not use. |\n| `COLUMN_DATA_TYPE_STRING` | The associated column should be treated as a string (in the same encoding as the input file, if the file is CSV). Useful if the column is auto-detected as numeric. |\n| `COLUMN_DATA_TYPE_NUMERIC` | The associated column should be treated as a numeric (useful for columns with no data, which become strings by default). |\n| `COLUMN_DATA_TYPE_LONG` | The associated column should be treated as a long. |"]]