Object

org.locationtech.geomesa.kafka

KafkaDataStoreHelper

Related Doc: package kafka

Permalink

object KafkaDataStoreHelper

Utilities for managing the user data in SimpleFeatureTypes as required by KafkaDataStore

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. KafkaDataStoreHelper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

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. val DefaultZkPath: String

    Permalink
  5. val ReplayConfigKey: String

    Permalink
  6. val TopicKey: String

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def buildTopicName(zkPath: String, sft: SimpleFeatureType): String

    Permalink
  9. def cleanZkPath(rawPath: String, default: String = DefaultZkPath): String

    Permalink

    Cleans up a zk path parameter - trims, prepends with "/" if needed, strips trailing "/" if needed.

    Cleans up a zk path parameter - trims, prepends with "/" if needed, strips trailing "/" if needed. Defaults to "/geomesa/ds/kafka" if rawPath is null or empty.

    rawPath

    the path to be cleaned

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def createReplaySFT(sft: SimpleFeatureType, rConfig: ReplayConfig): SimpleFeatureType

    Permalink

    Creates a copy of the passed SimpleFeature type with additional user data representing the given ReplayConfig (encoded as a String).

    Creates a copy of the passed SimpleFeature type with additional user data representing the given ReplayConfig (encoded as a String). The KafkaDataStore requires the additional user data. Only "Streaming SFTs" returned by createStreamingSFT and "Replay SFTs" created by this method may be used with KafkaDataStore. Calling createSchema(sft) on a KafkaDataStore with any other SFT will result in an IllegalArgumentException being thrown.

    sft

    the SimpleFeatureType to prepare for replay; must have been previously prepared for live

  12. def createStreamingSFT(sft: SimpleFeatureType, zkPath: String): SimpleFeatureType

    Permalink

    Creates a copy of the passed SimpleFeatureType with additional user data specifying the topic name (derived from the given zkPath).

    Creates a copy of the passed SimpleFeatureType with additional user data specifying the topic name (derived from the given zkPath). The KafkaDataStore requires the additional user data. Only "Streaming SFTs" returned by this method and "Replay SFTs" created by createReplaySFT may be used with KafkaDataStore. Calling createSchema(sft) on a KafkaDataStore with any other SFT will result in an IllegalArgumentException being thrown.

    sft

    the SimpleFeatureType to be used with a KafkaDataStore

    zkPath

    the base zookeeper path where SimpleFeatureTypes are stored; MUST match the zkPath used to create the KafkaDataStore; also used to generate the name of the Kafka topic

    returns

    a copy of the given sft that is ready to be used with a KafkaDataStore

  13. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def extractReplayConfig(sft: SimpleFeatureType): Option[ReplayConfig]

    Permalink
  16. def extractStreamingTypeName(replaySFT: SimpleFeatureType): Option[String]

    Permalink

    Extracts the name of the "Streaming SFT" SimpleFeatureType which the given "Replay SFT" is based on.

    Extracts the name of the "Streaming SFT" SimpleFeatureType which the given "Replay SFT" is based on.

    replaySFT

    a SimpleFeatureType that has been prepared for replay

    returns

    the name of the streaming simple feature or None if replaySFT was not produced by 'createReplaySFT'

  17. def extractTopic(sft: SimpleFeatureType): Option[String]

    Permalink
  18. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. def insertReplayConfig(sft: SimpleFeatureType, configString: String): Unit

    Permalink

    Modifies the passed SimpleFeatureType, adding the encoded replay configString to the user data

  22. def insertTopic(sft: SimpleFeatureType, topic: String): Unit

    Permalink

    modifies the passed SimpleFeature type, adding the topic string to user data

  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def isPreparedForReplay(sft: SimpleFeatureType): Boolean

    Permalink

    returns

    true if the given sft was produced by createReplaySFT otherwise false

  25. def isStreamingSFT(sft: SimpleFeatureType): Boolean

    Permalink

    returns

    true if the given sft was produced by createStreamingSFT otherwise false

  26. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped