qubx :: tree :: NodeInMem :: Class NodeInMem
[hide private]
[frames] | no frames]

Class NodeInMem

source code

 object --+    
          |    
NodeStorage --+
              |
             NodeInMem

Manages the attributes and data of a Node that's not in a file.

Instance Methods [hide private]
 
__init__(self, init)
Instantiated by Node with either a NodeStorage template to copy, or the name for a fresh new one.
source code
 
get_name(self) source code
 
set_name(self, x) source code
 
get_preload(self) source code
 
set_preload(self, x) source code
 
get_data(self) source code
 
get_dataCount(self) source code
 
get_dataSize(self) source code
 
get_dataType(self) source code
 
get_rowcount(self) source code
 
get_colcount(self) source code
 
get_loaded(self) source code
 
get_loadedRows(self) source code
 
get_data_item(self, i) source code
 
set_data_item(self, i, x) source code
 
setup_data(self, type, rows, cols) source code
 
resize_data(self, nr, type_if_none) source code
 
__adjust_load(self) source code
 
clear_data(self) source code
 
set_string_data(self, s) source code
 
load_rows(self, first, last, do_read) source code
 
unload_rows(self, do_write) source code
 
read_rows(self, first, last) source code
 
write_rows(self, first, last, arr) source code
 
get_rows(self, first, last) source code

Inherited from NodeStorage: get_childPos, get_dataPos, get_file, get_offset, get_ondirtied, get_siblingPos, map_data, measure, read, set_childPos, set_clean, set_ondirtied, set_siblingPos, write

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  __cols
  __data
  __dataCount
  __dataSize
  __dataType
  __loadedFirst
  __loadedLast
  __name
  __preload
  __rows

Inherited from NodeStorage: OnDirtied, childPos, clean, cols, data, dataCount, dataPos, dataSize, dataType, file, loaded, loadedRows, name, offset, preload, rows, siblingPos

Inherited from object: __class__

Method Details [hide private]

__init__(self, init)
(Constructor)

source code 

Instantiated by Node with either a NodeStorage template to copy, or the name for a fresh new one.

Basically it uses self.__whatever for the attributes, and keeps data in either numpy.array or mmap.mmap (for strings).

Overrides: object.__init__

get_data_item(self, i)

source code 
Overrides: NodeStorage.get_data_item

set_data_item(self, i, x)

source code 
Overrides: NodeStorage.set_data_item

setup_data(self, type, rows, cols)

source code 
Overrides: NodeStorage.setup_data

resize_data(self, nr, type_if_none)

source code 
Overrides: NodeStorage.resize_data

clear_data(self)

source code 
Overrides: NodeStorage.clear_data

set_string_data(self, s)

source code 
Overrides: NodeStorage.set_string_data

load_rows(self, first, last, do_read)

source code 
Overrides: NodeStorage.load_rows

unload_rows(self, do_write)

source code 
Overrides: NodeStorage.unload_rows

read_rows(self, first, last)

source code 
Overrides: NodeStorage.read_rows

write_rows(self, first, last, arr)

source code 
Overrides: NodeStorage.write_rows

get_rows(self, first, last)

source code 
Overrides: NodeStorage.get_rows