แหล่งข้อมูล Java Library - เกี่ยวกับคู่มือนี้
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คำแนะนำนี้จะอธิบายวิธีใช้ไลบรารีแหล่งข้อมูลภาพของ Google เพื่อใช้งานแหล่งข้อมูล
คู่มือนี้มีส่วนบทแนะนำสำหรับการเริ่มต้นใช้งานหลังจากแนวคิดต่างๆ ในบทนำ
วิธีนี้ช่วยให้คุณสร้างแหล่งข้อมูลอย่างง่ายและทดสอบได้โดยใช้การแสดงภาพ ส่วนบทแนะนำอื่นๆ คือการใช้ที่เก็บข้อมูลภายนอกและการกำหนดความสามารถและโฟลว์ของเหตุการณ์ ซึ่งครอบคลุมการใช้งานที่ซับซ้อนยิ่งขึ้น คุณอาจไม่จำเป็นต้องทำตามบทแนะนำทั้ง 3 รายการ ทั้งนี้ขึ้นอยู่กับข้อกำหนดของคุณ อย่างไรก็ตาม ขอแนะนำให้กรอกข้อมูลในส่วนเริ่มต้นใช้งานเป็นอย่างน้อย
ส่วนอื่นๆ ของคู่มือนี้จะช่วยเสริมสร้างความรู้ของคุณ
เนื้อหา
ผู้ชม
คุณต้องทำความคุ้นเคยกับ Java และ Java เซิร์ฟเล็ตเทคโนโลยีจึงจะสามารถใช้ไลบรารีได้
คุณยังต้องเข้าใจวิธีใช้แผนภูมิด้วย ซึ่งแม้จะไม่จำเป็น แต่ควรทำความคุ้นเคยกับโปรโตคอลการสื่อสารของ Google Visualization API และภาษาในการค้นหา
ภาพรวมของคำแนะนำ
คู่มือนี้ประกอบด้วยส่วนต่างๆ ต่อไปนี้
- บทนำ
เปิดตัวไลบรารีที่ให้ภาพรวมเกี่ยวกับวิธีการทำงานของแหล่งข้อมูล
- การติดตั้ง
อธิบายข้อกำหนดเบื้องต้นและทรัพยากร Dependency ของไลบรารี รวมถึงวิธีดาวน์โหลดและสร้างซอร์สโค้ด
- การเริ่มต้นใช้งาน
ขอแนะนำ SimpleExampleServlet
SimpleExampleServlet
เป็นตัวอย่างการติดตั้งใช้งานที่ง่ายที่สุดที่มาพร้อมกับไลบรารี
ส่วนนี้ยังมีวิธีเรียกใช้และทดสอบ SimpleExampleServlet
แบบทีละขั้นตอนด้วย
- การใช้ที่เก็บข้อมูลภายนอก
ขอแนะนำ CsvDataSourceServlet
CsvDataSourceServlet
เป็นตัวอย่างการติดตั้งใช้งานที่ใช้ไฟล์ CSV เป็นที่เก็บข้อมูลภายนอก
ส่วนนี้ยังมีวิธีเรียกใช้และทดสอบ CsvDataSourceServlet
แบบทีละขั้นตอนด้วย
- การกำหนดความสามารถและการไหลของเหตุการณ์
ขอแนะนำ AdvancedExampleServlet2
AdvancedExampleServlet2
เป็นตัวอย่างการติดตั้งใช้งานที่ระบุความสามารถและโฟลว์ของเหตุการณ์ ส่วนนี้ยังมีวิธีเรียกใช้และทดสอบ AdvancedExampleServlet2
แบบทีละขั้นตอนด้วย
- การจัดการความปลอดภัย ข้อผิดพลาด คำเตือน และการบันทึก
อธิบายวิธีทำให้แหล่งข้อมูลปลอดภัย
และวิธีจัดการกับข้อผิดพลาด คำเตือน และการบันทึก
- เคล็ดลับการใช้งาน
ให้ข้อมูลที่จะช่วยคุณเขียนการติดตั้งใช้งานไลบรารีที่ซับซ้อนขึ้น
- แพ็กเกจ
คลังและคลาสคีย์
มอบการแนะนำระดับสูงเกี่ยวกับแพ็กเกจและคีย์คลาสของไลบรารี
ตัวอย่างข้อมูลอ้างอิงด่วน
ไลบรารีมีตัวอย่างการใช้งาน 6 แบบ เนื้อหา 3 รายการมีคำอธิบายอยู่ในคู่มือนี้ ส่วนรายการอื่นไม่มี ตารางต่อไปนี้จะช่วยให้คุณเห็นตัวอย่างของประเภทลักษณะการทำงานที่ต้องการใช้
สำหรับข้อมูลเกี่ยวกับโครงการไลบรารีแหล่งข้อมูล โปรดดู หน้าแรก
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-07-10 UTC
[null,null,["อัปเดตล่าสุด 2024-07-10 UTC"],[[["\u003cp\u003eThis guide explains how to use the Google Visualization Data Source Library to create custom data sources for interactive charts using Java and Java Servlet technology.\u003c/p\u003e\n"],["\u003cp\u003eIt includes tutorials on basic setup, using external data stores like CSV files, and defining advanced capabilities like custom event flows.\u003c/p\u003e\n"],["\u003cp\u003eThe guide assumes familiarity with Java, Java Servlets, Google Charts and optionally, the Google Visualization API wire protocol and query language.\u003c/p\u003e\n"],["\u003cp\u003eSeveral example implementations are provided, including \u003ccode\u003eSimpleExampleServlet\u003c/code\u003e, \u003ccode\u003eCsvDataSourceServlet\u003c/code\u003e, and \u003ccode\u003eAdvancedExampleServlet2\u003c/code\u003e, each demonstrating different features of the library.\u003c/p\u003e\n"],["\u003cp\u003eFor more details on the project and its source code, refer to the project's home page.\u003c/p\u003e\n"]]],[],null,["# Data Source Java Library - About This Guide\n\nThis Guide describes how to use the Google Visualization Data Source\nLibrary to implement a data source.\n\nThis guide provides a [Getting Started](/chart/interactive/docs/dev/dsl_get_started) tutorial\nsection after the concepts in the [Introduction](/chart/interactive/docs/dev/dsl_intro).\nThis approach lets you create a simple data source and test it using a\nvisualization. The other tutorial sections are [Using\nan External Data Store](/chart/interactive/docs/dev/dsl_csv) and [Defining\nCapabilities and the Flow of Events](/chart/interactive/docs/dev/dsl_httpservlet), which cover more complex\nimplementations. Depending on your requirements, you might not need to\ncomplete all three tutorials, though it is recommended that you at least\ncomplete the [Getting Started](/chart/interactive/docs/dev/dsl_get_started) section.\nThe other sections of the guide help you to build on your knowledge.\n\nContents\n--------\n\n- [Audience](#audience)\n- [Guide Overview](#overview)\n- [Examples Quick Reference](#quick)\n- [More Information](#more)\n\nAudience\n--------\n\nYou need to be familiar with [Java](http://www.java.com/) and [Java\nservlet technology](http://java.sun.com/products/servlet/overview.html) to use the library.\n\nYou also need to understand [how to\nuse charts](/chart/interactive/docs), and though not essential, it is helpful to be familiar\nwith the Google Visualization API [wire\nprotocol](/chart/interactive/docs/dev/implementing_data_source#requestformat), and the [query\nlanguage](/chart/interactive/docs/querylanguage).\n\nGuide Overview\n--------------\n\nThis guide contains the following sections:\n\n- [Introduction](/chart/interactive/docs/dev/dsl_intro)\n\n\n Introduces the library, providing an overview of how a data source\n works.\n- [Installation](/chart/interactive/docs/dev/dsl_install)\n\n\n Describes the library's prerequisites and dependencies, and how to download\n and build the source code.\n- [Getting Started](/chart/interactive/docs/dev/dsl_get_started)\n\n Introduces `SimpleExampleServlet`. `SimpleExampleServlet` is\n the simplest example implementation that is provided with the library.\n This section also provides step-by-step instructions on how to run and\n test `SimpleExampleServlet`.\n- [Using an External Data Store](/chart/interactive/docs/dev/dsl_csv)\n\n Introduces `CsvDataSourceServlet`. `CsvDataSourceServlet` is\n an example implementation that uses a CSV file as an external data store.\n This section also provides step-by-step instructions on how to run and\n test `CsvDataSourceServlet`.\n- [Defining Capabilities and the Flow of Events](/chart/interactive/docs/dev/dsl_httpservlet)\n\n Introduces `AdvancedExampleServlet2`. `AdvancedExampleServlet2` is\n an example implementation that defines capabilities and flow\n of events. This section also provides step-by-step instructions on how\n to run and test `AdvancedExampleServlet2`.\n- [Handling Security, Errors, Warnings,\n and Logging](/chart/interactive/docs/dev/dsl_errors_and_logging)\n\n Describes how to make your data source secure,\n and how to handle errors, warnings, and logging.\n- [Implementation Tips](/chart/interactive/docs/dev/dsl_key_concepts)\n\n Provides information that will help you write more complex implementations\n of the library.\n- [Library\n Packages and Key Classes](/chart/interactive/docs/dev/dsl_packages)\n\n Provides a high level introduction to the library's packages and key\n classes.\n\nExamples Quick Reference\n------------------------\n\nThe library is provided with six example implementations. Three of these\nare described in this Guide, the others are not. The following\ntable will help\nyou find an example of the type of behavior you want to implement.\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------|------------------|--------------------|--------------------|\n| **Example** | **Servlet extended** | **Capabilities** | **Flow of events** | **Source of data** |\n| [`SimpleExampleServlet`](http://code.google.com/p/google-visualization-java/source/browse/trunk/examples/src/java/SimpleExampleServlet.java) Described in [Getting Started](/chart/interactive/docs/dev/dsl_get_started) | `DataSourceServlet` | `NONE` | Default | Within class |\n| [CsvDataSourceServlet](http://code.google.com/p/google-visualization-java/source/browse/trunk/examples/src/java/CsvDataSourceServlet.java) Described in [Using an External Data Store](/chart/interactive/docs/dev/dsl_csv) | `DataSourceServlet` | `NONE` | Default | CSV file |\n| [`AdvancedExampleServlet2`](http://code.google.com/p/google-visualization-java/source/browse/trunk/examples/src/java/AdvancedExampleServlet2.java) Described in [Defining Capabilities and the Flow of Events](/chart/interactive/docs/dev/dsl_httpservlet) | `HttpServlet` | `SELECT` | Custom | Within class |\n| [SimpleExampleServlet2](http://code.google.com/p/google-visualization-java/source/browse/trunk/examples/src/java/SimpleExampleServlet2.java) Not described in this Guide | `HttpServlet` ` ` | `NONE` | Custom | Within class |\n| [AdvancedExampleServlet](http://code.google.com/p/google-visualization-java/source/browse/trunk/examples/src/java/AdvancedExampleServlet.java) Not described in this Guide | `DataSourceServlet` | `SELECT` | Default | Within class |\n| [SqlDataSourceServlet](http://code.google.com/p/google-visualization-java/source/browse/trunk/examples/src/java/SqlDataSourceServlet.java) Not described in this Guide | `DataSourceServlet` | `SQL` | Default | SQL database |\n\nMore Information\n----------------\n\nFor information on the Data Source Library project, see the [home\npage](http://code.google.com/p/google-visualization-java/)."]]