Guest User

Untitled

a guest
Jan 24th, 2011
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.05 KB | None | 0 0
  1.  
  2. <dataConfig>
  3.  
  4.     <dataSource name="fds" encoding="UTF-8"  type="FileDataSource" />
  5.  
  6.     <document>
  7.  
  8.      
  9.  
  10.       <entity name="try"
  11.  
  12.              processor="FileListEntityProcessor"
  13.  
  14.              newerThan="${dataimporter.last_index_time}"
  15.  
  16.              fileName="^hathi_upd_.*\.txt$"
  17.  
  18.              rootEntity="false"
  19.  
  20.              baseDir="/Users/dueberb/Documents/devel/hathi"
  21.  
  22.      >
  23.  
  24.  
  25.  
  26.         <entity name="tryli"
  27.  
  28.                processor="LineEntityProcessor"
  29.                url="${hathifile.fileAbsolutePath}"
  30.  
  31.               rootEntity="true"
  32.  
  33.                dataSource="fds"
  34.  
  35.                transformer="RegexTransformer"
  36.        >
  37.  
  38.  
  39.  
  40.  
  41.  
  42.           <field column="rawLine"
  43.  
  44.                 regex="^(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)$"
  45.  
  46.                 groupNames="month,date,time,DHCP_ip,protocol,DHCPMESSAGE,location,from_mac,way,gateway_ip,Name,net_ADDR,t1,t2,t3"
  47.  
  48.          />
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.      
  58.  
  59.  
  60.  
  61.  
  62.  
  63.     </document>
  64.  
  65.   </dataConfig>
Advertisement
Add Comment
Please, Sign In to add comment