Packages

abstract class AbstractConverter[T, C <: ConverterConfig, F <: Field, O <: ConverterOptions] extends SimpleFeatureConverter with ParsingConverter[T] with LazyLogging

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

Linear Supertypes
ParsingConverter[T], SimpleFeatureConverter, LazyLogging, Closeable, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractConverter
  2. ParsingConverter
  3. SimpleFeatureConverter
  4. LazyLogging
  5. Closeable
  6. AutoCloseable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractConverter(sft: SimpleFeatureType, config: C, fields: Seq[F], options: O)

    sft

    simple feature type

    config

    converter config

    fields

    converter fields

    options

    converter options

Concrete Value Members

  1. def close(): Unit
    Definition Classes
    AbstractConverter → Closeable → AutoCloseable
  2. val config: C
  3. def convert(values: CloseableIterator[T], ec: EvaluationContext): CloseableIterator[SimpleFeature]

    Convert parsed values into simple features

    Convert parsed values into simple features

    values

    parsed values, from parse

    ec

    evaluation context

    Definition Classes
    AbstractConverterParsingConverter
  4. def createEvaluationContext(globalParams: Map[String, Any], success: Counter, failure: Counter): EvaluationContext

    Create a context used for local state while processing.

    Create a context used for local state while processing. A context object is not thread-safe, and should only be used in one thread at a time.

    globalParams

    global key-values to make accessible through the evaluation context

    success

    counter for tracking successful conversions

    failure

    counter for tracking failed conversions

    Definition Classes
    AbstractConverterSimpleFeatureConverter
  5. def createEvaluationContext(globalParams: Map[String, Any]): EvaluationContext

    Create a context used for local state while processing.

    Create a context used for local state while processing. A context object is not thread-safe, and should only be used in one thread at a time.

    globalParams

    global key-values to make accessible through the evaluation context

    Definition Classes
    AbstractConverterSimpleFeatureConverter
  6. final def createEvaluationContext(globalParams: Map[String, Any]): EvaluationContext

    Java API for createEvaluationContext

    Java API for createEvaluationContext

    globalParams

    global key-values to make accessible through the evaluation context

    Definition Classes
    SimpleFeatureConverter
  7. val fields: Seq[F]
  8. val options: O
  9. def process(is: InputStream, ec: EvaluationContext): CloseableIterator[SimpleFeature]

    Process an input stream into simple features.

    Process an input stream into simple features.

    This method should be thread-safe, as long as different evaluation contexts are used for each request.

    is

    input

    ec

    evaluation context

    Definition Classes
    AbstractConverterSimpleFeatureConverter
  10. val sft: SimpleFeatureType
  11. def targetSft: SimpleFeatureType

    Result feature type

    Result feature type

    Definition Classes
    AbstractConverterSimpleFeatureConverter