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.
the path to be cleaned
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.
the SimpleFeatureType to prepare for replay; must have been previously prepared for live
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.
the SimpleFeatureType to be used with a KafkaDataStore
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
a copy of the given
that is ready to be used with a KafkaDataStoresft
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.
a SimpleFeatureType that has been prepared for replay
the name of the streaming simple feature or
if None
was not produced by
'createReplaySFT'replaySFT
Modifies the passed SimpleFeatureType, adding the encoded replay configString to the user data
modifies the passed SimpleFeature type, adding the topic string to user data
true if the given sft was produced by createReplaySFT otherwise false
true if the given sft was produced by createStreamingSFT otherwise false
Utilities for managing the user data in SimpleFeatureTypes as required by KafkaDataStore