@Override public void write(DataOutput out) throws IOException { delegate.write(out); }
@Override public void write(DataOutput out) throws IOException { realCounter.write(out); }
@Override public void write(DataOutput out) throws IOException { realCounter.write(out); }
/** * Write to Hadoop output. * * @param out DataOutput to write to. * @throws IOException if something goes wrong. */ public void write(DataOutput out) throws IOException { counter.write(out); }
@Override public void write(DataOutput out) throws IOException { realCounter.write(out); }
@Override public void write(DataOutput out) throws IOException { realCounter.write(out); }
/** * GenericGroup ::= displayName #counter counter* */ @Override public synchronized void write(DataOutput out) throws IOException { Text.writeString(out, displayName); WritableUtils.writeVInt(out, counters.size()); for(Counter counter: counters.values()) { counter.write(out); } }
public synchronized void write(DataOutput out) throws IOException { Text.writeString(out, displayName); WritableUtils.writeVInt(out, counters.size()); for(Counter counter: counters.values()) { counter.write(out); } }
public synchronized void write(DataOutput out) throws IOException { Text.writeString(out, displayName); WritableUtils.writeVInt(out, counters.size()); for(Counter counter: counters.values()) { counter.write(out); } }
/** * GenericGroup ::= displayName #counter counter* */ @Override public synchronized void write(DataOutput out) throws IOException { Text.writeString(out, displayName); WritableUtils.writeVInt(out, counters.size()); for(Counter counter: counters.values()) { counter.write(out); } }
/** * GenericGroup ::= displayName #counter counter* */ @Override public synchronized void write(DataOutput out) throws IOException { Text.writeString(out, displayName); WritableUtils.writeVInt(out, counters.size()); for(Counter counter: counters.values()) { counter.write(out); } }
/** * GenericGroup ::= displayName #counter counter* */ @Override public synchronized void write(DataOutput out) throws IOException { Text.writeString(out, displayName); WritableUtils.writeVInt(out, counters.size()); for(Counter counter: counters.values()) { counter.write(out); } }
@Override public Object invoke(Object obj, Method m, Method m2, Object[] args) throws Throwable { String name = m.getName(); if ("increment".equals(name)) { c.increment((Long) args[0]); return null; } else if ("getCounter".equals(name) || "getValue".equals(name)) { return c.getValue(); } else if ("setValue".equals(name)) { c.setValue((Long) args[0]); return null; } else if ("getDisplayName".equals(name)) { return c.getDisplayName(); } else if ("getName".equals(name)) { return c.getName(); } else if ("getUnderlyingCounter".equals(name)) { return c; } else if ("readFields".equals(name)) { c.readFields((DataInput) args[0]); return null; } else if ("write".equals(name)) { c.write((DataOutput) args[0]); return null; } throw new IllegalStateException("Unhandled Counters.Counter method = " + name); } }