Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

No reason to have accumulating reducer fail if it doesn't have new me…

…thods defined in subclass
  • Loading branch information...
commit 43f7c603ef1579c1594ce566c618a26e1018cfa9 1 parent fd06433
Philip (flip) Kromer authored
Showing with 1 addition and 4 deletions.
  1. +1 −0  .gitignore
  2. +0 −4 lib/wukong/streamer/accumulating_reducer.rb
View
1  .gitignore
@@ -13,6 +13,7 @@ REVISION
TAGS*
tmtags
*_flymake.*
+*_flymake
*.tmproj
.project
.settings
View
4 lib/wukong/streamer/accumulating_reducer.rb
@@ -57,15 +57,12 @@ def process *args, &block
# start! is called on the the first record of the new key
#
def start! *args
- raise %Q{start! is the new reset! -- it has args now, namely the first
- record of the new key. It doesn\'t want #super either}
end
#
# Override this to accumulate each record for the given key in turn.
#
def accumulate *args, &block
- raise "override the accumulate method in your subclass"
end
#
@@ -73,7 +70,6 @@ def accumulate *args, &block
# You must override this method.
#
def finalize
- raise "override the finalize method in your subclass"
end
# Finalize the last-seen group.

0 comments on commit 43f7c60

Please sign in to comment.
Something went wrong with that request. Please try again.