Class ArangoResultConverter

java.lang.Object
com.arangodb.springframework.repository.query.ArangoResultConverter

public class ArangoResultConverter extends Object
Converts the result returned from the ArangoDB Java driver to the desired type.
Author:
Audrius Malele, Mark McCormick, Mark Vollmary, Christian Lechner
  • Constructor Details

    • ArangoResultConverter

      public ArangoResultConverter(ArangoParameterAccessor accessor, com.arangodb.ArangoCursor<?> result, ArangoOperations operations, Class<?> domainClass)
      Parameters:
      accessor -
      result - the query result returned by the driver
      operations - instance of arangoTemplate
      domainClass - class type of documents
  • Method Details

    • convertResult

      public Object convertResult(Class<?> type)
      Called to convert result from ArangoCursor to given type, by invoking the appropriate converter method
      Parameters:
      type -
      Returns:
      result in desired type
    • convertOptional

      public Optional<?> convertOptional()
    • convertList

      public List<?> convertList()
    • convertPage

      public PageImpl<?> convertPage()
    • convertSet

      public Set<?> convertSet()
    • convertArangoCursor

      public com.arangodb.ArangoCursor<?> convertArangoCursor()
    • convertGeoResult

      public GeoResult<?> convertGeoResult()
    • convertGeoResults

      public GeoResults<?> convertGeoResults()
    • convertGeoPage

      public GeoPage<?> convertGeoPage()
    • convertArray

      public Object convertArray()