Package com.logicalclocks.hsfs.engine
Class VectorServer
java.lang.Object
com.logicalclocks.hsfs.engine.VectorServer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getComplexFeatureSchemas(List<TrainingDatasetFeature> features, Map<Integer, String> prefixMap) getFeatureVector(FeatureViewBase featureViewBase, Map<String, Object> entry) getFeatureVector(FeatureViewBase featureViewBase, Map<String, Object> entry, boolean external) getFeatureVector(Map<String, Object> entry) <T> TgetFeatureVectorObject(FeatureViewBase featureViewBase, Map<String, Object> entry, boolean external, Class<T> returnType) <T> TgetFeatureVectorObject(Map<String, Object> entry, Class<T> returnType) getFeatureVectors(FeatureViewBase featureViewBase, Map<String, List<Object>> entry, boolean external) getFeatureVectors(Map<String, List<Object>> entry) voidinitPreparedStatement(FeatureStoreBase featureStoreBase, List<TrainingDatasetFeature> features, List<ServingPreparedStatement> servingPreparedStatements, boolean batch, boolean external) voidinitPreparedStatement(FeatureViewBase featureViewBase, boolean batch) voidinitPreparedStatement(FeatureViewBase featureViewBase, boolean batch, boolean external) voidinitServing(FeatureViewBase featureViewBase, boolean batch) voidinitServing(FeatureViewBase featureViewBase, boolean batch, boolean external) <T> voidprocessQuery(Map<String, Object> entry, int preparedStatementIndex, T returnObject) voidsetupHikariPool(FeatureStoreBase featureStoreBase, Boolean external) zipArraysToTupleString(List<List<Object>> lists)
-
Constructor Details
-
VectorServer
public VectorServer()
-
-
Method Details
-
getFeatureVector
public List<Object> getFeatureVector(FeatureViewBase featureViewBase, Map<String, Object> entry) throws FeatureStoreException, IOException, ClassNotFoundException -
getFeatureVector
public List<Object> getFeatureVector(FeatureViewBase featureViewBase, Map<String, Object> entry, boolean external) throws FeatureStoreException, IOException, ClassNotFoundException -
getFeatureVector
- Throws:
FeatureStoreException
-
getFeatureVectorObject
public <T> T getFeatureVectorObject(FeatureViewBase featureViewBase, Map<String, Object> entry, boolean external, Class<T> returnType) throws FeatureStoreException, IOException, ClassNotFoundException, IllegalAccessException, InstantiationException -
getFeatureVectorObject
public <T> T getFeatureVectorObject(Map<String, Object> entry, Class<T> returnType) throws FeatureStoreException, InstantiationException, IllegalAccessException -
processQuery
public <T> void processQuery(Map<String, Object> entry, int preparedStatementIndex, T returnObject) throws SQLException, FeatureStoreException, IOException, NoSuchMethodException, InvocationTargetException, IllegalAccessException -
getFeatureVectors
public List<List<Object>> getFeatureVectors(FeatureViewBase featureViewBase, Map<String, List<Object>> entry, boolean external) throws SQLException, FeatureStoreException, IOException, ClassNotFoundException -
getFeatureVectors
public List<List<Object>> getFeatureVectors(Map<String, List<Object>> entry) throws SQLException, FeatureStoreException, IOException -
initServing
public void initServing(FeatureViewBase featureViewBase, boolean batch) throws FeatureStoreException, IOException, ClassNotFoundException -
initServing
public void initServing(FeatureViewBase featureViewBase, boolean batch, boolean external) throws FeatureStoreException, IOException, SQLException, ClassNotFoundException -
initPreparedStatement
public void initPreparedStatement(FeatureViewBase featureViewBase, boolean batch) throws FeatureStoreException, IOException, ClassNotFoundException -
initPreparedStatement
public void initPreparedStatement(FeatureViewBase featureViewBase, boolean batch, boolean external) throws FeatureStoreException, IOException, ClassNotFoundException -
initPreparedStatement
public void initPreparedStatement(FeatureStoreBase featureStoreBase, List<TrainingDatasetFeature> features, List<ServingPreparedStatement> servingPreparedStatements, boolean batch, boolean external) throws FeatureStoreException, IOException, ClassNotFoundException -
setupHikariPool
public void setupHikariPool(FeatureStoreBase featureStoreBase, Boolean external) throws FeatureStoreException, IOException, ClassNotFoundException -
zipArraysToTupleString
-
getComplexFeatureSchemas
public Map<Integer,Map<String, getComplexFeatureSchemasorg.apache.avro.io.DatumReader<Object>>> (List<TrainingDatasetFeature> features, Map<Integer, String> prefixMap) throws FeatureStoreException, IOException- Throws:
FeatureStoreExceptionIOException
-
close
public void close()
-