| 程序包 | 说明 |
|---|---|
| io.manbang.ebatis.core.cluster | |
| io.manbang.ebatis.core.executor | |
| io.manbang.ebatis.core.meta | |
| io.manbang.ebatis.core.request | |
| io.manbang.ebatis.core.response |
| 限定符和类型 | 方法和说明 |
|---|---|
protected ClusterLoadBalancer |
SimpleClusterRouter.getLoadBalancer(MethodMeta meta) |
protected ClusterLoadBalancer |
AbstractWeightedClusterRouter.getLoadBalancer(MethodMeta meta) |
protected abstract ClusterLoadBalancer |
AbstractClusterRouter.getLoadBalancer(MethodMeta meta)
通过方法元数据可以获取当前调用的上下文信息,根据这个上下文信息,作为依据选择当前执行的方法应高使用那个集群,执行操作
|
Cluster |
ClusterRouter.route(MethodMeta meta)
根据入参信息选择一个集群执行操作
|
Cluster |
AbstractClusterRouter.route(MethodMeta meta) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
RequestExecutor.execute(Cluster cluster,
MethodMeta method,
Object[] args)
执行实际的ES操作
|
Object |
AbstractRequestExecutor.execute(Cluster cluster,
MethodMeta meta,
Object[] args) |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
MapperMethod |
| 限定符和类型 | 方法和说明 |
|---|---|
MethodMeta |
ClassMeta.getMethodMeta(Method method)
根据指定方法找到对应的方法元数据
|
MethodMeta |
AbstractClassMeta.getMethodMeta(Method method) |
static MethodMeta |
MethodMeta.of(MapperInterface mapperInterface,
Method method) |
| 限定符和类型 | 方法和说明 |
|---|---|
Optional<MethodMeta> |
ClassMeta.findMethodMeta(Method method)
根据指定方法找到对应的方法元数据,可能为空
|
Optional<MethodMeta> |
AbstractClassMeta.findMethodMeta(Method method) |
List<MethodMeta> |
ClassMeta.getMethodMetas()
获取方法元数据列表
|
List<MethodMeta> |
AbstractClassMeta.getMethodMetas() |
| 限定符和类型 | 方法和说明 |
|---|---|
Optional<Class<?>> |
RequestType.getEntityClass(MethodMeta meta) |
boolean |
RequestType.validate(MethodMeta meta) |
static ParameterMeta |
ParameterMeta.withIndex(MethodMeta methodMeta,
Parameter parameter,
int index) |
| 限定符和类型 | 方法和说明 |
|---|---|
R |
RequestFactory.create(MethodMeta method,
Object... args)
创建ES请求,根据注解对应创建不同的ES请求
|
R |
AbstractRequestFactory.create(MethodMeta meta,
Object... args) |
protected org.elasticsearch.action.delete.DeleteRequest |
DeleteRequestFactory.doCreate(MethodMeta meta,
Object[] args) |
protected org.elasticsearch.action.bulk.BulkRequest |
BulkRequestFactory.doCreate(MethodMeta meta,
Object[] args) |
protected abstract R |
AbstractRequestFactory.doCreate(MethodMeta meta,
Object[] args)
实际构建查询请求
|
protected void |
AbstractRequestFactory.setTypeIfNecessary(MethodMeta meta,
java.util.function.Consumer<String> consumer) |
protected void |
AbstractRequestFactory.setTypesIfNecessary(MethodMeta meta,
java.util.function.Consumer<String[]> consumer) |
| 限定符和类型 | 方法和说明 |
|---|---|
ResponseExtractor<?> |
ResponseExtractorProvider.getResponseExtractor(MethodMeta method)
获取指定方法的响应提取器
|
static ResponseExtractor<?> |
ResponseExtractorLoader.getResponseExtractor(MethodMeta method) |
ResponseExtractor<?> |
AbstractResponseExtractorProvider.getResponseExtractor(MethodMeta meta) |
protected ResponseExtractor<?> |
UpdateResponseExtractorProvider.getResponseExtractor(MethodMeta meta,
GenericType genericType) |
protected ResponseExtractor<?> |
UpdateByQueryResponseExtractorProvider.getResponseExtractor(MethodMeta meta,
GenericType genericType) |
protected ResponseExtractor<?> |
SearchScrollResponseExtractorProvider.getResponseExtractor(MethodMeta meta,
GenericType genericType) |
protected ResponseExtractor<?> |
SearchResponseExtractorProvider.getResponseExtractor(MethodMeta meta,
GenericType genericType) |
protected ResponseExtractor<?> |
MultiSearchResponseExtractorProvider.getResponseExtractor(MethodMeta meta,
GenericType genericType) |
protected ResponseExtractor<?> |
MultiGetResponseExtractorProvider.getResponseExtractor(MethodMeta meta,
GenericType genericType) |
protected ResponseExtractor<?> |
IndexResponseExtractorProvider.getResponseExtractor(MethodMeta meta,
GenericType genericType) |
protected ResponseExtractor<?> |
GetResponseExtractorProvider.getResponseExtractor(MethodMeta meta,
GenericType genericType) |
protected ResponseExtractor<?> |
DeleteResponseExtractorProvider.getResponseExtractor(MethodMeta meta,
GenericType genericType) |
protected ResponseExtractor<?> |
DeleteByQueryResponseExtractorProvider.getResponseExtractor(MethodMeta meta,
GenericType genericType) |
protected ResponseExtractor<?> |
BulkResponseExtractorProvider.getResponseExtractor(MethodMeta meta,
GenericType genericType) |
protected ResponseExtractor<?> |
AggResponseExtractorProvider.getResponseExtractor(MethodMeta meta,
GenericType genericType) |
protected abstract ResponseExtractor<?> |
AbstractResponseExtractorProvider.getResponseExtractor(MethodMeta meta,
GenericType genericType)
获取指定类型返回值提取器
|
boolean |
ResponseExtractorProvider.support(MethodMeta method)
判断当前Provider是否支持提取当前方法的返回值
|
boolean |
AbstractResponseExtractorProvider.support(MethodMeta method) |
Copyright © 2021. All rights reserved.