데이터 소스 Java 라이브러리 - 가이드 정보
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이 가이드에서는 Google 시각화 데이터 소스 라이브러리를 사용하여 데이터 소스를 구현하는 방법을 설명합니다.
이 가이드에서는 소개의 개념 다음에 나오는 시작하기 튜토리얼 섹션을 제공합니다.
이 접근 방식을 사용하면 간단한 데이터 소스를 만들고 시각화를 사용하여 테스트할 수 있습니다. 다른 가이드 섹션은 외부 데이터 저장소 사용과 기능 및 이벤트 흐름 정의로, 좀 더 복잡한 구현을 다룹니다. 요구사항에 따라 세 튜토리얼을 모두 완료할 필요는 없지만 최소한 시작하기 섹션은 완료하는 것이 좋습니다.
가이드의 다른 섹션은 지식을 쌓는 데 도움이 됩니다.
목차
시청자층
라이브러리를 사용하려면 자바 및 자바 서블릿 기술을 잘 알고 있어야 합니다.
차트 사용 방법도 이해해야 합니다. 차트 사용 방법까지 알아야 하는 것은 아니지만 Google 시각화 API 유선 프로토콜과 쿼리 언어에 익숙하면 도움이 됩니다.
가이드 개요
이 가이드에는 다음과 같은 섹션이 있습니다.
- 도입
라이브러리를 도입하여 데이터 소스의 작동 방식에 관한 개요를 제공합니다.
- 설치
라이브러리의 기본 요건 및 종속 항목, 소스 코드 다운로드 및 빌드 방법을 설명합니다.
- 시작하기
SimpleExampleServlet
를 도입합니다. SimpleExampleServlet
는 라이브러리와 함께 제공되는 가장 간단한 구현 예입니다.
이 섹션에서는 SimpleExampleServlet
를 실행하고 테스트하는 방법에 관한 단계별 안내도 제공합니다.
- 외부 데이터 스토어 사용
CsvDataSourceServlet
를 도입합니다. CsvDataSourceServlet
는 CSV 파일을 외부 데이터 저장소로 사용하는 구현 예입니다.
이 섹션에서는 CsvDataSourceServlet
를 실행하고 테스트하는 방법에 관한 단계별 안내도 제공합니다.
- 기능 및 이벤트 흐름 정의
AdvancedExampleServlet2
를 도입합니다. AdvancedExampleServlet2
는 기능 및 이벤트 흐름을 정의하는 구현 예입니다. 이 섹션에서는 AdvancedExampleServlet2
를 실행하고 테스트하는 방법에 관한 단계별 안내도 제공합니다.
- 보안, 오류, 경고, 로깅 처리
데이터 소스를 안전하게 만드는 방법과 오류, 경고, 로깅을 처리하는 방법을 설명합니다.
- 구현 도움말
라이브러리의 더 복잡한 구현을 작성하는 데 도움이 되는 정보를 제공합니다.
- 라이브러리 패키지 및 키 클래스
라이브러리의 패키지와 키 클래스를 대략적으로 소개합니다.
예제 빠른 참조
라이브러리에는 6가지 구현 예가 포함되어 있습니다. 이 중 세 가지는
이 가이드에 설명되어 있으며 나머지는 그렇지 않습니다. 다음 표를 참고하면 구현하려는 동작 유형의 예를 찾을 수 있습니다.
데이터 소스 라이브러리 프로젝트에 대한 자세한 내용은 홈페이지를 참고하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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/)."]]