MCPcopy Create free account
hub / github.com/apache/pig / isEmpty

Method isEmpty

src/org/apache/pig/scripting/jruby/RubyDataBag.java:264–267  ·  view source on GitHub ↗

This method returns whether or not the encapsulated DataBag is empty. @param context the context the method is being executed in i @return true if the encapsulated DAtaBag is empty, false otherwise

(ThreadContext context)

Source from the content-addressed store, hash-verified

262 i @return true if the encapsulated DAtaBag is empty, false otherwise
263 */
264 @JRubyMethod(name = "empty?")
265 public RubyBoolean isEmpty(ThreadContext context) {
266 return RubyBoolean.newBoolean(context.getRuntime(), internalDB.size() == 0);
267 }
268
269 /**
270 * This method returns a string representation of the RubyDataBag. If given an optional

Callers 10

runSingleMethod · 0.45
runMethod · 0.45
illustrateMethod · 0.45
explainMethod · 0.45
describeMethod · 0.45
setPigStatsMethod · 0.45
registerUDFMethod · 0.45
libsToShipMethod · 0.45

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected