Mercurial > hg > Database > Alice
annotate src/alice/test/codesegment/local/TestCodeSegment.java @ 192:a8b0d44bbe68 working
not use value object in bitonic
author | e095732 |
---|---|
date | Thu, 07 Mar 2013 22:20:54 +0900 |
parents | a85ff8dc16c1 |
children | caee170e6cfa |
rev | line source |
---|---|
22
2ca2d961a8d2
implements outline of TopologyManager
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
19
diff
changeset
|
1 package alice.test.codesegment.local; |
3 | 2 |
3 import alice.codesegment.CodeSegment; | |
18
72dd27d952b0
change InputDataSegment API
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
16
diff
changeset
|
4 import alice.datasegment.CommandType; |
33
20c67f673224
change name of DataSegmentReceiver
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
32
diff
changeset
|
5 import alice.datasegment.Receiver; |
192 | 6 import alice.test.codesegment.local.bitonicsort.DataList; |
3 | 7 |
8 public class TestCodeSegment extends CodeSegment { | |
9 | |
119 | 10 static int count = 0; |
11 | |
57 | 12 // create input datasegment arg1 |
182 | 13 Receiver arg1 = ids.create(CommandType.PEEK); |
97 | 14 public TestCodeSegment(){ |
15 arg1.setKey("key1"); | |
16 } | |
17 public TestCodeSegment(int index){ | |
18 arg1.setKey("key1",index); | |
19 } | |
16 | 20 |
3 | 21 @Override |
22 public void run() { | |
192 | 23 if(count > 0){ |
182 | 24 System.out.println(System.currentTimeMillis() - StartCodeSegment.t); |
25 System.exit(1); | |
26 } | |
192 | 27 DataList list = (DataList)arg1.obj; |
28 System.out.println("ssss"+list.table); | |
190 | 29 //System.out.println(arg1.val); |
150 | 30 |
183 | 31 //ods.update("key1",arg1.asInteger()+1); |
169 | 32 new TestCodeSegment(); |
184 | 33 |
169 | 34 //new TestCodeSegment(arg1.index); |
35 | |
182 | 36 count++; |
57 | 37 // DataSegment.get("local").update |
169 | 38 //ods.update("local", "key1", arg1.index); |
119 | 39 |
3 | 40 } |
41 | |
42 } |