lightdb.util

package lightdb.util

Members list

Type members

Classlikes

case class ActionIterator[T](underlying: Iterator[T], onNext: Boolean => Unit, onClose: () => Unit) extends Iterator[T]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Iterator[T]
trait IterableOnceOps[T, Iterator, Iterator[T]]
trait IterableOnce[T]
class Object
trait Matchable
class Any
Show all
object Aggregator

Convenience class to stream aggregation for Stores that don't directly support aggregation

Convenience class to stream aggregation for Stores that don't directly support aggregation

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Aggregator.type
class AtomicList[T](comparator: Option[Comparator[T]])

Attributes

Supertypes
class Object
trait Matchable
class Any
trait Disposable

Attributes

Supertypes
class Object
trait Matchable
class Any
case class GroupedIterator[T, G](i: Iterator[T], grouper: T => G) extends Iterator[(G, List[T])]

Convenience Iterator that groups sorted elements together based on the grouper function.

Convenience Iterator that groups sorted elements together based on the grouper function.

Note: this is only useful is the underlying iterator is properly sorted by G.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Iterator[(G, List[T])]
trait IterableOnceOps[(G, List[T]), Iterator, Iterator[(G, List[T])]]
trait IterableOnce[(G, List[T])]
class Object
trait Matchable
class Any
Show all
class InMemoryIndex[Doc <: Document[Doc], V](field: Indexed[Doc, V], comparator: Option[Comparator[V]])

Attributes

Supertypes
class Object
trait Matchable
class Any

Provides simple initialization support to avoid initialization being invoked more than once. FlatMap on init to safely guarantee initialization was successful.

Provides simple initialization support to avoid initialization being invoked more than once. FlatMap on init to safely guarantee initialization was successful.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Collection[Doc, Model]
trait LightDB
final case class IteratorExtras[T](iterator: Iterator[T]) extends AnyVal

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class AnyVal
trait Matchable
class Any
Show all
object JsonOrdering extends Ordering[Json]

Attributes

Supertypes
trait Ordering[Json]
trait PartialOrdering[Json]
trait Equiv[Json]
trait Serializable
trait Comparator[Json]
class Object
trait Matchable
class Any
Show all
Self type
object Nowish

Always returns an incremented timestamp. If called multiple times within the same millisecond, the returned value will be incremented to always be unique.

Always returns an incremented timestamp. If called multiple times within the same millisecond, the returned value will be incremented to always be unique.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Nowish.type