Interface TarantoolIndexMetadata


  • public interface TarantoolIndexMetadata
    Represents Tarantool index metadata (index ID, name, etc.)
    • Method Detail

      • getSpaceId

        int getSpaceId()
        Get ID of a space that this index is defined on
        Returns:
        a number
      • getIndexId

        int getIndexId()
        Get index ID in the corresponding space on the Tarantool server
        Returns:
        a natural number
      • getIndexName

        String getIndexName()
        Get index name
        Returns:
        a non-empty String
      • getIndexPartPositionByFieldPosition

        Optional<Integer> getIndexPartPositionByFieldPosition​(int fieldPosition)
        Get map of field positions to index parts positions
        Parameters:
        fieldPosition - field position in tuple, starting from 0
        Returns:
        field position
      • isPrimary

        boolean isPrimary()
        Returns true if this is a primary index, false otherwise.
        Returns:
        true if this is a primary index, false otherwise.
      • isUnique

        boolean isUnique()
        Returns true if this is a unique index, false otherwise.
        Returns:
        true if this is a unique index, false otherwise.