BSet

platdb.BSet
trait BSet extends Iterable

BSet represents a set of string elements on disk, where the elements are unique and can be traversed in dictionary order.

Attributes

Graph
Supertypes
trait Iterable
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

def +=(key: String): Unit

Add one element to the current collection.

Add one element to the current collection.

Attributes

def -=(key: String): Unit

Remove one element from the current collection.

Remove one element from the current collection.

Attributes

def add(keys: Seq[String]): Try[Unit]

Add one or more elements to the current collection.

Add one or more elements to the current collection.

Attributes

def and(set: BSet): Try[BSet]

Calculate the intersection of the current set and the target set, and the result is still a BSet (the object is stored in memory).

Calculate the intersection of the current set and the target set, and the result is still a BSet (the object is stored in memory).

Attributes

def and(set: Set[String]): Try[BSet]

Calculate the intersection of the current set and the target set,and the result is still a BSet (the object is stored in memory).

Calculate the intersection of the current set and the target set,and the result is still a BSet (the object is stored in memory).

Attributes

def contains(key: String): Try[Boolean]

Check if the current collection contains an element.

Check if the current collection contains an element.

Attributes

def diff(set: BSet): Try[BSet]

Calculate the difference between the current set and the target set,and the result is still a BSet (the object is stored in memory).

Calculate the difference between the current set and the target set,and the result is still a BSet (the object is stored in memory).

Attributes

def diff(set: Set[String]): Try[BSet]

Calculate the difference between the current set and the target set,and the result is still a BSet (the object is stored in memory).

Calculate the difference between the current set and the target set,and the result is still a BSet (the object is stored in memory).

Attributes

def name: String

name

name

Attributes

def remove(keys: Seq[String]): Try[Unit]

Remove one or more elements from the current collection.

Remove one or more elements from the current collection.

Attributes

def union(set: BSet): Try[BSet]

Calculate the union of the current set and the target set,and the result is still a BSet (the object is stored in memory).

Calculate the union of the current set and the target set,and the result is still a BSet (the object is stored in memory).

Attributes

def union(set: Set[String]): Try[BSet]

Calculate the union of the current set and the target set,and the result is still a BSet (the object is stored in memory).

Calculate the union of the current set and the target set,and the result is still a BSet (the object is stored in memory).

Attributes

Concrete methods

def &(set: BSet): BSet

A convenient method for calculating intersections, equivalent to the add method.

A convenient method for calculating intersections, equivalent to the add method.

Attributes

def &(set: Set[String]): BSet

A convenient method for calculating intersections, equivalent to the add method.

A convenient method for calculating intersections, equivalent to the add method.

Attributes

def -(set: BSet): BSet

A convenient method for calculating difference sets, equivalent to the diff method.

A convenient method for calculating difference sets, equivalent to the diff method.

Attributes

def -(set: Set[String]): BSet

A convenient method for calculating difference sets, equivalent to the diff method.

A convenient method for calculating difference sets, equivalent to the diff method.

Attributes

def |(set: BSet): BSet

A convenient method for calculating unions, equivalent to the union method.

A convenient method for calculating unions, equivalent to the union method.

Attributes

def |(set: Set[String]): BSet

A convenient method for calculating unions, equivalent to the union method.

A convenient method for calculating unions, equivalent to the union method.

Attributes

Inherited methods

def iterator: CollectionIterator

return a collection iterator object.

return a collection iterator object.

Attributes

Inherited from:
Iterable
def length: Long

the elements number of current collection.

the elements number of current collection.

Attributes

Inherited from:
Iterable