| Package | Description |
|---|---|
| com.conveyal.gtfs.loader |
| Modifier and Type | Class and Description |
|---|---|
class |
BooleanField
A GTFS boolean field, coded as a single character string 0 or 1.
|
class |
ColorField
Represents a six-digit hex color code.
|
class |
CurrencyField |
class |
DateField
A GTFS date in the format YYYYMMDD.
|
class |
DateListField
Field type for a list of date strings.
|
class |
DoubleField
Created by abyrd on 2017-03-31
|
class |
IntegerField |
class |
LanguageField
Checks a BCP47 language tag.
|
class |
ShortField
Created by abyrd on 2017-03-31
|
class |
StringField
Created by abyrd on 2017-03-31
|
class |
StringListField
Field type for a list of strings.
|
class |
TimeField
A field in the format HH:MM:SS, which will be stored as a number of seconds after midnight.
|
class |
URLField
Created by abyrd on 2017-03-31
|
| Modifier and Type | Field and Description |
|---|---|
Field[] |
Table.fields |
| Modifier and Type | Method and Description |
|---|---|
Field |
Table.getFieldForName(String name) |
Field[] |
Table.getFieldsFromFieldHeaders(String[] headers,
SQLErrorStorage errorStorage)
|
Field |
Field.indexThisColumn()
Fluent method that indicates that a newly constructed field should be indexed after the table is loaded.
|
Field |
Field.isReferenceTo(Table table)
Fluent method indicates that this field is a reference to an entry in the table provided as an argument.
|
Field |
Field.permitEmptyValue()
Fluent method to permit empty values for this field.
|
| Modifier and Type | Method and Description |
|---|---|
List<Field> |
Table.editorFields()
Get only those fields included in the official GTFS specification for this table or used by the editor.
|
List<Field> |
Table.requiredFields()
Get only those fields marked as required in the official GTFS specification for this table.
|
List<Field> |
Table.specFields()
Get only those fields included in the official GTFS specification for this table, i.e., filter out fields used
in the editor or extensions.
|
| 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.
|
static int |
Field.getFieldIndex(Field[] fields,
String name)
Finds the index of the field given a string name.
|
int |
Table.getKeyFieldIndex(Field[] fields)
Returns the index of the key field within the array of fields provided for a given table.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
Table.commaSeparatedNames(List<Field> fieldsToJoin)
Join a list of fields with a comma + space separator.
|
static String |
Table.commaSeparatedNames(List<Field> fieldsToJoin,
String prefix,
boolean csvOutput)
Prepend a prefix string to each field and join them with a comma + space separator.
|
| Constructor and Description |
|---|
Table(String name,
Class<? extends Entity> entityClass,
Requirement required,
Field... fields) |
Copyright © 2019. All rights reserved.