Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

        def SetupFromExistingStream(fromfile, StartSeek=0):
    result = BplusTreeLong(fromfile, 33, 33, StartSeek)
    result.readHeader()
    result.buffers = BufferFile.SetupFromExistingStream(fromfile, StartSeek+result.headersize)
    if (result.buffers.buffersize!=result.buffersize):
        raise BplusTreeException, "inner and outer buffer sizes should match "+repr(
            (result.buffers.buffersize, result.buffersize))
    if result.rootSeek!=NULLBUFFERNUMBER:
        result.root = BplusNode(result, None, None, True)
        result.root.LoadFromBuffer(result.rootSeek)
    return result
        


src/b/p/BplusPy-1.0/BplusPy/BplusTreeBytes.py   BplusPy(Download)
    if type(blockfile) is types.StringType:
        blockfile = open(blockfilename, access)
    tree = BplusTreeLong.SetupFromExistingStream(treefile)
    archive = LinkedFile.SetupFromExistingStream(blockfile)
    return initFunction(tree, archive)

src/b/p/BplusPy-1.0/BplusPy/testing.py   BplusPy(Download)
def restart(bpt):
    global allinserts, lastcommittedinserts
    print "<h3>commit</h3>"
    commit(bpt);
    return BplusTreeLong.SetupFromExistingStream(bpt.fromfile, bpt.seekStart)