@Override public Data readNext() throws Exception { return DataFactory.create(); } }
/** * @see stream.statistics.StatisticsService#getStatistics(java.lang.String) */ @Override public Statistics getStatistics() { return new Statistics(statistics); }
protected Statistics update(Statistics st, String value) { st.add(value, 1.0d); return st; }
/** * @see stream.Data#createCopy() */ @Override public Data createCopy() { return DataFactory.copy(this); }
/** * @see stream.service.Service#reset() */ @Override public void reset() throws Exception { synchronized (currentStatistics) { currentStatistics.clear(); } }
/** * Creates a new key from the specified annotation and the given name. * * @param annotation * @param name * @return */ public static Key createKey(String annotation, String name) { return new Key(annotation, name); }
/** * <p> * This method will create a new Data item. * </p> * * @return */ public static Data create() { dataItemsCreated++; return defaultDataFactory.createDataItem(); }
@Override public Data readNext() throws Exception { return DataFactory.create(); } };
/** * @see stream.AbstractProcessor#resetState() */ @Override public void resetState() throws Exception { this.statistics = new Statistics(); } }
/** * @see stream.service.Service#reset() */ @Override public void reset() throws Exception { synchronized (currentStatistics) { currentStatistics.clear(); } }
/** * Creates a new key from the specified annotation and the given name. * * @param annotation * @param name * @return */ public static Key createKey(String annotation, String name) { return new Key(annotation, name); }
/*** * <p> * This method will create a new Data item and will add the contents of the * specified item to the newly created item. * </p> * * @param data * @return */ public static Data create(Map<String, Serializable> data) { dataItemsCreated++; return defaultDataFactory.createDataItem(data); }
public MultiData(int size) { this.size = size; this.data = new Data[size]; for (int i = 0; i < size; i++) { data[i] = DataFactory.create(); } }
/** * @see stream.AbstractProcessor#resetState() */ @Override public void resetState() throws Exception { this.statistics = new Statistics(); } }
public MultiData(int size) { this.size = size; this.data = new Data[size]; for (int i = 0; i < size; i++) { data[i] = DataFactory.create(); } }
/** * @see org.apache.hadoop.mapred.RecordReader#createValue() */ public Data createValue() { return DataFactory.create(); }