SchemaKey

final case class SchemaKey(vendor: String, name: String, format: String, version: Full)

Contains details about the schema of a piece of self-describing data.

Provides the same information as a SchemaMap but is used when dealing with data, not schema.

For an example, see typeclasses.ExtractSchemaKey.

Unlike PartialSchemaKey, the schema version is always fully known.

Companion:
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

Lossy conversion to PartialSchemaKey.

Lossy conversion to PartialSchemaKey.

def attachTo[E : NormalizeData](entity: E): E

Attach this SchemaKey to a piece of self-describing data, without changing the structure of the data's base type E.

Attach this SchemaKey to a piece of self-describing data, without changing the structure of the data's base type E.

def toPath: String

Convert this SchemaKey to a path that is compatible with most local and remote Iglu schema repositories.

Convert this SchemaKey to a path that is compatible with most local and remote Iglu schema repositories.

Convert this SchemaKey to a SchemaMap.

Convert this SchemaKey to a SchemaMap.

They both provide the same information but the former is used when dealing with data, and the latter when dealing with schema.

def toSchemaUri: String

Convert this SchemaKey to an Iglu schema URI.

Convert this SchemaKey to an Iglu schema URI.

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product