Package

org.locationtech.geomesa.utils

uuid

Permalink

package uuid

Visibility
  1. Public
  2. All

Type Members

  1. trait FeatureIdGenerator extends AnyRef

    Permalink

    Trait for generating feature ids based on attributes of a simple feature

  2. class IngestTimeFeatureIdGenerator extends FeatureIdGenerator

    Permalink

    Creates feature id based on current system time.

  3. trait RandomLsbUuidGenerator extends Version4UuidGenerator

    Permalink

    Creates random least significant bits with the appropriate variant set

  4. trait Version4UuidGenerator extends AnyRef

    Permalink

    Base trait for generating version 4 UUIDs.

  5. class Z3FeatureIdGenerator extends FeatureIdGenerator

    Permalink

    Creates feature id based on the z3 index.

Value Members

  1. object TimeSortedUuidGenerator extends RandomLsbUuidGenerator

    Permalink

    UUID generator that creates UUIDs that sort by creation time (useful for accumulo).

    UUID generator that creates UUIDs that sort by creation time (useful for accumulo).

    Uses variant 2 (IETF) and version 4 (for random UUIDs, although it's not totally random). See https://en.wikipedia.org/wiki/Universally_unique_identifier#Variants_and_versions

    Using a version 1 (time based) UUID doesn't ensure uniqueness when running in different processes on the same machine (at least not without some complicated distributed locking), as MAC address (or IP address) is the unique factor.

  2. object Z3UuidGenerator extends RandomLsbUuidGenerator with LazyLogging

    Permalink

    UUID generator that creates UUIDs that sort by z3 index.

    UUID generator that creates UUIDs that sort by z3 index. UUIDs will be prefixed with a shard number, which will ensure some distribution of values as well as allow pre-splitting of tables based on hex values.

    Uses variant 2 (IETF) and version 4 (for random UUIDs, although it's not totally random). See https://en.wikipedia.org/wiki/Universally_unique_identifier#Variants_and_versions

    Format is:

    4 bits for a shard - enough for a single hex digit 44 bits of the z3 index value 4 bits for the UUID version 12 more bits of the z3 index value 2 bits for the UUID variant 62 bits of randomness

Ungrouped