Class LoadableResource

java.lang.Object
org.flywaydb.core.api.resource.LoadableResource
All Implemented Interfaces:
Comparable<LoadableResource>, Resource

public abstract class LoadableResource extends Object implements Resource, Comparable<LoadableResource>
A loadable resource.
  • Constructor Details

    • LoadableResource

      public LoadableResource()
  • Method Details

    • read

      public abstract Reader read()
      Reads the contents of this resource.
      Returns:
      The reader with the contents of the resource.
    • shouldStream

      public boolean shouldStream()
      Returns:
      Whether it is recommended to stream this resource.
    • compareTo

      public int compareTo(LoadableResource o)
      Specified by:
      compareTo in interface Comparable<LoadableResource>