Class Checkpoint.Reader

java.lang.Object
com.quantfinlib.persist.Checkpoint.Reader
Enclosing class:
Checkpoint

public static final class Checkpoint.Reader extends Object
Random access to a loaded checkpoint's sections by name.
  • Method Details

    • section

      public boolean section(String name, Checkpoint.StateReader reader) throws IOException
      Restores one model from the named section. Returns false when the section is absent (model keeps its current state — the caller decides whether that is a cold start or an error). Throws when the model does not consume the payload exactly: leftover bytes mean the writer and reader disagree about the format.
      Throws:
      IOException
    • names

      public Set<String> names()
      The section names present, in file order.