mhitClass){
19 | this.mhitClass = mhitClass;
20 | }
21 | public Class> getHitClass() {
22 | return hitClass;
23 | }
24 |
25 |
26 | public JavaType getJavaType() {
27 | return javaType;
28 | }
29 |
30 | public Class> getAggClass() {
31 | return aggClass;
32 | }
33 |
34 | public void setHitClass(Class> hitClass) {
35 | this.hitClass = hitClass;
36 | }
37 |
38 | public void setAggClass(Class> aggClass) {
39 | this.aggClass = aggClass;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-rest-entity/src/main/java/org/frameworkset/elasticsearch/serial/ESHitDeserializer.java:
--------------------------------------------------------------------------------
1 | package org.frameworkset.elasticsearch.serial;
2 |
3 | public class ESHitDeserializer extends BaseESHitDeserializer {
4 | public ESHitDeserializer(){
5 |
6 | }
7 | @Override
8 | protected ESClass getESInnerTypeReferences() {
9 | return ESSerialThreadLocal.getESTypeReferences();
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-rest/.gitignore:
--------------------------------------------------------------------------------
1 | /build/
2 | /bin/
3 | /.settings/
4 | /es.log
5 | /out/
6 | /.classpath
7 | /.project
8 | /common.log
9 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-rest/src/main/java/org/frameworkset/elasticsearch/Clock.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.frameworkset.elasticsearch;
20 |
21 | /**
22 | * Facade for System.currentTimeMillis for Testing
23 | */
24 | public interface Clock {
25 | long currentTimeMillis();
26 | }
27 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-rest/src/main/java/org/frameworkset/elasticsearch/ESVersionInfo.java:
--------------------------------------------------------------------------------
1 | package org.frameworkset.elasticsearch;
2 | /**
3 | * Copyright 2020 bboss
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | /**
19 | *
Description: Get bboss elasticsearch client version info.
20 | *
21 | * Copyright (c) 2020
22 | * @Date 2021/7/24 9:48
23 | * @author biaoping.yin
24 | * @version 1.0
25 | */
26 | public class ESVersionInfo {
27 | public static String getESVersion636(){
28 | return "6.3.6";
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-rest/src/main/java/org/frameworkset/elasticsearch/ElasticSearchDSStoppedException.java:
--------------------------------------------------------------------------------
1 | package org.frameworkset.elasticsearch;
2 |
3 | public class ElasticSearchDSStoppedException extends ElasticSearchException {
4 |
5 | public ElasticSearchDSStoppedException() {
6 | }
7 |
8 | public ElasticSearchDSStoppedException(String message) {
9 | super(message);
10 | }
11 |
12 | public ElasticSearchDSStoppedException(Throwable cause) {
13 | super(cause);
14 | }
15 |
16 | public ElasticSearchDSStoppedException(String message, Throwable cause) {
17 | super(message, cause);
18 | }
19 |
20 | public ElasticSearchDSStoppedException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
21 | super(message, cause, enableSuppression, writableStackTrace);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-rest/src/main/java/org/frameworkset/elasticsearch/ElasticsearchConstant.java:
--------------------------------------------------------------------------------
1 | package org.frameworkset.elasticsearch;
2 | /**
3 | * Copyright 2020 bboss
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | /**
19 | *
Description:
20 | *
21 | * Copyright (c) 2020
22 | * @Date 2021/3/22 21:48
23 | * @author biaoping.yin
24 | * @version 1.0
25 | */
26 | public abstract class ElasticsearchConstant {
27 | public static boolean FAIL_ON_UNKNOWN_PROPERTIES = false;
28 | }
29 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-rest/src/main/java/org/frameworkset/elasticsearch/ElasticsearchParseException.java:
--------------------------------------------------------------------------------
1 | package org.frameworkset.elasticsearch;
2 |
3 | public class ElasticsearchParseException extends RuntimeException {
4 |
5 | public ElasticsearchParseException() {
6 | // TODO Auto-generated constructor stub
7 | }
8 |
9 | public ElasticsearchParseException(String message) {
10 | super(message);
11 | // TODO Auto-generated constructor stub
12 | }
13 |
14 | public ElasticsearchParseException(Throwable cause) {
15 | super(cause);
16 | // TODO Auto-generated constructor stub
17 | }
18 |
19 | public ElasticsearchParseException(String message, Throwable cause) {
20 | super(message, cause);
21 | // TODO Auto-generated constructor stub
22 | }
23 |
24 | public ElasticsearchParseException(String message, Throwable cause, boolean enableSuppression,
25 | boolean writableStackTrace) {
26 | super(message, cause, enableSuppression, writableStackTrace);
27 | // TODO Auto-generated constructor stub
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-rest/src/main/java/org/frameworkset/elasticsearch/EventDeliveryException.java:
--------------------------------------------------------------------------------
1 | package org.frameworkset.elasticsearch;
2 |
3 | public class EventDeliveryException extends RuntimeException {
4 |
5 | public EventDeliveryException() {
6 | // TODO Auto-generated constructor stub
7 | }
8 |
9 | public EventDeliveryException(String message) {
10 | super(message);
11 | // TODO Auto-generated constructor stub
12 | }
13 |
14 | public EventDeliveryException(Throwable cause) {
15 | super(cause);
16 | // TODO Auto-generated constructor stub
17 | }
18 |
19 | public EventDeliveryException(String message, Throwable cause) {
20 | super(message, cause);
21 | // TODO Auto-generated constructor stub
22 | }
23 |
24 | public EventDeliveryException(String message, Throwable cause, boolean enableSuppression,
25 | boolean writableStackTrace) {
26 | super(message, cause, enableSuppression, writableStackTrace);
27 | // TODO Auto-generated constructor stub
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-rest/src/main/java/org/frameworkset/elasticsearch/client/ClientUtil.java:
--------------------------------------------------------------------------------
1 | package org.frameworkset.elasticsearch.client;
2 |
3 | import org.frameworkset.elasticsearch.template.TemplateContainer;
4 |
5 | /**
6 | * document
7 | * https://esdoc.bbossgroups.com/#/README
8 | */
9 | public abstract class ClientUtil implements ClientInterface{
10 |
11 | @Override
12 | public TemplateContainer getTemplatecontext(){
13 | return null;
14 | }
15 | @Override
16 | public String evalConfigDsl(String dslName,Object params){
17 | return null;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-rest/src/main/java/org/frameworkset/elasticsearch/client/NoServerElasticSearchException.java:
--------------------------------------------------------------------------------
1 | package org.frameworkset.elasticsearch.client;
2 |
3 | import org.frameworkset.elasticsearch.ElasticSearchException;
4 |
5 | public class NoServerElasticSearchException extends ElasticSearchException {
6 | public NoServerElasticSearchException() {
7 | }
8 |
9 | public NoServerElasticSearchException(String message) {
10 | super(message);
11 | }
12 |
13 | public NoServerElasticSearchException(Throwable cause) {
14 | super(cause);
15 | }
16 |
17 | public NoServerElasticSearchException(String message, Throwable cause) {
18 | super(message, cause);
19 | }
20 |
21 | public NoServerElasticSearchException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
22 | super(message, cause, enableSuppression, writableStackTrace);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-rest/src/main/java/org/frameworkset/elasticsearch/client/NoSuchClientTypeException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package org.frameworkset.elasticsearch.client;
18 |
19 | /**
20 | * Exception class
21 | */
22 | class NoSuchClientTypeException extends Exception {
23 | }
24 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-rest/src/main/java/org/frameworkset/elasticsearch/client/SliceScroll.java:
--------------------------------------------------------------------------------
1 | package org.frameworkset.elasticsearch.client;
2 | /**
3 | * Copyright 2008 biaoping.yin
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | /**
19 | *
Description:
20 | *
21 | * Copyright (c) 2018
22 | * @Date 2018/10/14 22:11
23 | * @author biaoping.yin
24 | * @version 1.0
25 | */
26 | public interface SliceScroll {
27 | String buildSliceDsl(int sliceId, int max);
28 | }
29 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-rest/src/main/java/org/frameworkset/elasticsearch/handler/BaseGetDocESResponsehandler.java:
--------------------------------------------------------------------------------
1 | package org.frameworkset.elasticsearch.handler;
2 |
3 | import org.frameworkset.elasticsearch.entity.SearchHit;
4 | import org.frameworkset.elasticsearch.serial.ESClassType;
5 | import org.frameworkset.elasticsearch.serial.ESTypeReferences;
6 | import org.frameworkset.spi.remote.http.URLResponseHandler;
7 |
8 | public abstract class BaseGetDocESResponsehandler extends BaseResponsehandler implements URLResponseHandler {
9 |
10 | public BaseGetDocESResponsehandler() {
11 | super();
12 | // TODO Auto-generated constructor stub
13 | }
14 |
15 | public BaseGetDocESResponsehandler(Class> types) {
16 | super(types);
17 | // TODO Auto-generated constructor stub
18 | }
19 |
20 | public BaseGetDocESResponsehandler(ESClassType types) {
21 | super(types);
22 | // TODO Auto-generated constructor stub
23 | }
24 |
25 | public BaseGetDocESResponsehandler(ESTypeReferences types) {
26 | super(types);
27 | // TODO Auto-generated constructor stub
28 | }
29 |
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-rest/src/main/java/org/frameworkset/elasticsearch/handler/ESAggBucketHandle.java:
--------------------------------------------------------------------------------
1 | package org.frameworkset.elasticsearch.handler;
2 |
3 | import org.frameworkset.elasticsearch.entity.RestResponse;
4 |
5 | import java.util.Map;
6 |
7 | /**
8 | * 聚合查询bucket处理接口
9 | */
10 | public interface ESAggBucketHandle {
11 | /**
12 | * 聚合操作自定义指标处理函数
13 | * @param result 检索结果
14 | * @param bucket 存放聚合桶bucket中对应的metrics统计指标值
15 | * @param obj 封装指标数据的业务对象
16 | * @param key 桶的对应的指标键值名称
17 | */
18 | void bucketHandle(RestResponse result, Map bucket, T obj, String key);
19 | }
20 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-rest/src/main/java/org/frameworkset/elasticsearch/handler/ESExceptionWrapper.java:
--------------------------------------------------------------------------------
1 | package org.frameworkset.elasticsearch.handler;
2 | /**
3 | * Copyright 2008 biaoping.yin
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | import org.frameworkset.elasticsearch.ElasticSearchException;
19 |
20 | /**
21 | *
Description:
22 | *
23 | * Copyright (c) 2018
24 | * @Date 2018/7/19 15:44
25 | * @author biaoping.yin
26 | * @version 1.0
27 | */
28 | public interface ESExceptionWrapper {
29 | ElasticSearchException getElasticSearchException();
30 | }
31 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-rest/src/main/java/org/frameworkset/elasticsearch/template/ESTemplateFactory.java:
--------------------------------------------------------------------------------
1 | package org.frameworkset.elasticsearch.template;
2 | /**
3 | * Copyright 2024 bboss
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | import bboss.org.apache.velocity.runtime.resource.Resource;
19 |
20 | /**
21 | *
Description:
22 | *
23 | *
24 | * @author biaoping.yin
25 | * @Date 2024/12/23
26 | */
27 | public interface ESTemplateFactory {
28 | ESTemplate createESTemplate(ESInfo esInfo);
29 | }
30 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-rest/src/main/java/org/frameworkset/elasticsearch/util/TimeWindowSampler.java:
--------------------------------------------------------------------------------
1 | package org.frameworkset.elasticsearch.util;/*
2 | * Copyright 2008 biaoping.yin
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | public interface TimeWindowSampler {
18 | long getWindowSize(long from ,long to);
19 | String getWindowInterval(long from ,long to);
20 | }
21 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-spring-boot-starter/.gitignore:
--------------------------------------------------------------------------------
1 | /build/
2 | /bin/
3 | /.settings/
4 | /es.log
5 | /out/
6 | /.classpath
7 | /.project
8 | /common.log
9 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-spring-boot-starter/build.gradle:
--------------------------------------------------------------------------------
1 | sourceSets {
2 | main {
3 | java {
4 | srcDir 'src/main/java'
5 |
6 | }
7 | resources {
8 | srcDir 'src/main/resources'
9 | srcDir 'src/main/java' exclude '**/*.java'
10 | }
11 |
12 | }
13 | test {
14 | java {
15 | srcDir 'src/test/java'
16 |
17 | }
18 | resources {
19 | srcDir 'src/test/resources'
20 | srcDir 'src/test/java' exclude '**/*.java'
21 | }
22 |
23 | }
24 |
25 | }
26 |
27 |
28 | dependencies {
29 |
30 | api(
31 | // project(':bboss-elasticsearch-rest-booter'),
32 | project(':bboss-elasticsearch-rest')
33 | )
34 | compileOnly(
35 | [group: 'org.springframework.boot', name: 'spring-boot-autoconfigure', version: '2.7.18', transitive: true],
36 | [group: 'org.springframework.boot', name: 'spring-boot-configuration-processor', version: '2.7.18', transitive: true]
37 | )
38 |
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-spring-boot-starter/src/main/java/org/frameworkset/elasticsearch/boot/BBossESProperties.java:
--------------------------------------------------------------------------------
1 | package org.frameworkset.elasticsearch.boot;/*
2 | * Copyright 2008 biaoping.yin
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import org.springframework.boot.context.properties.ConfigurationProperties;
18 |
19 | @ConfigurationProperties(prefix = "spring.elasticsearch.bboss")
20 | public class BBossESProperties extends BaseESProperties{
21 |
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-spring-boot-starter/src/main/resources/META-INF/spring.factories:
--------------------------------------------------------------------------------
1 | org.springframework.boot.autoconfigure.EnableAutoConfiguration=org.frameworkset.elasticsearch.boot.BBossESAutoConfiguration
--------------------------------------------------------------------------------
/bboss-elasticsearch-spring-boot-starter/src/test/resources/log4j2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-spring-boot3-starter/.gitignore:
--------------------------------------------------------------------------------
1 | /build/
2 | /bin/
3 | /.settings/
4 | /es.log
5 | /out/
6 | /.classpath
7 | /.project
8 | /common.log
9 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-spring-boot3-starter/src/main/java/org/frameworkset/elasticsearch/boot/BBossESProperties.java:
--------------------------------------------------------------------------------
1 | package org.frameworkset.elasticsearch.boot;/*
2 | * Copyright 2008 biaoping.yin
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import org.springframework.boot.context.properties.ConfigurationProperties;
18 |
19 | @ConfigurationProperties(prefix = "spring.elasticsearch.bboss")
20 | public class BBossESProperties extends BaseESProperties{
21 |
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-spring-boot3-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json:
--------------------------------------------------------------------------------
1 | {
2 | "properties": [
3 |
4 | ],
5 | "hints": [
6 |
7 | ]
8 | }
9 |
--------------------------------------------------------------------------------
/bboss-elasticsearch-spring-boot3-starter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports:
--------------------------------------------------------------------------------
1 | org.frameworkset.elasticsearch.boot.BBossESAutoConfiguration
--------------------------------------------------------------------------------
/bboss-elasticsearch-spring-boot3-starter/src/test/resources/log4j2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/bboss.gpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bbossgroups/bboss-elasticsearch/102a50429a79f80dab9e16b14ad2ed22f559050c/bboss.gpg
--------------------------------------------------------------------------------
/docs/.nojekyll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bbossgroups/bboss-elasticsearch/102a50429a79f80dab9e16b14ad2ed22f559050c/docs/.nojekyll
--------------------------------------------------------------------------------
/docs/HBase-Elasticsearch数据同步.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bbossgroups/bboss-elasticsearch/102a50429a79f80dab9e16b14ad2ed22f559050c/docs/HBase-Elasticsearch数据同步.docx
--------------------------------------------------------------------------------
/docs/_coverpage.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 | # BBoss 7.3.8
4 |
5 | > The best Elasticsearch/Opensearch highlevel java rest api
6 | > 数据采集ETL
7 | > 流批一体化大数据分析处理
8 |
9 | - 基于Apache License 2.0开源
10 | - A high performence o/r mapping rest client,ES小白分分钟上手,功能丰富,涵盖Elasticsearch所有功能,自带客户端集群节点负载均衡和容灾,多集群多数据源,自动索引托管,多种分页机制,傻瓜级CRUD,脚本,sql,jdbc,高亮,权重,聚合,IP,GEO地理位置,父子嵌套,应有尽有。
11 | - Support Elasticsearch 1.x,2.x,5.x,6.x,7.x,8.x,+
12 | - Support Opensearch 1.x,2.x,+
13 | - 简版 Flink,引入一个 Maven 坐标,极低成本搞定数据采集、数据分析处理、数据流批处理计算
14 |
15 | [GitHub](https://github.com/bbossgroups/bboss-elastic-tran)
16 | [Getting Started](README.md)
17 |
18 |
--------------------------------------------------------------------------------
/docs/_images/db-es-dist.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bbossgroups/bboss-elasticsearch/102a50429a79f80dab9e16b14ad2ed22f559050c/docs/_images/db-es-dist.png
--------------------------------------------------------------------------------
/docs/_images/deploy-github-pages.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bbossgroups/bboss-elasticsearch/102a50429a79f80dab9e16b14ad2ed22f559050c/docs/_images/deploy-github-pages.png
--------------------------------------------------------------------------------
/docs/_images/multidatasource.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bbossgroups/bboss-elasticsearch/102a50429a79f80dab9e16b14ad2ed22f559050c/docs/_images/multidatasource.png
--------------------------------------------------------------------------------
/docs/_images/nested-navbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bbossgroups/bboss-elasticsearch/102a50429a79f80dab9e16b14ad2ed22f559050c/docs/_images/nested-navbar.png
--------------------------------------------------------------------------------
/docs/_images/zh-cn/nested-navbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bbossgroups/bboss-elasticsearch/102a50429a79f80dab9e16b14ad2ed22f559050c/docs/_images/zh-cn/nested-navbar.png
--------------------------------------------------------------------------------
/docs/_media/cnzz.js:
--------------------------------------------------------------------------------
1 | var cnzz_protocol = (("https:" == document.location.protocol) ? " https://"
2 | : " http://");
3 | document
4 | .write(unescape("%3Cspan id='cnzz_stat_icon_1254131450'%3E%3C/span%3E%3Cscript src='"
5 | + cnzz_protocol
6 | + "s11.cnzz.com/z_stat.php%3Fid%3D1254131450%26show%3Dpic2' type='text/javascript'%3E%3C/script%3E"));
--------------------------------------------------------------------------------
/docs/_media/example.html:
--------------------------------------------------------------------------------
1 | To infinity and Beyond!
--------------------------------------------------------------------------------
/docs/_media/example.js:
--------------------------------------------------------------------------------
1 | import fetch from 'fetch'
2 |
3 | const URL = 'https://example.com'
4 | const PORT = 8080
5 |
6 | /// [demo]
7 | const result = fetch(`${URL}:${PORT}`)
8 | .then(function(response) {
9 | return response.json();
10 | })
11 | .then(function(myJson) {
12 | console.log(JSON.stringify(myJson));
13 | });
14 | /// [demo]
15 |
16 | result.then(console.log).catch(console.error)
17 |
--------------------------------------------------------------------------------
/docs/_media/example.md:
--------------------------------------------------------------------------------
1 | > This is from the `example.md`
2 |
--------------------------------------------------------------------------------
/docs/_media/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bbossgroups/bboss-elasticsearch/102a50429a79f80dab9e16b14ad2ed22f559050c/docs/_media/favicon.ico
--------------------------------------------------------------------------------
/docs/_media/ga.min.js:
--------------------------------------------------------------------------------
1 | !function(){function n(n){var o;(o=document.createElement("script")).async=!0,o.src="https://www.google-analytics.com/analytics.js",document.body.appendChild(o),window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=Number(new Date),window.ga("create",n,"auto")}function o(){window.ga||n($docsify.ga),window.ga("set","page",location.hash),window.ga("send","pageview")}$docsify.plugins=[].concat(function(n){$docsify.ga?n.beforeEach(o):console.error("[Docsify] ga is required.")},$docsify.plugins)}();
2 |
--------------------------------------------------------------------------------
/docs/_media/prism-actionscript.js:
--------------------------------------------------------------------------------
1 | Prism.languages.actionscript = Prism.languages.extend('javascript', {
2 | 'keyword': /\b(?:as|break|case|catch|class|const|default|delete|do|else|extends|finally|for|function|if|implements|import|in|instanceof|interface|internal|is|native|new|null|package|private|protected|public|return|super|switch|this|throw|try|typeof|use|var|void|while|with|dynamic|each|final|get|include|namespace|native|override|set|static)\b/,
3 | 'operator': /\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<|>>?>?|[!=]=?)=?|[~?@]/
4 | });
5 | Prism.languages.actionscript['class-name'].alias = 'function';
6 |
7 | if (Prism.languages.markup) {
8 | Prism.languages.insertBefore('actionscript', 'string', {
9 | 'xml': {
10 | pattern: /(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,
11 | lookbehind: true,
12 | inside: {
13 | rest: Prism.languages.markup
14 | }
15 | }
16 | });
17 | }
--------------------------------------------------------------------------------
/docs/_media/prism-actionscript.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.actionscript=Prism.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|else|extends|finally|for|function|if|implements|import|in|instanceof|interface|internal|is|native|new|null|package|private|protected|public|return|super|switch|this|throw|try|typeof|use|var|void|while|with|dynamic|each|final|get|include|namespace|native|override|set|static)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<|>>?>?|[!=]=?)=?|[~?@]/}),Prism.languages.actionscript["class-name"].alias="function",Prism.languages.markup&&Prism.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:{rest:Prism.languages.markup}}});
--------------------------------------------------------------------------------
/docs/_media/prism-ada.js:
--------------------------------------------------------------------------------
1 | Prism.languages.ada = {
2 | 'comment': /--.*/,
3 | 'string': /"(?:""|[^"\r\f\n])*"/i,
4 | 'number': [
5 | {
6 | pattern: /\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i
7 | },
8 | {
9 | pattern: /\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i
10 | }
11 | ],
12 | 'attr-name': /\b'\w+/i,
13 | 'keyword': /\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|new|return|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,
14 | 'boolean': /\b(?:true|false)\b/i,
15 | 'operator': /<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,
16 | 'punctuation': /\.\.?|[,;():]/,
17 | 'char': /'.'/,
18 | 'variable': /\b[a-z](?:[_a-z\d])*\b/i
19 | };
--------------------------------------------------------------------------------
/docs/_media/prism-ada.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/i,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/i,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|new|return|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,"boolean":/\b(?:true|false)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,"char":/'.'/,variable:/\b[a-z](?:[_a-z\d])*\b/i};
--------------------------------------------------------------------------------
/docs/_media/prism-apl.js:
--------------------------------------------------------------------------------
1 | Prism.languages.apl = {
2 | 'comment': /(?:⍝|#[! ]).*$/m,
3 | 'string': {
4 | pattern: /'(?:[^'\r\n]|'')*'/,
5 | greedy: true
6 | },
7 | 'number': /¯?(?:\d*\.?\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:\d*\.?\d+(?:e[+¯]?\d+)?|¯|∞))?/i,
8 | 'statement': /:[A-Z][a-z][A-Za-z]*\b/,
9 | 'system-function': {
10 | pattern: /⎕[A-Z]+/i,
11 | alias: 'function'
12 | },
13 | 'constant': /[⍬⌾#⎕⍞]/,
14 | 'function': /[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,
15 | 'monadic-operator': {
16 | pattern: /[\\\/⌿⍀¨⍨⌶&∥]/,
17 | alias: 'operator'
18 | },
19 | 'dyadic-operator': {
20 | pattern: /[.⍣⍠⍤∘⌸@⌺]/,
21 | alias: 'operator'
22 | },
23 | 'assignment': {
24 | pattern: /←/,
25 | alias: 'keyword'
26 | },
27 | 'punctuation': /[\[;\]()◇⋄]/,
28 | 'dfn': {
29 | pattern: /[{}⍺⍵⍶⍹∇⍫:]/,
30 | alias: 'builtin'
31 | }
32 | };
--------------------------------------------------------------------------------
/docs/_media/prism-apl.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:\d*\.?\d+(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,"function":/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}};
--------------------------------------------------------------------------------
/docs/_media/prism-arff.js:
--------------------------------------------------------------------------------
1 | Prism.languages.arff = {
2 | 'comment': /%.*/,
3 | 'string': {
4 | pattern: /(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,
5 | greedy: true
6 | },
7 | 'keyword': /@(?:attribute|data|end|relation)\b/i,
8 | 'number': /\b\d+(?:\.\d+)?\b/,
9 | 'punctuation': /[{},]/
10 | };
--------------------------------------------------------------------------------
/docs/_media/prism-arff.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/};
--------------------------------------------------------------------------------
/docs/_media/prism-asm6502.js:
--------------------------------------------------------------------------------
1 | Prism.languages.asm6502 = {
2 | 'comment': /;.*/,
3 | 'directive': {
4 | pattern: /\.\w+(?= )/,
5 | alias: 'keyword'
6 | },
7 | 'string': /(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,
8 | 'opcode': {
9 | pattern: /\b(?:adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya|ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA)\b/,
10 | alias: 'property'
11 | },
12 | 'hexnumber': {
13 | pattern: /#?\$[\da-f]{2,4}/i,
14 | alias: 'string'
15 | },
16 | 'binarynumber': {
17 | pattern: /#?%[01]+/,
18 | alias: 'string'
19 | },
20 | 'decimalnumber': {
21 | pattern: /#?\d+/,
22 | alias: 'string'
23 | },
24 | 'register': {
25 | pattern: /\b[xya]\b/i,
26 | alias: 'variable'
27 | }
28 | };
29 |
--------------------------------------------------------------------------------
/docs/_media/prism-asm6502.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"keyword"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,opcode:{pattern:/\b(?:adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya|ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA)\b/,alias:"property"},hexnumber:{pattern:/#?\$[\da-f]{2,4}/i,alias:"string"},binarynumber:{pattern:/#?%[01]+/,alias:"string"},decimalnumber:{pattern:/#?\d+/,alias:"string"},register:{pattern:/\b[xya]\b/i,alias:"variable"}};
--------------------------------------------------------------------------------
/docs/_media/prism-aspnet.min.js:
--------------------------------------------------------------------------------
1 | Prism.languages.aspnet=Prism.languages.extend("markup",{"page-directive tag":{pattern:/<%\s*@.*%>/i,inside:{"page-directive tag":/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,rest:Prism.languages.markup.tag.inside}},"directive tag":{pattern:/<%.*%>/i,inside:{"directive tag":/<%\s*?[$=%#:]{0,2}|%>/i,rest:Prism.languages.csharp}}}),Prism.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i,Prism.languages.insertBefore("inside","punctuation",{"directive tag":Prism.languages.aspnet["directive tag"]},Prism.languages.aspnet.tag.inside["attr-value"]),Prism.languages.insertBefore("aspnet","comment",{"asp comment":/<%--[\s\S]*?--%>/}),Prism.languages.insertBefore("aspnet",Prism.languages.javascript?"script":"tag",{"asp script":{pattern:/(