Enum SlippyTilePersistenceSchemeType
- java.lang.Object
-
- java.lang.Enum<SlippyTilePersistenceSchemeType>
-
- org.openstreetmap.atlas.generator.persistence.scheme.SlippyTilePersistenceSchemeType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SlippyTilePersistenceSchemeType>
public enum SlippyTilePersistenceSchemeType extends java.lang.Enum<SlippyTilePersistenceSchemeType>
Definitions for various types ofSlippyTilePersistenceSchemes. This enum forces users ofSlippyTilePersistenceSchemeinto some predefined schemes, instead of allowing totally custom schemes. This should help mitigate gotchas surrounding path construction and other implementation details. Schemes may or may not contain a terminating file extension. In the case that the file extension isFileSuffixNONE, then the scheme can be thought of as a directory scheme. If theFileSuffixis provided, then the scheme will represent a terminated path (i.e.) a path containing a terminating file.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EMPTYZZ_SLASH_XX_YY_OSMPBFZZ_SLASH_XX_YY_PBFZZ_SLASH_ZZ_XX_YY_OSMPBFZZ_SUBFOLDERZZ_XX_YY_OSMPBFZZ_XX_YY_PBFZZ_XX_YY_SUBFOLDERS_OSMPBFZZ_XX_YY_SUBFOLDERS_PBF
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openstreetmap.atlas.streaming.resource.FileSuffixgetSuffix()java.lang.StringgetValue()static SlippyTilePersistenceSchemeTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SlippyTilePersistenceSchemeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ZZ_XX_YY_PBF
public static final SlippyTilePersistenceSchemeType ZZ_XX_YY_PBF
-
ZZ_SLASH_XX_YY_PBF
public static final SlippyTilePersistenceSchemeType ZZ_SLASH_XX_YY_PBF
-
ZZ_XX_YY_SUBFOLDERS_PBF
public static final SlippyTilePersistenceSchemeType ZZ_XX_YY_SUBFOLDERS_PBF
-
ZZ_XX_YY_OSMPBF
public static final SlippyTilePersistenceSchemeType ZZ_XX_YY_OSMPBF
-
ZZ_SLASH_XX_YY_OSMPBF
public static final SlippyTilePersistenceSchemeType ZZ_SLASH_XX_YY_OSMPBF
-
ZZ_SLASH_ZZ_XX_YY_OSMPBF
public static final SlippyTilePersistenceSchemeType ZZ_SLASH_ZZ_XX_YY_OSMPBF
-
ZZ_XX_YY_SUBFOLDERS_OSMPBF
public static final SlippyTilePersistenceSchemeType ZZ_XX_YY_SUBFOLDERS_OSMPBF
-
ZZ_SUBFOLDER
public static final SlippyTilePersistenceSchemeType ZZ_SUBFOLDER
-
EMPTY
public static final SlippyTilePersistenceSchemeType EMPTY
-
-
Method Detail
-
values
public static SlippyTilePersistenceSchemeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SlippyTilePersistenceSchemeType c : SlippyTilePersistenceSchemeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SlippyTilePersistenceSchemeType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getSuffix
public org.openstreetmap.atlas.streaming.resource.FileSuffix getSuffix()
-
getValue
public java.lang.String getValue()
-
-