| Package | Description |
|---|---|
| com.conveyal.gtfs.error |
This package contains all the objects that represent errors encountered during GTFS loading.
|
| com.conveyal.gtfs.loader |
| Modifier and Type | Method and Description |
|---|---|
static NewGTFSError |
NewGTFSError.forLine(Table table,
int lineNumber,
NewGTFSErrorType errorType,
String badValue) |
static NewGTFSError |
NewGTFSError.forTable(Table table,
NewGTFSErrorType errorType) |
| Modifier and Type | Field and Description |
|---|---|
static Table |
Table.AGENCY |
static Table |
Table.CALENDAR |
static Table |
Table.CALENDAR_DATES |
static Table |
Table.FARE_ATTRIBUTES |
static Table |
Table.FARE_RULES |
static Table |
Table.FEED_INFO |
static Table |
Table.FREQUENCIES |
static Table |
Table.PATTERN_STOP |
static Table |
Table.PATTERNS |
Table |
Field.referenceTable
Indicates that this field acts as a foreign key to this referenced table.
|
static Table |
Table.ROUTES |
static Table |
Table.SCHEDULE_EXCEPTIONS |
static Table |
Table.SHAPES |
static Table |
Table.STOP_TIMES |
static Table |
Table.STOPS |
static Table[] |
Table.tablesInOrder
List of tables in order needed for checking referential integrity during load stage.
|
static Table |
Table.TRANSFERS |
static Table |
Table.TRIPS |
| Modifier and Type | Method and Description |
|---|---|
Table |
Table.addPrimaryKey()
Fluent method that indicates that the integer ID field should be made a primary key.
|
Table |
Table.getParentTable() |
Table |
Table.hasCompoundKey()
Fluent method to set whether the table has a compound key, e.g., transfers#to_stop_id.
|
Table |
Table.keyFieldIsNotUnique()
Fluent method to de-set the hasUniqueKeyField flag for tables which the first field should not be considered a
primary key.
|
Table |
Table.restrictDelete()
Fluent method that restricts deletion of an entity in this table if there are references to it elsewhere.
|
| Modifier and Type | Method and Description |
|---|---|
Set<NewGTFSError> |
ReferenceTracker.checkReferencesAndUniqueness(String keyValue,
int lineNumber,
Field field,
String value,
Table table)
During table load, checks the uniqueness of the entity ID and that references are valid.
|
Set<NewGTFSError> |
ReferenceTracker.checkReferencesAndUniqueness(String keyValue,
int lineNumber,
Field field,
String value,
Table table,
String keyField,
String orderField)
During table load, checks the uniqueness of the entity ID and that references are valid.
|
String |
Table.generateJoinSql(String optionalSelect,
Table joinTable,
String namespace) |
String |
Table.generateJoinSql(String optionalSelect,
Table joinTable,
String joinType,
String namespace,
String fieldName,
boolean prefixTableName)
Constructs a join clause to use in conjunction with
generateJoinSql(com.conveyal.gtfs.loader.Table, java.lang.String, java.lang.String, boolean). |
String |
Table.generateJoinSql(Table joinTable,
String namespace) |
String |
Table.generateJoinSql(Table joinTable,
String namespace,
String fieldName,
boolean prefixTableName) |
Field |
Field.isReferenceTo(Table table)
Fluent method indicates that this field is a reference to an entry in the table provided as an argument.
|
void |
JdbcGtfsLoader.setValueForField(Table table,
int fieldIndex,
int lineNumber,
Field field,
String string,
boolean postgresText,
String[] transformedStrings)
Set value for a field either as a prepared statement parameter or (if using postgres text-loading) in the
transformed strings array provided.
|
| Constructor and Description |
|---|
JDBCTableReader(Table specTable,
DataSource dataSource,
String tablePrefix,
EntityPopulator<T> entityPopulator) |
JdbcTableWriter(Table table,
DataSource datasource,
String namespace) |
JdbcTableWriter(Table specTable,
DataSource dataSource,
String tablePrefix,
Connection optionalConnection) |
Copyright © 2019. All rights reserved.