code: public AddressArray createStaticAddressArray(File homeDir,
                                                   int length,
                                                   int batchSize,
                                                   int numSyncBatches) throws Exception {
          AddressArray addrArray;
          
          if(_indexesCached) {
              addrArray = new StaticLongArray(length, batchSize, numSyncBatches, homeDir);
          } else {
              addrArray = new IOTypeLongArray(
                      Array.Type.STATIC,
                      length, batchSize, numSyncBatches, homeDir);
          }
          
          return addrArray;
      }
docs: Creates a fixed-length {@link AddressArray}.
  
  @param homeDir        - the home directory where the <code>indexes.dat</code> is located.
  @param length         - the length of {@link AddressArray}.
  @param batchSize      - the number of updates per update batch.
  @param numSyncBatches - the number of update batches required for updating the underlying indexes.
  @return an instance of {@link AddressArray}.
  @throws Exception if an instance of {@link AddressArray} cannot be created.