Skip to content
This repository was archived by the owner on Dec 18, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
d9d7270
Upgrade bundled gems, convert rubygems.org to SSL, point build notifi…
mrwalker Apr 15, 2013
23369d6
Update specs to pass against JRuby 1.7.3, add to supported list
mrwalker Apr 15, 2013
73dcad9
Begin removing *args in Assembly; this is a non-backwards compatible …
mrwalker Apr 15, 2013
01ea001
Remove *args from text operations; this is a non-backwards compatible…
mrwalker Apr 17, 2013
984df8d
Remove unused identity wrapper
mrwalker Apr 17, 2013
b4b44f3
Refactor filter/reject/where into FilterOperations module; further re…
mrwalker Apr 17, 2013
79d7d11
Remove * args from filter/reject/where; this is a non-backwards compa…
mrwalker Apr 17, 2013
c5ef543
Refactor Operations/AggregatorOperations for convenience in preparing…
mrwalker Apr 17, 2013
7f71682
Move remainder of operations from Assembly into Operations catch-all …
mrwalker Apr 17, 2013
5fefc74
Remvoe distinct; not sure why it was even there given that it raises …
mrwalker Apr 17, 2013
1876c30
Update debug pipe contract to match Cascading
mrwalker Apr 17, 2013
f6b4966
Refactor and document ungroup/set_value/etc.; this is a non-backwards…
mrwalker Apr 17, 2013
65eae31
Add examples to FilterOperations documentation
mrwalker Apr 17, 2013
94ebec5
Minor cleanups in Cascading module
mrwalker Apr 18, 2013
23caa2a
Clean up Aggregations in preparation for removing *args
mrwalker Apr 18, 2013
a1851c4
Begin removing *args, remove some unnecessary metaprogramming, and ma…
mrwalker Apr 18, 2013
fcdd43f
Correct use of split_rows in README
mrwalker Apr 18, 2013
419d74c
Remove additional *args; inspiration isn't striking, though, so this …
mrwalker Apr 18, 2013
07d7c3a
I believe we inherited the name "params" from Rails, which doesn't ap…
mrwalker Apr 19, 2013
9ba7db1
Alias filter operations to their Cascading equivalents, but prefer ve…
mrwalker Apr 19, 2013
3814101
Document Cascading module and Taps
mrwalker Apr 24, 2013
e749453
Allow Mode.parse to pass through an already-constructed Mode object t…
mrwalker Apr 24, 2013
bd793fc
Document Cascade
mrwalker Apr 24, 2013
bb70b9d
Document Flow; also fixes the cascading.spill.list.threshold property…
mrwalker Apr 25, 2013
c41ebce
Document Assembly
mrwalker Apr 25, 2013
c98bda2
Document Node
mrwalker Apr 26, 2013
2390f2f
HashJoin may not be followed by aggregations, so remove block entirel…
mrwalker Apr 26, 2013
1de715f
Document Aggregations
mrwalker Apr 26, 2013
8b2d62d
Update ExprStub documentation
mrwalker Apr 26, 2013
01009a3
Update Mode documentation
mrwalker Apr 26, 2013
9bdff8c
Update SubAssembly documentation
mrwalker Apr 26, 2013
9b023fe
Document Scope
mrwalker Apr 26, 2013
53dfc4d
Relicense cascading.jruby from LGPL to Apache 2.0
mrwalker Apr 26, 2013
3bc44b9
Prep for 1.0.0 release
mrwalker Apr 26, 2013
547833c
Cleanup gemspec
mrwalker Apr 26, 2013
2c0131f
Doc fix
mrwalker Jan 11, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ language: ruby
rvm:
- jruby-18mode
notifications:
recipients:
- [email protected]
irc: "irc.freenode.org#etsydoop"
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source :rubygems
source 'https://rubygems.org'

group :test do
gem 'rake', '0.8.7'
gem 'rake', '10.0.3'
gem 'rspec', '1.1.11'
end
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
GEM
remote: http://rubygems.org/
remote: https://rubygems.org/
specs:
rake (0.8.7)
rake (10.0.3)
rspec (1.1.11)

PLATFORMS
java

DEPENDENCIES
rake (= 0.8.7)
rake (= 10.0.3)
rspec (= 1.1.11)
173 changes: 13 additions & 160 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,165 +1,18 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
License:
Project and contact information: http://github.com/mrwalker/cascading.jruby

Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

0. Additional Definitions.
Third-party Licenses:

As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.

"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.

An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.

A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".

The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.

The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.

1. Exception to Section 3 of the GNU GPL.

You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.

2. Conveying Modified Versions.

If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:

a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or

b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.

3. Object Code Incorporating Material from Library Header Files.

The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:

a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.

b) Accompany the object code with a copy of the GNU GPL and this license
document.

4. Combined Works.

You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:

a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.

b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.

c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.

d) Do one of the following:

0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.

1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.

e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)

5. Combined Libraries.

You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:

a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.

b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.

6. Revised Versions of the GNU Lesser General Public License.

The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.

Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.

If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
All third-party dependencies are listed in ivy.xml.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cascade 'wordcount', :mode => :local do
source 'input', tap(input_path)

assembly 'input' do
split_rows 'line', 'word', :pattern => /[.,]*\s+/, :output => 'word'
split_rows 'line', /[.,]*\s+/, 'word', :output => 'word'
group_by 'word' do
count
end
Expand All @@ -28,8 +28,8 @@ end.complete

