public class ReferenceTracker extends Object
NOTE: Its methods should remain public because they are used during external processes that validate or otherwise iterate over each line of a GTFS file and need to check for reference validity (e.g., while merging GTFS feeds this is used to determine ID conflicts).
| Modifier and Type | Field and Description |
|---|---|
Set<String> |
transitIds |
Set<String> |
transitIdsWithSequence |
| Constructor and Description |
|---|
ReferenceTracker() |
| Modifier and Type | Method and Description |
|---|---|
Set<NewGTFSError> |
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> |
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.
|
public Set<NewGTFSError> checkReferencesAndUniqueness(String keyValue, int lineNumber, Field field, String value, Table table)
keyValue - key value for the record being checkedlineNumber - line number of the record being checkedfield - field currently being checkedvalue - value that corresponds to fieldtable - table currently being checkedpublic Set<NewGTFSError> checkReferencesAndUniqueness(String keyValue, int lineNumber, Field field, String value, Table table, String keyField, String orderField)
Copyright © 2019. All rights reserved.