Class ArangoResultConverter<T>

java.lang.Object
com.arangodb.springframework.repository.query.ArangoResultConverter<T>

public class ArangoResultConverter<T> 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<T> 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<T> convertGeoResult()
    • convertGeoResults

      public GeoResults<T> convertGeoResults()
    • convertGeoPage

      public GeoPage<T> convertGeoPage()
    • convertArray

      public Object convertArray()