CsvColumnDataType
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
Enum |
CSV_COLUMN_DATA_TYPE_UNSPECIFIED |
ค่า enum เริ่มต้น ไม่มีผลกับประเภท โปรดอย่าใช้ |
CSV_COLUMN_DATA_TYPE_STRING |
ควรถือว่าคอลัมน์ที่เชื่อมโยงเป็นสตริงในการเข้ารหัสเดียวกับไฟล์ CSV (มีประโยชน์หากระบบตรวจหาคอลัมน์เป็นตัวเลขโดยอัตโนมัติ) |
CSV_COLUMN_DATA_TYPE_NUMERIC |
ควรถือว่าคอลัมน์ที่เชื่อมโยงเป็นตัวเลข (มีประโยชน์สำหรับคอลัมน์ที่ไม่มีข้อมูล ซึ่งจะกลายเป็นสตริงโดยค่าเริ่มต้น) |
CSV_COLUMN_DATA_TYPE_LONG |
ควรถือว่าคอลัมน์ที่เชื่อมโยงเป็นแบบยาว |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eThis item, \u003ccode\u003eCSVColumnDataType\u003c/code\u003e, is deprecated and should no longer be used.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should utilize \u003ccode\u003eColumnDataType\u003c/code\u003e instead of \u003ccode\u003eCSVColumnDataType\u003c/code\u003e for specifying column types.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCSVColumnDataType\u003c/code\u003e included options for treating columns as strings, numeric, or long data types.\u003c/p\u003e\n"],["\u003cp\u003eUsing the default \u003ccode\u003eCSV_COLUMN_DATA_TYPE_UNSPECIFIED\u003c/code\u003e enum value has no effect and should be avoided.\u003c/p\u003e\n"]]],["The provided information outlines deprecated item and lists available options for `ColumnDataType`. These options include `CSV_COLUMN_DATA_TYPE_UNSPECIFIED` (default, not for use), `CSV_COLUMN_DATA_TYPE_STRING` (forces string interpretation), `CSV_COLUMN_DATA_TYPE_NUMERIC` (forces numeric), and `CSV_COLUMN_DATA_TYPE_LONG` (forces long data type). These specify how a CSV column should be treated, allowing overrides of automatic detection. `ColumnDataType` is the recommended alternative.\n"],null,["# CsvColumnDataType\n\n| This item is deprecated!\nUse ColumnDataType instead\n\n| Enums ||\n|------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|\n| `CSV_COLUMN_DATA_TYPE_UNSPECIFIED` | Default enum value, no effect on types. Do not use. |\n| `CSV_COLUMN_DATA_TYPE_STRING` | The associated column should be treated as a string in the same encoding as the CSV file (useful if the column is auto-detected as numeric). |\n| `CSV_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| `CSV_COLUMN_DATA_TYPE_LONG` | The associated column should be treated as a long. |"]]