Interface Storable<T>

All Superinterfaces:
AutoCloseable, Closeable

public interface Storable<T> extends Closeable
Interface for a storage abstraction. Currently is serves just the purpose to ensure the same methods and names through all kind of 'storable' things in graphhopper.

Then the lifecycle is identical for all such objects:

  1. object creation via new
  2. optional configuration via additional setters and getters which are not in this interface
  3. if(!storable.loadExisting()) storable.create()
  4. usage storable and optional flush() calls in-between. Keep in mind that some data structure could require a call to increase memory while usage. E.g. DataAccess.ensureCapacity()
  5. Finally do close() which does no flush()

Author:
Peter Karich
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • isClosed

      boolean isClosed()