package convert2
- Alphabetic
- By Inheritance
- convert2
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- abstract class AbstractCompositeConverter[T <: AnyRef] extends SimpleFeatureConverter with LazyLogging
-
abstract
class
AbstractConverter[T, C <: ConverterConfig, F <: Field, O <: ConverterOptions] extends SimpleFeatureConverter with ParsingConverter[T] with LazyLogging
Abstract converter implementation.
Abstract converter implementation. Typically paired with an AbstractConverterFactory. If so, needs to have a default constructor consisting of (targetSft, config, fields, options), so that the AbstractConverterFactory can instantiate it via reflection.
Subclasses need to implement
read
to parse the underlying input stream into raw values that will be transformed to simple features.- T
intermediate parsed values binding
- C
config binding
- F
field binding
- O
options binding
-
abstract
class
AbstractConverterFactory[S <: AbstractConverter[_, C, F, O], C <: ConverterConfig, F <: Field, O <: ConverterOptions] extends SimpleFeatureConverterFactory
Abstract converter factory implementation.
Abstract converter factory implementation. Subclasses need to implement
typeToProcess
and make available pureconfig readers for the converter configurationThe converter to use is identified by the 'type' field in the config, e.g. 'xml' or 'json'
- trait ConverterConfig extends AnyRef
- trait ConverterOptions extends AnyRef
-
class
ErrorHandlingIterator[T] extends CloseableIterator[T] with LazyLogging
Handles errors from the underlying parsing of data, before converting to simple features
- trait Field extends AnyRef
-
trait
ParsingConverter[T] extends SimpleFeatureConverter
Converter that parses out intermediate values from an input stream
Converter that parses out intermediate values from an input stream
- T
type binding
-
trait
SimpleFeatureConverter extends Closeable with LazyLogging
Converts input streams into simple features.
Converts input streams into simple features. SimpleFeatureConverters should be thread-safe. However, a given EvaluationContext should only be used in a single thread at once.
- trait SimpleFeatureConverterFactory extends LazyLogging
Value Members
-
def
multiTry[T](attempts: Iterator[Try[T]], failure: Throwable): Try[T]
Try a sequence of attempts.
Try a sequence of attempts. Return the first success. If there are no successes, Failures will be added as suppressed exceptions.
- T
attempt type
- attempts
attempts
- failure
umbrella exception in case of failure
- object AbstractCompositeConverter
- object AbstractConverter
- object AbstractConverterFactory extends LazyLogging
- object SimpleFeatureConverter extends StrictLogging
- object TypeInference