All Downloads are FREE. Search and download functionalities are using the official Maven repository.

stores.SchemaStore.scala Maven / Gradle / Ivy

There is a newer version: 2.9.0
Show newest version
package avrohugger
package stores

import org.apache.avro.Schema

import java.util.concurrent.ConcurrentHashMap
import scala.jdk.CollectionConverters._

class SchemaStore {

  val schemas: scala.collection.concurrent.Map[String, Schema] =
    new ConcurrentHashMap[String, Schema]().asScala

  def accept(schema: Schema) =
    schemas += (schema.getFullName -> schema)
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy