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

lightdb.lucene.package.scala Maven / Gradle / Ivy

There is a newer version: 0.16.0
Show newest version
package lightdb

import lightdb.doc.Document
import lightdb.transaction.{Transaction, TransactionKey}

package object lucene {
  def StateKey[Doc <: Document[Doc]]: TransactionKey[LuceneState[Doc]] = TransactionKey("luceneState")

  def state[Doc <: Document[Doc]](implicit transaction: Transaction[Doc]): LuceneState[Doc] = transaction(StateKey[Doc])
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy