Skip to content

Commit 7ba3811

Browse files
author
Daniel Kunnath
committed
Project structure changed, reflecting cascading.* modules.
1 parent 321bbf0 commit 7ba3811

File tree

11 files changed

+40
-6
lines changed

11 files changed

+40
-6
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
build.properties
2+
.DS_Store
3+
build
4+
.idea/**/*
5+
*.iml
6+
*.iws
7+
*.ipr
8+
out

build.xml

Whitespace-only changes.

lib/bson.jar

42.6 KB
Binary file not shown.

lib/cascading-core-wip-1.1-116.jar

457 KB
Binary file not shown.

lib/cascading-test-wip-1.1-116.jar

1.1 MB
Binary file not shown.

lib/mongo.jar

194 KB
Binary file not shown.

src/MongoDBOutputFormat.java renamed to src/java/cascading/mongodb/MongoDBOutputFormat.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.gameattain.dpa;
1+
package cascading.mongodb;
22

33
import org.apache.hadoop.mapreduce.*;
44

@@ -10,6 +10,7 @@
1010
*/
1111
public class MongoDBOutputFormat extends OutputFormat
1212
{
13+
public static final String OUTPUT_COLLECTION = "";
1314

1415
public RecordWriter getRecordWriter(TaskAttemptContext taskAttemptContext) throws IOException, InterruptedException {
1516
return null; //To change body of implemented methods use File | Settings | File Templates.

src/MongoDBScheme.java renamed to src/java/cascading/mongodb/MongoDBScheme.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.gameattain.dpa;
1+
package cascading.mongodb;
22

33
import cascading.scheme.Scheme;
44
import cascading.tap.Tap;
@@ -31,8 +31,8 @@ public void sourceInit(Tap tap, JobConf jobConf) throws IOException {
3131
}
3232

3333
public void sinkInit(Tap tap, JobConf jobConf) throws IOException {
34-
jobConf.setOutputFormat(MongoDBOutputFormat.class);
35-
jobConf.setOutputKeyClass();
34+
// jobConf.setOutputFormat(MongoDBOutputFormat.class);
35+
// jobConf.setOutputKeyClass();
3636
jobConf.setOutputValueClass(BasicDBObject.class);
3737
}
3838

@@ -66,4 +66,4 @@ private void setSourceSink(Fields keyFields, Fields[] columnFields) {
6666
setSourceFields(allFields);
6767
setSinkFields(allFields);
6868
}
69-
}
69+
}

src/MongoDBTap.java renamed to src/java/cascading/mongodb/MongoDBTap.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.gameattain.dpa;
1+
package cascading.mongodb;
22

33
import cascading.tap.SinkMode;
44
import cascading.tap.Tap;
@@ -80,6 +80,8 @@ private Mongo getMongo() throws UnknownHostException
8080
{
8181
m = new Mongo(hostname, port);
8282
}
83+
84+
return m;
8385
}
8486

8587
private DB getDB()
@@ -90,6 +92,7 @@ private DB getDB()
9092
db = m.getDB(database);
9193
}
9294

95+
return db;
9396
}
9497

9598
@Override
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package cascading.mongodb;
2+
3+
import cascading.CascadingTestCase;
4+
import org.junit.Test;
5+
6+
/**
7+
* Created by IntelliJ IDEA.
8+
* User: djktno
9+
* Date: May 24, 2010
10+
* Time: 4:10:09 PM
11+
* To change this template use File | Settings | File Templates.
12+
*/
13+
public class MongoTapTest extends CascadingTestCase
14+
{
15+
private static String tuple = "document\tvoid\tstatus\tgame";
16+
17+
@Test
18+
public void testTapConfiguration()
19+
{
20+
21+
}
22+
}

version.properties

Whitespace-only changes.

0 commit comments

Comments
 (0)