def __init__(self): cosmos = CosmosFactory.instance(keyspace_name=None) self.my_session = cosmos.get_session() self.keyspace = cosmos.get_keyspace_name() self.table_name = self.keyspace + self.table_name self.create_table()
def __init__(self): cosmos = CosmosFactory.instance(keyspace_name=None) self.my_session = cosmos.get_session() self.keyspace = cosmos.get_keyspace_name() self.table_name = self.keyspace + self.table_name self.create_table() self.track = RecordKeepingData() self.log = LogData() self.index = IndexData()
def __init__(self): cosmos = CosmosFactory.instance(keyspace_name=None) self.my_session = cosmos.get_session() self.keyspace = cosmos.get_keyspace_name() self.index = IndexData() self.rec = BitemporalData() self.marker = MarkerSearch() self.asof = AsOfSearch()
def __init__(self): cosmos = CosmosFactory.instance(keyspace_name=None) self.my_session = cosmos.get_session() self.keyspace = cosmos.get_keyspace_name() self.index = IndexData() self.rec = BitemporalData() self.rec_keeper = RecordKeepingData() self.marker = MarkerSearch() self.log = LogData()
def clean_all(): db = CosmosFactory() index = IndexData() index.drop_table() rec = BitemporalData() rec.drop_table() keep = RecordKeepingData() keep.drop_table() keep = IndexDataRecordKeeping() keep.drop_table()
def __init__(self): cosmos = CosmosFactory.instance(keyspace_name=None) self.index = IndexData() self.marker = MarkerSearch() self.bitemporal = BitemporalPandas()
from data.index_data import IndexData from database.cosmos_factory import CosmosFactory from data.index_data_record_keeping import IndexDataRecordKeeping from data.bitemporal_data_record_keeping import RecordKeepingData from search.marker_search import MarkerSearch from search.asof_search import AsOfSearch from database.config import config as cfg from cleanup import clean_all from utils import timestamp_helper if __name__ == '__main__': ks_name = cfg['keyspace'] db = CosmosFactory.instance(keyspace_name=ks_name) print(db.get_keyspace_name()) db2 = CosmosFactory.instance(keyspace_name=ks_name) print(db.get_keyspace_name()) if (id(db) == id(db2)): print("Same") index = IndexPandas() #print(index.get_all_variables()) #index2 = IndexData() #print(index2.get_all_variables()) rec = BitemporalPandas()