final case class SchemaCriterion(vendor: String, name: String, format: String, model: Option[Int], revision: Option[Int], addition: Option[Int])
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Value members
Concrete methods
Format this SchemaCriterion as an Iglu schema URI, whereby the REVISION and ADDITION may be replaced with "*" wildcards.
Format this SchemaCriterion as an Iglu schema URI, whereby the REVISION and ADDITION may be replaced with "*" wildcards.
- Returns:
The string representation of this criterion.
Filter a sequence of entities by this SchemaCriterion.
Filter a sequence of entities by this SchemaCriterion.
Can be used for getting only the Right
JSON instances
out of an array of custom contexts.
Usage:
// This will get the best match for an entity
criterion.takeFrom(_.schema)(entities).sort.getOption
- Type parameters:
- E
The base type of the self-describing data, having an
ExtractSchemaKey
instance in scope.
- Value parameters:
- entities
A list of self-describing data blobs.
- Returns:
A list of matching entities.