Enum Class Format.Characteristics
- All Implemented Interfaces:
Serializable
,Comparable<Format.Characteristics>
,Constable
- Enclosing interface:
- Format
Format characteristics are here to guide the various bits of code that use them to be able to use them generically without prior knowledge of them specifically. For example, we might want to only allow the use of STREAMABLE formats with a specific output backend. Or restrict the use of MULTIPLE_FILES formats to the file protocol only.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThis format ends up storing multiple files, rather than a single one.This format doesn't require geometry to be present and might not record spatial data efficiently (or accurately)This format doesn't read/write bytes to some sort of file (or files), e.g.This format can read/write tuples from a stream of bytes without needing all the contents at once -
Method Summary
Modifier and TypeMethodDescriptionstatic Format.Characteristics
Returns the enum constant of this class with the specified name.static Format.Characteristics[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STREAMABLE
This format can read/write tuples from a stream of bytes without needing all the contents at once
-
MULTIPLE_FILES
This format ends up storing multiple files, rather than a single one. These are a mess and we might want to impose some conventions on these, e.g. they end up in a zip file, or a folder
-
PROTOCOL_BASED
This format doesn't read/write bytes to some sort of file (or files), e.g. it uses some sort of protocol (e.g. an SQL connection) to read and write tuples. Formats that end up writing bytes to a file shouldn't use this. TODO maybe this doesn't exist for Format? Maybe that's something else?
-
NON_SPATIAL
This format doesn't require geometry to be present and might not record spatial data efficiently (or accurately)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-