cascading.jruby provides a clean Ruby interface to Cascading, but doesn't attempt to add abstractions on top of it. Therefore, you should be acquainted with the [Cascading](http://docs.cascading.org/cascading/2.0/userguide/html/) [API](http://docs.cascading.org/cascading/2.0/javadoc/) before you begin.

For operations you can apply to your dataflow within a pipe assembly, see the [Assembly](http://rubydoc.info/gems/cascading.jruby/0.0.10/Cascading/Assembly) class. For operations available within a block passed to a group_by, union, or join, see the [Aggregations](http://rubydoc.info/gems/cascading.jruby/0.0.10/Cascading/Aggregations) class.
For operations you can apply to your dataflow within a pipe assembly, see the [Assembly](http://rubydoc.info/gems/cascading.jruby/1.0.0/Cascading/Assembly) class. For operations available within a block passed to a group_by, union, or join, see the [Aggregations](http://rubydoc.info/gems/cascading.jruby/1.0.0/Cascading/Aggregations) class.

Note that the Ruby code you write merely constructs a Cascading job, so no JRuby runtime is required on your cluster. This stands in contrast with writing [Hadoop streaming jobs in Ruby](http://www.quora.com/How-do-the-different-options-for-Ruby-on-Hadoop-compare). To run cascading.jruby applications on a Hadoop cluster, you must use [Jading](https://github.com/etsy/jading) to package them into a job jar.
Note that the Ruby code you write merely constructs a Cascading job, so no JRuby runtime is required on your cluster. This stands in contrast with writing [Hadoop streaming jobs in Ruby](http://www.quora.com/How-do-the-different-options-for-Ruby-on-Hadoop-compare). To run cascading.jruby applications on a Hadoop cluster, you must use [Jading](https://github.com/mrwalker/jading) to package them into a job jar.

cascading.jruby has been tested on JRuby versions 1.2.0, 1.4.0, 1.5.3, 1.6.5, and 1.6.7.2.
cascading.jruby has been tested on JRuby versions 1.2.0, 1.4.0, 1.5.3, 1.6.5, 1.6.7.2, 1.7.0, and 1.7.3.
33 changes: 17 additions & 16 deletions cascading.jruby.gemspec
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
# -*- encoding: utf-8 -*-
#$: << File.join(File.dirname(__FILE__), '..', 'lib')
#require 'cascading'

Gem::Specification.new do |s|
s.name = "cascading.jruby"
s.version = "0.0.10"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
# TODO: in 2.0.0, Job will encapsulate Cascading module, so we can directly
# grab the version from there; for now, just hack it
#s.version = Cascading::VERSION
s.version = '1.0.0'
s.date = Time.now.strftime('%Y-%m-%d')
s.summary = "A JRuby DSL for Cascading"
s.homepage = "http://github.com/mrwalker/cascading.jruby"
s.email = "[email protected]"
s.authors = ["Matt Walker", "Gr\303\251goire Marabout"]
s.description = "cascading.jruby is a small DSL above Cascading, written in JRuby"
s.email = "[email protected]"
s.extra_rdoc_files = ["LICENSE.txt"]
s.files = ["lib/cascading.rb", "lib/cascading/aggregations.rb", "lib/cascading/assembly.rb", "lib/cascading/base.rb", "lib/cascading/cascade.rb", "lib/cascading/cascading.rb", "lib/cascading/cascading_exception.rb", "lib/cascading/expr_stub.rb", "lib/cascading/ext/array.rb", "lib/cascading/flow.rb", "lib/cascading/mode.rb", "lib/cascading/operations.rb", "lib/cascading/scope.rb", "lib/cascading/sub_assembly.rb", "lib/cascading/tap.rb"]
s.homepage = "http://github.com/etsy/cascading.jruby"
s.rdoc_options = ["--main", "README.md"]

s.files = Dir.glob("lib/**/*.rb")
s.test_files = Dir.glob("test/**/*.rb")
s.require_paths = ["lib"]
s.rubyforge_project = "cascading.jruby"
s.rubygems_version = "1.8.21"
s.summary = "A JRuby DSL for Cascading"
s.test_files = ["test/test_aggregations.rb", "test/test_assembly.rb", "test/test_cascade.rb", "test/test_cascading.rb", "test/test_exceptions.rb", "test/test_flow.rb", "test/test_local_execution.rb", "test/test_operations.rb"]

if s.respond_to? :specification_version then
s.specification_version = 3
end
s.rdoc_options = ["--main", "README.md"]
s.extra_rdoc_files = ["README.md", "LICENSE.txt"]

s.description = "cascading.jruby is a small DSL above Cascading, written in JRuby"
end
10 changes: 8 additions & 2 deletions lib/cascading.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,26 @@

module Cascading
# :stopdoc:
VERSION = '0.0.10'
VERSION = '1.0.0'
end

require 'cascading/aggregations'
require 'cascading/assembly'
require 'cascading/base'
require 'cascading/cascade'
require 'cascading/cascading'
require 'cascading/cascading_exception'
require 'cascading/expr_stub'
require 'cascading/filter_operations'
require 'cascading/flow'
require 'cascading/identity_operations'
require 'cascading/mode'
require 'cascading/operations'
require 'cascading/regex_operations'
require 'cascading/scope'
require 'cascading/sub_assembly'
require 'cascading/tap'
require 'cascading/text_operations'

# include module to make them available at top package
# include module to make it available at top level
include Cascading
Loading