Bucket

platdb.Bucket
trait Bucket extends Iterable

Bucket represents an ordered (lexicographic) set of key-value pairs.

Attributes

Graph
Supertypes
trait Iterable
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

def +=(key: String, value: String): Unit

A convenient way to add or update element.

A convenient way to add or update element.

Attributes

def +=(elems: Seq[(String, String)]): Unit

A convenient way to add or update elements

A convenient way to add or update elements

Attributes

def -=(key: String): Unit

A convenient way to delete an element.

A convenient way to delete an element.

Attributes

def -=(keys: Seq[String]): Unit

A convenient way to delete elements.

A convenient way to delete elements.

Attributes

def apply(key: String): String

A convenient way to retrieve element.

A convenient way to retrieve element.

Attributes

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

name

name

Attributes

def createBucket(name: String): Try[Bucket]

Create a subbucket.

Create a subbucket.

Attributes

def createBucketIfNotExists(name: String): Try[Bucket]

Create a subbucket.

Create a subbucket.

Attributes

def delete(key: String): Try[Unit]

delete element.

delete element.

Attributes

def deleteBucket(name: String): Try[Unit]

Delete subbucekt

Delete subbucekt

Attributes

def get(key: String): Try[String]

Retrieve the element

Retrieve the element

Attributes

def getBucket(name: String): Try[Bucket]

Open nested subbuckets.

Open nested subbuckets.

Attributes

def getOrElse(key: String, defalutValue: String): String

Attributes

def name: String
def put(key: String, value: String): Try[Unit]

Add or update element.

Add or update element.

Attributes

def update(key: String, value: String): Unit

A convenient way to add or update element.

A convenient way to add or update element.

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