All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arangodb.InternalCursorDriver Maven / Gradle / Ivy

There is a newer version: 7.15.0
Show newest version
package com.arangodb;

import java.util.Map;

import com.arangodb.entity.CursorEntity;
import com.arangodb.entity.DefaultEntity;
import com.arangodb.entity.DocumentEntity;
import com.arangodb.entity.QueriesResultEntity;
import com.arangodb.entity.QueryTrackingPropertiesEntity;
import com.arangodb.entity.ShortestPathEntity;
import com.arangodb.impl.BaseDriverInterface;
import com.arangodb.util.AqlQueryOptions;
import com.arangodb.util.ShortestPathOptions;

/**
 * Created by fbartels on 10/27/14.
 * 
 */
public interface InternalCursorDriver extends BaseDriverInterface {

	CursorEntity validateQuery(String database, String query) throws ArangoException;

	// request without DocumentEntity
	 CursorEntity executeCursorEntityQuery(
		String database,
		String query,
		Map bindVars,
		AqlQueryOptions aqlQueryOptions,
		Class... clazz) throws ArangoException;

	 CursorEntity continueQuery(String database, long cursorId, Class... clazz) throws ArangoException;

	DefaultEntity finishQuery(String database, long cursorId) throws ArangoException;

	// request a cursor without DocumentEntity
	 CursorResult executeAqlQuery(
		String database,
		String query,
		Map bindVars,
		AqlQueryOptions aqlQueryOptions,
		Class clazz) throws ArangoException;

	// request a cursor without DocumentEntity
	CursorRawResult executeAqlQueryRaw(
		String database,
		String query,
		Map bindVars,
		AqlQueryOptions aqlQueryOptions) throws ArangoException;

	// return the raw JSON response from server
	String executeAqlQueryJSON(
		String database,
		String query,
		Map bindVars,
		AqlQueryOptions aqlQueryOptions) throws ArangoException;

	// request a cursor with DocumentEntity
	> DocumentCursorResult executeBaseCursorQuery(
		String database,
		String query,
		Map bindVars,
		AqlQueryOptions aqlQueryOptions,
		Class classDocumentEntity,
		Class clazz) throws ArangoException;

	/**
	 * Get the shortest path from a vertex to another vertex
	 * 
	 * @param database
	 *            the database name
	 * @param graphName
	 *            the graph name
	 * @param startVertexExample
	 *            a start vertex example object (or null)
	 * @param endVertexExample
	 *            a start vertex example object (or null)
	 * @param shortestPathOptions
	 *            shortest path options
	 * @param aqlQueryOptions
	 *            AQL query options
	 * @param vertexClass
	 *            the vertex class
	 * @param edgeClass
	 *            the edge class
	 * @return a ShortestPathEntity object
	 * @throws ArangoException
	 */
	public  ShortestPathEntity getShortestPath(
		String database,
		String graphName,
		Object startVertexExample,
		Object endVertexExample,
		ShortestPathOptions shortestPathOptions,
		AqlQueryOptions aqlQueryOptions,
		Class vertexClass,
		Class edgeClass) throws ArangoException;

	@Deprecated
	 CursorEntity executeQuery(
		String database,
		String query,
		Map bindVars,
		Class clazz,
		Boolean calcCount,
		Integer batchSize,
		Boolean fullCount) throws ArangoException;

	@Deprecated
	 CursorResultSet executeQueryWithResultSet(
		String database,
		String query,
		Map bindVars,
		Class clazz,
		Boolean calcCount,
		Integer batchSize,
		Boolean fullCount) throws ArangoException;

	@Deprecated
	 CursorResultSet executeQueryWithResultSet(
		String database,
		String query,
		Map bindVars,
		Class clazz,
		Boolean calcCount,
		Integer batchSize) throws ArangoException;

	QueryTrackingPropertiesEntity getQueryTrackingProperties(String database) throws ArangoException;

	QueryTrackingPropertiesEntity setQueryTrackingProperties(String database, QueryTrackingPropertiesEntity properties)
			throws ArangoException;

	QueriesResultEntity getCurrentlyRunningQueries(String database) throws ArangoException;

	QueriesResultEntity getSlowQueries(String database) throws ArangoException;

	DefaultEntity deleteSlowQueries(String database) throws ArangoException;

	DefaultEntity killQuery(String database, String id) throws ArangoException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy