@Test public void testCountMobileDomain() throws IOException { Tuple input = tupleFactory.newTuple(2); input.set(0, "http: input.set(1, "zero-orange-tunesia.tab"); ZeroFilterFunc zero = new ZeroFilterFunc("legacy"); assertTrue(zero.exec(input)); }
public final Boolean exec(final Tuple input) throws ExecException { if (input == null || input.get(0) == null) { return false; } if (mode.equals("default")) { String xCS = (String) input.get(1); if (containsXcsValue(xCS)) { String carrierName = xCSCarrierMap.get(this.xCS); ZeroConfig zeroConfig = carrierName != null ? getZeroConfig(carrierName) : getZeroConfig("default"); return isValidZeroRequest((String) input.get(0), zeroConfig); } else { return false; } } else { String simpleFilename = simplifyFilename((String) input.get(1)); ZeroConfig zeroConfig = getZeroConfig(simpleFilename); return isValidZeroRequest((String) input.get(0), zeroConfig); } }
ZeroFilterFunc extends FilterFunc { public final Boolean exec(final Tuple input) throws ExecException { if (input == null || input.get(0) == null) { return false; } if (mode.equals("default")) { String xCS = (String) input.get(1); if (containsXcsValue(xCS)) { String carrierName = xCSCarrierMap.get(this.xCS); ZeroConfig zeroConfig = carrierName != null ? getZeroConfig(carrierName) : getZeroConfig("default"); return isValidZeroRequest((String) input.get(0), zeroConfig); } else { return false; } } else { String simpleFilename = simplifyFilename((String) input.get(1)); ZeroConfig zeroConfig = getZeroConfig(simpleFilename); return isValidZeroRequest((String) input.get(0), zeroConfig); } } }
ZeroFilterFunc extends FilterFunc { public final Boolean exec(final Tuple input) throws ExecException { if (input == null || input.get(0) == null) { return false; } if (mode.equals("default")) { String xCS = (String) input.get(1); if (containsXcsValue(xCS)) { String carrierName = xCSCarrierMap.get(this.xCS); ZeroConfig zeroConfig = carrierName != null ? getZeroConfig(carrierName) : getZeroConfig("default"); return isValidZeroRequest((String) input.get(0), zeroConfig); } else { return false; } } else { String simpleFilename = simplifyFilename((String) input.get(1)); ZeroConfig zeroConfig = getZeroConfig(simpleFilename); return isValidZeroRequest((String) input.get(0), zeroConfig); } } ZeroFilterFunc();  ZeroFilterFunc(final String mode); }
ZeroFilterFunc extends FilterFunc { public final Boolean exec(final Tuple input) throws ExecException { if (input == null || input.get(0) == null) { return false; } if (mode.equals("default")) { String xCS = (String) input.get(1); if (containsXcsValue(xCS)) { String carrierName = xCSCarrierMap.get(this.xCS); ZeroConfig zeroConfig = carrierName != null ? getZeroConfig(carrierName) : getZeroConfig("default"); return isValidZeroRequest((String) input.get(0), zeroConfig); } else { return false; } } else { String simpleFilename = simplifyFilename((String) input.get(1)); ZeroConfig zeroConfig = getZeroConfig(simpleFilename); return isValidZeroRequest((String) input.get(0), zeroConfig); } } ZeroFilterFunc();  ZeroFilterFunc(final String mode); final Boolean exec(final Tuple input); final Schema outputSchema(final Schema input); final String getMode(); final ZeroConfig getZeroConfig(final String key); }
ZeroFilterFunc extends FilterFunc { public final Boolean exec(final Tuple input) throws ExecException { if (input == null || input.get(0) == null) { return false; } if (mode.equals("default")) { String xCS = (String) input.get(1); if (containsXcsValue(xCS)) { String carrierName = xCSCarrierMap.get(this.xCS); ZeroConfig zeroConfig = carrierName != null ? getZeroConfig(carrierName) : getZeroConfig("default"); return isValidZeroRequest((String) input.get(0), zeroConfig); } else { return false; } } else { String simpleFilename = simplifyFilename((String) input.get(1)); ZeroConfig zeroConfig = getZeroConfig(simpleFilename); return isValidZeroRequest((String) input.get(0), zeroConfig); } } ZeroFilterFunc();  ZeroFilterFunc(final String mode); final Boolean exec(final Tuple input); final Schema outputSchema(final Schema input); final String getMode(); final ZeroConfig getZeroConfig(final String key);  }