@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.ServiceRuntimeException
FeatureSe.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.ServiceRuntimeException
FeatureSe.addFeature(byte[],byte[],long)
@ThriftMethod(value="clearAllOfFse") public void clearAllOfFse() throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeException
FeatureSe.clearAll()
@ThriftMethod(value="getFeatureFromFse") public CodeBean getFeatureFromFse(java.nio.ByteBuffer featureId) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeException
FeatureSe.getFeature(byte[])
@ThriftMethod(value="getFeatureByHexFromFse") public CodeBean getFeatureByHexFromFse(java.lang.String featureId) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeException
FeatureSe.getFeatureByHex(java.lang.String)
@ThriftMethod(value="removeFeatureFromFse") public boolean removeFeatureFromFse(java.nio.ByteBuffer featureId) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeException
FeatureSe.removeFeature(byte[])
@ThriftMethod(value="removeFeatureByHexFromFse") public boolean removeFeatureByHexFromFse(java.lang.String featureId) throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeException
FeatureSe.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.ServiceRuntimeException
FeatureSe.searchCode(byte[],double,int)
@ThriftMethod(value="sizeOfFse") public int sizeOfFse() throws net.gdface.thrift.exception.ServiceRuntimeException
net.gdface.thrift.exception.ServiceRuntimeException
FeatureSe.size()
Copyright © 2020. All rights reserved.