@ThriftService(value="FeatureSe") public class FeatureSeThriftDecorator extends java.lang.Object
FeatureSe接口FeatureSe实例封装为一个thrift服务delegate()指定的实例| Constructor and Description |
|---|
FeatureSeThriftDecorator(FeatureSe delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addFeatureToFse(java.nio.ByteBuffer featureId,
java.nio.ByteBuffer feature,
java.lang.String imgMD5) |
boolean |
addFeatureToFseWithAppId(java.nio.ByteBuffer featureId,
java.nio.ByteBuffer feature,
long appid) |
void |
clearAllOfFse() |
FeatureSe |
delegate() |
CodeBean |
getFeatureByHexFromFse(java.lang.String featureId) |
CodeBean |
getFeatureFromFse(java.nio.ByteBuffer featureId) |
boolean |
removeFeatureByHexFromFse(java.lang.String featureId) |
boolean |
removeFeatureFromFse(java.nio.ByteBuffer featureId) |
java.util.List<CodeBean> |
searchCodeFromFse(java.nio.ByteBuffer code,
double sim,
int rows) |
int |
sizeOfFse() |
public FeatureSeThriftDecorator(FeatureSe delegate)
@ThriftMethod(value="addFeatureToFse") public boolean addFeatureToFse(java.nio.ByteBuffer featureId, java.nio.ByteBuffer feature, java.lang.String imgMD5) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFeatureSe.addFeature(byte[],byte[],java.lang.String)@ThriftMethod(value="addFeatureToFseWithAppId") public boolean addFeatureToFseWithAppId(java.nio.ByteBuffer featureId, java.nio.ByteBuffer feature, long appid) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFeatureSe.addFeature(byte[],byte[],long)@ThriftMethod(value="clearAllOfFse") public void clearAllOfFse() throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFeatureSe.clearAll()@ThriftMethod(value="getFeatureFromFse") public CodeBean getFeatureFromFse(java.nio.ByteBuffer featureId) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFeatureSe.getFeature(byte[])@ThriftMethod(value="getFeatureByHexFromFse") public CodeBean getFeatureByHexFromFse(java.lang.String featureId) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFeatureSe.getFeatureByHex(java.lang.String)@ThriftMethod(value="removeFeatureFromFse") public boolean removeFeatureFromFse(java.nio.ByteBuffer featureId) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFeatureSe.removeFeature(byte[])@ThriftMethod(value="removeFeatureByHexFromFse") public boolean removeFeatureByHexFromFse(java.lang.String featureId) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFeatureSe.removeFeatureByHex(java.lang.String)@ThriftMethod(value="searchCodeFromFse") public java.util.List<CodeBean> searchCodeFromFse(java.nio.ByteBuffer code, double sim, int rows) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFeatureSe.searchCode(byte[],double,int)@ThriftMethod(value="sizeOfFse") public int sizeOfFse() throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeExceptionFeatureSe.size()Copyright © 2020. All rights reserved.