Class/Object

org.locationtech.geomesa.convert2

AbstractConverter

Related Docs: object AbstractConverter | package convert2

Permalink

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)

    Permalink

    sft

    simple feature type

    config

    converter config

    fields

    converter fields

    options

    converter options

Abstract Value Members

  1. abstract def parse(is: InputStream, ec: EvaluationContext): CloseableIterator[T]

    Permalink

    Parse objects out of the input stream.

    Parse objects out of the input stream. This should be lazily evaluated, so that any exceptions occur in the call to hasNext (and not during the iterator creation), which lets us handle them appropriately in ErrorHandlingIterator. If there is any sense of 'lines', they should be indicated with ec.counter.incLineCount

    is

    input

    ec

    evaluation context

    returns

    raw extracted values, one iterator entry per simple feature

    Attributes
    protected
  2. abstract def values(parsed: CloseableIterator[T], ec: EvaluationContext): CloseableIterator[Array[Any]]

    Permalink

    Convert parsed values into the raw array used for reading fields.

    Convert parsed values into the raw array used for reading fields. If line counting was not handled in parse (due to no sense of 'lines' in the input), then the line count should be incremented here instead

    parsed

    parsed values

    ec

    evaluation context

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def close(): Unit

    Permalink
    Definition Classes
    AbstractConverter → Closeable → AutoCloseable
  7. val config: C

    Permalink

    converter config

  8. def convert(values: CloseableIterator[T], ec: EvaluationContext): CloseableIterator[SimpleFeature]

    Permalink

    Convert parsed values into simple features

    Convert parsed values into simple features

    values

    parsed values, from parse

    ec

    evaluation context

    Definition Classes
    AbstractConverterParsingConverter
  9. def createEvaluationContext(globalParams: Map[String, Any], caches: Map[String, EnrichmentCache], counter: Counter): EvaluationContext

    Permalink

    Creates a context used for local state while processing

    Creates a context used for local state while processing

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

    Permalink

    Create a context used for local state while processing

    Create a context used for local state while processing

    globalParams

    global key-values to make accessible through the evaluation context

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

    Permalink

    Java API for createEvaluationContext

    Java API for createEvaluationContext

    globalParams

    global params, accessible in the converter for each input

    Definition Classes
    SimpleFeatureConverter
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. val fields: Seq[F]

    Permalink

    converter fields

  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. val options: O

    Permalink

    converter options

  24. def process(is: InputStream, ec: EvaluationContext): CloseableIterator[SimpleFeature]

    Permalink

    Process an input stream into simple features

    Process an input stream into simple features

    is

    input

    ec

    evaluation context

    Definition Classes
    AbstractConverterSimpleFeatureConverter
  25. val sft: SimpleFeatureType

    Permalink

    simple feature type

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def targetSft: SimpleFeatureType

    Permalink

    Result feature type

    Result feature type

    Definition Classes
    AbstractConverterSimpleFeatureConverter
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ParsingConverter[T]

Inherited from SimpleFeatureConverter

Inherited from LazyLogging

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped