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
}
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
}