stores.SchemaStore.scala Maven / Gradle / Ivy
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