Interface TarantoolMetadataOperations

  • All Known Implementing Classes:
    TarantoolMetadata

    public interface TarantoolMetadataOperations
    Tarantool metadata operations interface (get space by name, get index by name, etc.)
    • Method Detail

      • scheduleRefresh

        void scheduleRefresh()
        Initiates metadata refresh cycle
      • getSpaceByName

        Optional<TarantoolSpaceMetadata> getSpaceByName​(String spaceName)
        Get metadata for the space specified by name
        Parameters:
        spaceName - the space name, must not be null or empty
        Returns:
        nullable space metadata wrapped in Optional
      • getIndexByName

        Optional<TarantoolIndexMetadata> getIndexByName​(int spaceId,
                                                        String indexName)
        Get metadata for index from the specified space by name
        Parameters:
        spaceId - the space ID, must be greater than 0
        indexName - index name, must not be null or empty
        Returns:
        nullable index metadata wrapped in Optional
      • getIndexByName

        Optional<TarantoolIndexMetadata> getIndexByName​(String spaceName,
                                                        String indexName)
        Get metadata for index from the specified space by name
        Parameters:
        spaceName - the space name, must not be null or empty
        indexName - index name, must not be null or empty
        Returns:
        nullable index metadata wrapped in Optional
      • getIndexById

        Optional<TarantoolIndexMetadata> getIndexById​(String spaceName,
                                                      int indexId)
        Get metadata for index from the specified space by index ID
        Parameters:
        spaceName - the space name, must not be null or empty
        indexId - index ID, must not be must be greater or equal than 0
        Returns:
        nullable index metadata wrapped in Optional
      • getIndexById

        Optional<TarantoolIndexMetadata> getIndexById​(int spaceId,
                                                      int indexId)
        Get metadata for index from the specified space by index ID
        Parameters:
        spaceId - the space ID, must be greater than 0
        indexId - index ID, must not be must be greater or equal than 0
        Returns:
        nullable index metadata wrapped in Optional
      • getSpaceById

        Optional<TarantoolSpaceMetadata> getSpaceById​(int spaceId)
        Get metadata for the space specified by id
        Parameters:
        spaceId - the space ID, must be greater than 0
        Returns:
        nullable space metadata wrapped in Optional
      • getSpaceIndexes

        Optional<Map<String,​TarantoolIndexMetadata>> getSpaceIndexes​(int spaceId)
        Get metadata for all indexes for space specified by id
        Parameters:
        spaceId - the space ID, must be greater than 0
        Returns:
        nullable map of index names to index metadata wrapped in Optional
      • getSpaceIndexes

        Optional<Map<String,​TarantoolIndexMetadata>> getSpaceIndexes​(String spaceName)
        Get metadata for all indexes for space specified by name
        Parameters:
        spaceName - the space name, must not be null or empty
        Returns:
        nullable map of index names to index metadata wrapped in Optional