com.spikeify.aerospikeql.AerospikeQlService Maven / Gradle / Ivy
                 Go to download
                
        
                    Show more of this group  Show more artifacts with this name
Show all versions of aerospike-ql Show documentation
                Show all versions of aerospike-ql Show documentation
SQL wrapper for Aerospike database
                
            package com.spikeify.aerospikeql;
import com.spikeify.Spikeify;
import java.util.Map;
/**
 * This is a helper service that provides an AerospikeQL instance.
 */
public class AerospikeQlService {
	private final Spikeify sfy;
	private final QueryUtils queryUtils;
	public AerospikeQlService(Spikeify sfy,
	                          String udfFolder) {
		this.sfy = sfy;
		this.queryUtils = new QueryUtils(sfy, udfFolder);
	}
	public AerospikeQlService(Spikeify sfy) {
		this.sfy = sfy;
		this.queryUtils = new QueryUtils(sfy, null);
	}
	/**
	 * Execute adhoc query and retrieve entities in a Map
	 *
	 * @param query - sql query
	 * @return An ExecutorAdhoc for adhoc queries
	 */
	public Executor     © 2015 - 2025 Weber Informatics LLC | Privacy Policy