public void reset(DateTime time) { beginTime = time; beginTimeTS = Util.dateTimeToUnixTS(time); current = new Candlestick(beginTime, 0.0f, float.MaxValue, 0.0f, 0.0f, 0.0f); count = 0; }
public void schreibe(Candlestick daten) { if (this.table != null && this.inserter != null) { inserter.schreibe(daten, mutator); mutator.Flush(); } else { throw new System.ArgumentException("Tabelle öffnen und/oder DBInserter setzen!"); } }
public Candlestick getNextCandlestick() { Candlestick cs = last; last = null; return cs; }
public void finalizeCurrent() { current.mean /= count; last = current; }
public void schreibe(Candlestick data, ITableMutator mutator) { //DateTime ts = data.timestamp; //String rowKey = data.titel.name + " " + Util.getAmiDatum(); //// schreibe kurs //Key key = new Key(rowKey, "quote"); //mutator.Set(key, Encoding.UTF8.GetBytes(data.kurs.ToString())); //// schreibe volumen //key.ColumnFamily = "volume"; //mutator.Set(key, Encoding.UTF8.GetBytes(data.volumen.ToString())); }