001// Automatically generated by the Thrifty compiler; do not edit!
002// Generated on: 2021-05-17T06:20:27.443Z
003// Source: J:\facedb\facedb-service\FaceDb.thrift at 150:1
004package net.gdface.facedb.thrift.client;
005
006import com.microsoft.thrifty.service.ServiceMethodCallback;
007import java.util.List;
008import java.util.Map;
009import javax.annotation.Generated;
010import okio.ByteString;
011
012@Generated(
013    value = "com.microsoft.thrifty.gen.ThriftyCodeGenerator",
014    comments = "https://github.com/microsoft/thrifty"
015)
016public interface FaceDb {
017  void addFeature(ByteString feature, Map<ByteString, CodeInfo> faces,
018      ServiceMethodCallback<FeatureBean> callback);
019
020  void addImage(ByteString imgData, List<CodeInfo> features,
021      ServiceMethodCallback<ImageBean> callback);
022
023  void addImageIfAbsent(ByteString imgData, CodeInfo code, Double similarty,
024      ServiceMethodCallback<ImageBean> callback);
025
026  void compareFaces(String featureId, ByteString imgData, List<CodeInfo> facePos,
027      ServiceMethodCallback<List<Double>> callback);
028
029  void compareFeature(String featureId, ByteString feature, ServiceMethodCallback<Double> callback);
030
031  void compareFeatureId(String featureId1, String featureId2,
032      ServiceMethodCallback<Double> callback);
033
034  void compareFeatures(String featureId, List<CodeInfo> features,
035      ServiceMethodCallback<List<Double>> callback);
036
037  void dbCapacity(ServiceMethodCallback<Map<String, String>> callback);
038
039  void deleteFeature(String featureId, Boolean cascade, ServiceMethodCallback<Boolean> callback);
040
041  void deleteFeatures(List<String> featureIdList, Boolean cascade,
042      ServiceMethodCallback<Integer> callback);
043
044  void deleteImage(String imgMd5, Boolean cascade, ServiceMethodCallback<Boolean> callback);
045
046  void deleteImages(List<String> imgMd5List, Boolean cascade,
047      ServiceMethodCallback<Integer> callback);
048
049  void detectAndAddFeatures(ByteString imgData, Integer faceNum,
050      ServiceMethodCallback<ImageBean> callback);
051
052  void detectAndCompareFaces(String featureId, ByteString imgData, Integer faceNum,
053      ServiceMethodCallback<CompareResult> callback);
054
055  void detectAndGetCodeInfo(ByteString imgData, ServiceMethodCallback<List<CodeInfo>> callback);
056
057  void detectAndGetCodeInfoMat(MatType matType, ByteString matData, Integer width, Integer height,
058      ServiceMethodCallback<List<CodeInfo>> callback);
059
060  void detectAndSearchFaces(ByteString imgData, Double similarty, Integer rows, String where,
061      ServiceMethodCallback<List<SearchResult>> callback);
062
063  void getCodeInfo(Integer faceId, ServiceMethodCallback<CodeInfo> callback);
064
065  void getCodeInfoByFeatureId(String featureId, ServiceMethodCallback<CodeInfo> callback);
066
067  void getCodeInfoByImageMd5(String imageMd5, ServiceMethodCallback<CodeInfo> callback);
068
069  void getCodeInfosByFeatureId(String featureId, ServiceMethodCallback<List<CodeInfo>> callback);
070
071  void getCodeInfosByImageMd5(String imageMd5, ServiceMethodCallback<List<CodeInfo>> callback);
072
073  void getFace(Integer faceId, ServiceMethodCallback<FaceBean> callback);
074
075  void getFaceByFeatureId(String featureId, ServiceMethodCallback<FaceBean> callback);
076
077  void getFaceByImageMd5(String imageMd5, ServiceMethodCallback<FaceBean> callback);
078
079  void getFaceCount(String where, ServiceMethodCallback<Integer> callback);
080
081  void getFacesByFeatureId(String featureId, ServiceMethodCallback<List<FaceBean>> callback);
082
083  void getFacesByImageMd5(String imageMd5, ServiceMethodCallback<List<FaceBean>> callback);
084
085  void getFeature(String featureId, ServiceMethodCallback<FeatureBean> callback);
086
087  void getFeatureByFaceId(Integer faceId, ServiceMethodCallback<FeatureBean> callback);
088
089  void getFeatureByImageMd5(String imageMd5, ServiceMethodCallback<FeatureBean> callback);
090
091  void getFeatureCount(ServiceMethodCallback<Integer> callback);
092
093  void getFeaturesByImageMd5(String imageMd5, ServiceMethodCallback<List<FeatureBean>> callback);
094
095  void getImage(String imageMd5, ServiceMethodCallback<ImageBean> callback);
096
097  void getImageByFaceId(Integer faceId, ServiceMethodCallback<ImageBean> callback);
098
099  void getImageByFeatureId(String featureId, ServiceMethodCallback<ImageBean> callback);
100
101  void getImageBytes(String imageMd5, ServiceMethodCallback<ByteString> callback);
102
103  void getImageBytesRef(String primaryKey, String refType,
104      ServiceMethodCallback<ByteString> callback);
105
106  void getImageCount(String where, ServiceMethodCallback<Integer> callback);
107
108  void getImageRef(String primaryKey, String refType, ServiceMethodCallback<ImageBean> callback);
109
110  void getImagesByFeatureId(String featureId, ServiceMethodCallback<List<ImageBean>> callback);
111
112  void hasFeature(ByteString feature, ServiceMethodCallback<Boolean> callback);
113
114  void hasFeatureByMD5(String featureId, ServiceMethodCallback<Boolean> callback);
115
116  void hasImage(String imageMd5, ServiceMethodCallback<Boolean> callback);
117
118  void isLocal(ServiceMethodCallback<Boolean> callback);
119
120  void loadFeaturesMd5ByCreateTime(Long timestamp, ServiceMethodCallback<List<String>> callback);
121
122  void loadFeaturesMd5ByCreateTimeTimeStr(String timestamp,
123      ServiceMethodCallback<List<String>> callback);
124
125  void loadFeaturesMd5ByWhere(String where, ServiceMethodCallback<List<String>> callback);
126
127  void loadImagesByWhere(String where, Integer startRow, Integer numRows,
128      ServiceMethodCallback<List<ImageBean>> callback);
129
130  void loadImagesMd5ByCreateTime(Long timestamp, ServiceMethodCallback<List<String>> callback);
131
132  void loadImagesMd5ByCreateTimeTimeStr(String timestamp,
133      ServiceMethodCallback<List<String>> callback);
134
135  void loadImagesMd5ByWhere(String where, ServiceMethodCallback<List<String>> callback);
136
137  void searchFaces(ByteString imgData, CodeInfo facePos, Double similarty, Integer rows,
138      String where, ServiceMethodCallback<List<SearchResult>> callback);
139
140  void searchFacesMat(MatType matType, ByteString matData, Integer width, Integer height,
141      CodeInfo facePos, Double similarty, Integer rows, String where,
142      ServiceMethodCallback<List<SearchResult>> callback);
143
144  void searchFeatures(ByteString feature, Double similarty, Integer rows, String where,
145      ServiceMethodCallback<List<SearchResult>> callback);
146}