Enum | |
---|---|
COLUMN_DATA_TYPE_UNSPECIFIED |
ค่า enum เริ่มต้น ไม่มีผลกับประเภท โปรดอย่าใช้ |
COLUMN_DATA_TYPE_STRING |
ควรถือว่าคอลัมน์ที่เชื่อมโยงเป็นสตริง (ในการเข้ารหัสเดียวกันกับไฟล์อินพุต หากไฟล์เป็น CSV) มีประโยชน์ในกรณีที่ระบบตรวจพบคอลัมน์เป็นตัวเลขโดยอัตโนมัติ |
COLUMN_DATA_TYPE_NUMERIC |
ควรถือว่าคอลัมน์ที่เชื่อมโยงเป็นตัวเลข (มีประโยชน์สำหรับคอลัมน์ที่ไม่มีข้อมูล ซึ่งจะกลายเป็นสตริงโดยค่าเริ่มต้น) |
COLUMN_DATA_TYPE_LONG |
ควรถือว่าคอลัมน์ที่เชื่อมโยงเป็นแบบยาว |
ColumnDataType
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\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. |"]]