zoukankan      html  css  js  c++  java
  • cassandra的写过程

    参考 http://ju.outofmemory.cn/entry/115864

    类:  org.apache.cassandra.transport.Message

    如下:

    Message, get a new request,type:QUERY      //channelRead0函数

    Message, get a new request,customPayload:null
    Message, qstate:org.apache.cassandra.service.QueryState@36472632
    Message, before execute
    QueryMessage, execute, begin               //execute 函数 
    QueryMessage, before response
    QueryProcessor, process, begin
    QueryProcessor, process queryString:insert into usertable(y_id,field1) values('s894','sldf') ;  // public ResultMessage process 函数
    QueryProcessor, processStatement. before execute   // public ResultMessage processStatement 函数
    StatementType, enum StatementType, insert
    StorageProxy, performWrite 

    StorageProxy,apply,1111

    StoragePorxy, sendToHintedEndpoints
    StoragePorxy, sendToHintedEndpoints, insertLocal:true
    StorageProxy, performLocally 2

    StorageProxy, performLocally, before runnable.run()

    Mutation, apply 22

    Mutation, apply 11

    Keyspace, applyNotDeferrable

    Keyspace, apply 222 //主要的操作就在这里完成了


    QueryMessage, after response
    QueryMessage, before return
    Message, after execute  //channelRead0, response = request.execute(qstate, queryStartNanoTime);
    Message, before flush 222
    Message, after flush 222 //channelRead0,flush(new FlushItem(ctx, response, request.getSourceFrame()));

  • 相关阅读:
    JQuery实现页面跳转
    CSS中让背景图片居中且不平铺
    C#后台将string="23.00"转换成int类型
    BootStrap的一些基本语法
    CSS实现文字阴影的效果
    BootStrap自定义轮播图播放速度
    BootStrap 轮播插件(carousel)支持左右手势滑动的方法(三种)
    C#常用快捷键
    jQuery hover() 方法
    鼠标移动有尾巴
  • 原文地址:https://www.cnblogs.com/bettersky/p/6160107.html
Copyright © 2011-2022 走看看