Replicating a Tree table

HTML code


ExpandedBlockStart.gif 代码
 1  < table  summary ="folder contents for fly types" >
 2  < thead >
 3  < tr >
 4  < th  class ="name" > Name </ th >
 5  < th  class ="location" > Location </ th >
 6  < th  class ="color" > Color </ th >
 7  </ tr >
 8  </ thead >
 9  < tbody >
10  < tr >
11  < th  colspan ="3" > House </ th >
12  </ tr >
13  < tr >
14  < th  class ="start" > Carrion Fly </ th >
15  < td > Worldwide </ td >
16  < td > gray </ td >
17  </ tr >
18  < tr >
19  < th  class ="start" > Office Fly </ th >
20  < td > California, Bay Area </ td >
21  < td > white </ td >
22  </ tr >
23  < tr >
24  < th  class ="end" > Common House Fly </ th >
25  < td ></ td >
26  < td > brown </ td >
27  </ tr >
28  < tr >
29  < th  colspan ="3" > Horse </ th >
30  </ tr >
31  < tr >
32  < th  class ="start" > Horn Fly </ th >
33  < td > Kansas </ td >
34  < td > red </ td >
35  </ tr >
36  < tr >
37  < th  class ="start" > Face Fly </ th >
38  < td ></ td >
39  < td > green </ td >
40  </ tr >
41  < tr  class ="end" >
42  < th  class ="end" > Stable Fly </ th >
43  < td ></ td >
44  < td > black </ td >
45  </ tr >
46  </ tbody >
47  </ table >

CSS code


ExpandedBlockStart.gif 代码
 1   body
 2  {
 3  font-family :  arial, helvetica, sans-serif ;
 4  }
 5 
 6  table
 7  {
 8  border-collapse :  collapse ;
 9  margin-bottom :  3em ;
10  font-size :  70% ;
11  line-height :  1.1 ;
12  }
13   
14  tr:hover, td.start:hover, td.end:hover
15  {
16  background :  #FF9 ;
17  }
18 
19  th, td
20  {
21  padding :  .3em .5em ;
22  }
23 
24  th
25  {
26  font-weight :  normal ;
27  text-align :  left ;
28  background :  url(http://www.maxdesign.com.au/presentation/tree-table/arrow.gif) no-repeat 2px 50% ;
29  padding-left :  15px ;
30  }
31   
32  th.name  {  width :  12em ;   }
33  th.location  {  width :  12em ;   }
34  th.color  {  width :  10em ;   }
35   
36  thead th
37  {
38  background :  #c6ceda ;
39  border-color :  #fff #fff #888 #fff ;
40  border-style :  solid ;
41  border-width :  1px 1px 2px 1px ;
42  padding-left :  .5em ;
43  }
44   
45  tbody th.start
46  {
47  background :  url(http://www.maxdesign.com.au/presentation/tree-table/dots.gif) 18px 54% no-repeat ;
48  padding-left :  26px ;
49  }
50   
51  tbody th.end
52  {
53  background :  url(http://www.maxdesign.com.au/presentation/tree-table/dots2.gif) 18px 54% no-repeat ;
54  padding-left :  26px ;
55  }
56 


 

以下是一个flume的conf文件,请帮我逐行解释一下代码:“#定义三大组件的名称 a.sources = r a.sinks = k1 k2 k3 a.channels = c1 c2 c3 #将数据流复制给所有channel a.sources.r.selector.type = replicating  # 配置Source组件 a.sources.r.type = exec a.sources.r.command = cat /home/bit/novel/novel.csv # kafka a.sinks.k1.type = org.apache.flume.sink.kafka.KafkaSink a.sinks.k1.kafka.topic = data a.sinks.k1.kafka.bootstrap.servers = localhost:9092 a.sinks.k1.kafka.flumeBatchSize = 20 a.sinks.k1.kafka.producer.acks = 1 a.sinks.k1.kafka.producer.linger.ms = 1 a.sinks.k1.kafka.producer.compression.type = snappy a.channels.c1.type = memory a.channels.c1.capacity = 100000 a.channels.c1.transactionCapacity = 100 # mysql a.sinks.k2.type =com.us.flume.MysqlSink a.sinks.k2.hostname=localhost a.sinks.k2.port=3306 a.sinks.k2.databaseName=novel a.sinks.k2.tableName=table1 a.sinks.k2.user=bit a.sinks.k2.password=123456 a.channels.c2.type = memory a.channels.c2.capacity = 100000 a.channels.c2.transactionCapactiy = 2000 # hdfs a.sinks.k3.type = hdfs a.sinks.k3.hdfs.path = hdfs://localhost:9000/user/bit/novel #积攒多少个Event才flush到HDFS一次 a.sinks.k3.hdfs.batchSize = 100 #设置文件类型,可支持压缩 a.sinks.k3.hdfs.fileType = DataStream #多久生成一个新的文件 a.sinks.k3.hdfs.rollInterval = 5 a.channels.c3.type = memory a.channels.c3.capacity =100000 a.channels.c3.transactionCapacity = 100 # Bind the source and sink to the channel a.sources.r.channels = c1 c2 c3 a.sinks.k1.channel = c1 a.sinks.k2.channel = c2 a.sinks.k3.channel = c3”
05-24
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值