struct Storage::PhysicalTable

Defined in:

storage/table/physical_table.cr

Constant Summary

MUTEX_SHARDS = 2 << 12

Constructors

Instance Method Summary

Instance methods inherited from struct Storage::AbstractTable

close close, db_name : String db_name, get(key) get, index_scan(index_name : String, index_value_start : ReQL::Datum, index_value_end : ReQL::Datum, &block : Hash(String, ReQL::Datum) -> ) index_scan, initialize initialize, name : String name, primary_key primary_key, replace(key : ReQL::Datum, durability : ReQL::Durability | Nil = nil, &block : Hash(String, ReQL::Datum) | Nil -> Hash(String, ReQL::Datum) | Nil) replace, scan(&block : Hash(String, ReQL::Datum) -> ) scan

Constructor methods inherited from struct Storage::AbstractTable

new new

Instance methods inherited from class Object

!=(other : RethinkDB::DSL::R) !=, %(other : RethinkDB::DSL::R) %, &(other : RethinkDB::DSL::R) &, *(other : RethinkDB::DSL::R) *, +(other : RethinkDB::DSL::R) +, -(other : RethinkDB::DSL::R) -, /(other : RethinkDB::DSL::R) /, <(other : RethinkDB::DSL::R) <, <=(other : RethinkDB::DSL::R) <=, ==(other : RethinkDB::DSL::R) ==, >(other : RethinkDB::DSL::R) >, >=(other : RethinkDB::DSL::R) >=, |(other : RethinkDB::DSL::R) |

Constructor Detail

def self.new(manager : Manager, table : Manager::Table) #

[View source]

Instance Method Detail

def build_index(index : Manager::Index) #

[View source]
def create_index(name : String, function : ReQL::Func, multi : Bool) #

[View source]
def db_name : String #

[View source]
def estimated_count #

[View source]
def get(key) #

[View source]
def get_all_indices_status #

[View source]
def get_index_list #

[View source]
def get_index_status(name : String) #

[View source]
def index_scan(index_name : String, index_value_start : ReQL::Datum, index_value_end : ReQL::Datum, &block : Hash(String, ReQL::Datum) -> ) #

[View source]
def name : String #

[View source]
def primary_key #

[View source]
def read_docs_on_table : PerSecondMetric #

[View source]
def read_docs_on_table=(read_docs_on_table : PerSecondMetric) #

[View source]
def replace(key, durability : ReQL::Durability | Nil = nil, &) #

[View source]
def scan(&) #

[View source]
def update_index_data(t, index, key_data, old_row, new_row) #

[View source]
def written_docs_on_table : PerSecondMetric #

[View source]
def written_docs_on_table=(written_docs_on_table : PerSecondMetric) #

[View source]