1. Migrate some of the best practice articles to the Blog 2. Changed the names of performance tests and best practices to performance tests and examples
1.9 KiB
1.9 KiB
title, language
| title | language |
|---|---|
| 使用示例 | zh-CN |
使用示例
Doris 代码库中提供了丰富的使用示例,能够帮助 Doris 用户快速上手体验 Doris 的功能。
示例说明
示例代码都存放在 Doris 代码库的 samples/ 目录下。
.
├── connect
├── doris-demo
├── insert
└── mini_load
-
connect/该目录下主要展示了各个程序语言连接 Doris 的代码示例。
-
doris-demo/该目下主要以 Maven 工程的形式,展示了 Doris 多个功能的代码示例。如 spark-connector 和 flink-connector 的使用示例、与 Spring 框架集成的示例、Stream Load 导入示例等等。
-
insert/该目录展示了通过 python 或 shell 脚本调用 Doris 的 Insert 命令导入数据的一些代码示例。
-
miniload/该目录展示了通过 python 调用 mini load 进行数据导入的代码示例。但因为 mini load 功能已由 stream load 功能代替,建议使用 stream load 功能进行数据导入。