]> git.mxchange.org Git - core.git/blobdiff - framework/main/interfaces/index/stack/class_IndexableStack.php
Continued:
[core.git] / framework / main / interfaces / index / stack / class_IndexableStack.php
index bcc39b660569af4380c6f8907d0e3ea29a564d86..2576ce5a4288b408a7da11255f6478c3cdbf455c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Own namespace
-namespace Org\Mxchange\CoreFramework\Stack\Index;
+namespace Org\Mxchange\CoreFramework\Index\Stack;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filesystem\Block\CalculatableBlock;
@@ -30,12 +30,20 @@ use Org\Mxchange\CoreFramework\Index\Indexable;
  */
 interface IndexableStack extends Indexable, CalculatableBlock {
        /**
-        * Adds given hash to an index file
+        * Adds given data's hash to the index file
         *
         * @param       $stackName      Name of stack to add hash
         * @param       $data           Hash and gap position to be added to the index
         * @return      void
+        * @throws      InvalidArgumentException        If a parameter is not valid
         */
-       function addHashToIndex (string $stackName, array $data);
+       function addHashedDataToIndex (string $stackName, array $data);
+
+       /**
+        * Checks whether the index' file has been fully loaded (and parsed)
+        *
+        * @return      $isLoaded       Whether the index' file has been loaded
+        */
+       function isIndexFileLoaded ();
 
 }