if (msg.containsKey(OnlineCF.Settings.MSG_INP_ITEM_FEATURES)) {
// send item feature
String itemId = ((Text)msg.get(OnlineCF.Settings.MSG_INP_ITEM_FEATURES)).toString();
inpItemsFeatures.put(itemId, (VectorWritable)msg.get(OnlineCF.Settings.MSG_VALUE));
itemFeatureSize = ((VectorWritable)msg.get(OnlineCF.Settings.MSG_VALUE)).getVector().getLength();
} else if (msg.containsKey(OnlineCF.Settings.MSG_INP_USER_FEATURES)) {
// send user feature
String userId = ((Text)msg.get(OnlineCF.Settings.MSG_INP_USER_FEATURES)).toString();
inpUsersFeatures.put(userId, (VectorWritable)msg.get(OnlineCF.Settings.MSG_VALUE));
userFeatureSize = ((VectorWritable)msg.get(OnlineCF.Settings.MSG_VALUE)).getVector().getLength();
}