object FunnelUtil {
var gson: Gson = new GsonBuilder().create
val maxFunnelLength = 10
var beginTimestamp = 0
var eventLength = 0
var eventMap : mutable.HashMap[Short,Byte] = null
def initEventMap(eventDesc :String) ={
val initEventMap = new mutable.HashMap[Short,Byte]()
var index :Byte= 0
eventDesc.split(",").foreach( event_id => {
initEventMap += event_id.toShort -> index
index = index.+(1).toByte
})
eventMap = initEventMap
}
test code 09-18-2
猜你喜欢
转载自lingzhi007.iteye.com/blog/2393629
今日推荐
周排行