
com.conveyal.gtfs.loader.FeedLoadResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gtfs-lib Show documentation
Show all versions of gtfs-lib Show documentation
A library to load and index GTFS feeds of arbitrary size using disk-backed storage
package com.conveyal.gtfs.loader;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.io.Serializable;
/**
* An instance of this class is returned by the GTFS feed loading method.
* It provides a summary of what happened during the loading process.
* It also provides the unique name that was assigned to this feed by the loader.
* That unique name is the name of a database schema including all the tables loaded from this feed.
*
* Ignore unknown properties on deserialization to avoid conflicts with past versions. FIXME
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class FeedLoadResult implements Serializable {
private static final long serialVersionUID = 1L;
public String filename;
public String uniqueIdentifier;
public int errorCount;
public String fatalException;
public TableLoadResult agency;
public TableLoadResult calendar;
public TableLoadResult calendarDates;
public TableLoadResult fareAttributes;
public TableLoadResult fareRules;
public TableLoadResult feedInfo;
public TableLoadResult frequencies;
public TableLoadResult routes;
public TableLoadResult shapes;
public TableLoadResult stops;
public TableLoadResult stopTimes;
public TableLoadResult transfers;
public TableLoadResult trips;
public long loadTimeMillis;
public long completionTime;
public FeedLoadResult () {
this(false);
}
/**
* Optional constructor to generate blank table load results on instantiation.
*/
public FeedLoadResult (boolean constructTableResults) {
agency = new TableLoadResult();
calendar = new TableLoadResult();
calendarDates = new TableLoadResult();
fareAttributes = new TableLoadResult();
fareRules = new TableLoadResult();
feedInfo = new TableLoadResult();
frequencies = new TableLoadResult();
routes = new TableLoadResult();
shapes = new TableLoadResult();
stops = new TableLoadResult();
stopTimes = new TableLoadResult();
transfers = new TableLoadResult();
trips = new TableLoadResult();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy