Class QueryEngine

java.lang.Object
org.springframework.data.aerospike.query.QueryEngine

public class QueryEngine extends Object
This class provides a multi-filter query engine that augments the query capability in Aerospike.
Author:
peter, Anastasiia Smirnova
  • Field Details

    • SCANS_DISABLED_MESSAGE

      public static final String SCANS_DISABLED_MESSAGE
      See Also:
    • SEC_INDEX_ERROR_RESULT_CODES

      public static final List<Integer> SEC_INDEX_ERROR_RESULT_CODES
  • Constructor Details

  • Method Details

    • select

      public KeyRecordIterator select(String namespace, String set, @Nullable Query query)
      Select records filtered by a query
      Parameters:
      namespace - Namespace to storing the data
      set - Set storing the data
      query - Query for filtering results
      Returns:
      A KeyRecordIterator to iterate over the results
    • select

      public KeyRecordIterator select(String namespace, String set, String[] binNames, @Nullable Query query)
      Select records filtered by a query
      Parameters:
      namespace - Namespace to store the data
      set - Set storing the data
      binNames - Bin names to return from the query
      query - Query for filtering results
      Returns:
      A KeyRecordIterator to iterate over the results
    • selectForCount

      public KeyRecordIterator selectForCount(String namespace, String set, @Nullable Query query)
      Select records filtered by a query to be counted
      Parameters:
      namespace - Namespace to store the data
      set - Set storing the data
      query - Query for filtering results
      Returns:
      A KeyRecordIterator for counting