Interface Store

    • Method Detail

      • get

        default PageFile get​(String key)
        Get a file
        Parameters:
        key - the file name
        Returns:
        the file
      • getIfExists

        PageFile getIfExists​(String key)
        Get a file if it exists
        Parameters:
        key - the file name
        Returns:
        the file, or null
      • put

        void put​(String key,
                 PageFile value)
        Storage a file.
        Parameters:
        key - the file name
        value - the file
      • newFileName

        String newFileName()
        Generate a new file name.
        Returns:
      • keySet

        Set<String> keySet()
        Get the list of files.
        Returns:
        the result
      • remove

        void remove​(Set<String> set)
        Remove a number of files.
        Parameters:
        set - the result
      • removeAll

        void removeAll()
        Remove all files.
      • getWriteCount

        long getWriteCount()
        Get the number of files written.
        Returns:
        the result
      • getReadCount

        long getReadCount()
        Get the number of files read.
        Returns:
        the result
      • setWriteCompression

        void setWriteCompression​(Compression compression)
        Set the compression algorithm used for writing from now on.
        Parameters:
        compression - the compression algorithm
      • close

        void close()
        Close the store
      • getMaxFileSizeBytes

        long getMaxFileSizeBytes()
        Get the maximum file size configured.
        Returns:
        the file size, in bytes
      • supportsByteOperations

        default boolean supportsByteOperations()
      • getBytes

        default byte[] getBytes​(String key)
      • putBytes

        default void putBytes​(String key,
                              byte[] data)