public boolean copyToTmp(FlexiRow src, FlexiRow dst) { int num = 0; if (numberField) { num = src.intArr[srcColPos]; } else { try { num = UtilMethods.parseInt(src.charArr[srcColPos], 0, src.charSiz[srcColPos]); } catch (NumberFormatException nfe) { return false; } } dst.stringArr[dstColPos] = UtilMethods.intToIp(num); return true; }
public void processFunctionArgs(LogMeta lm, String args) { args = args.trim(); field = lm.getFieldMeta(args); if (field == null) { if (args.indexOf('(') > -1) { child = UtilMethods.processStringFunction(lm, args); } else { throw new IllegalArgumentException("Unknown field: " + args); } } }