Class TarantoolIndexQuery


  • public class TarantoolIndexQuery
    extends Object
    Represents index-related query options including index ID or name, matching keys and iterator type.
    • Constructor Detail

      • TarantoolIndexQuery

        public TarantoolIndexQuery()
        Basic constructor. Creates a query for all tuples by primary index.
      • TarantoolIndexQuery

        public TarantoolIndexQuery​(int indexId)
        Creates a query for index with specified ID.
        Parameters:
        indexId - index ID in the space
    • Method Detail

      • getIndexId

        public int getIndexId()
        Get index ID
        Returns:
        a number
      • getIteratorType

        public TarantoolIteratorType getIteratorType()
        Get iterator type
        Returns:
        TarantoolIteratorType.ITER_EQ by default
      • withIteratorType

        public TarantoolIndexQuery withIteratorType​(TarantoolIteratorType iteratorType)
        Set iterator type
        Parameters:
        iteratorType - new iterator type
        Returns:
        this query instance with new iterator type
      • getKeyValues

        public List<?> getKeyValues()
        Get list of key values
        Returns:
        list of key values to be matched with index key parts
      • withKeyValues

        public TarantoolIndexQuery withKeyValues​(List<?> keyValues)
        Set list of key values to be matched with index key parts
        Parameters:
        keyValues - new list of key values
        Returns:
        this query instance with new list of key values
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object