RobinArray(Archive parentArc, int rows, boolean shouldInitialize) throws IOException { this.parentArc = parentArc; this.pointer = new RrdInt(this); this.values = new RrdDoubleArray(this, rows); this.rows = rows; if (shouldInitialize) { pointer.set(0); values.set(0, Double.NaN, rows); } }
RobinArray(Archive parentArc, int rows, boolean shouldInitialize) throws IOException { this.parentArc = parentArc; this.pointer = new RrdInt<>(this); this.values = new RrdDoubleArray<>(this, rows); this.rows = rows; if (shouldInitialize) { pointer.set(0); values.set(0, Double.NaN, rows); } }
Header(RrdDb parentDb, RrdDef rrdDef) throws IOException { this.parentDb = parentDb; String initSignature = null; if(rrdDef != null) { version = rrdDef.getVersion(); initSignature = SIGNATURE + ", " + VERSIONS[version - 1]; } else { initSignature = DEFAULT_SIGNATURE; } signature = new RrdString<>(this); // NOT constant, may be cached step = new RrdLong<>(this, true); // constant, may be cached dsCount = new RrdInt<>(this, true); // constant, may be cached arcCount = new RrdInt<>(this, true); // constant, may be cached lastUpdateTime = new RrdLong<>(this); if (rrdDef != null) { signature.set(initSignature); step.set(rrdDef.getStep()); dsCount.set(rrdDef.getDsCount()); arcCount.set(rrdDef.getArcCount()); lastUpdateTime.set(rrdDef.getStartTime()); } }
Header(RrdDb parentDb, RrdDef rrdDef) throws IOException { this.parentDb = parentDb; String initSignature = null; if(rrdDef != null) { version = rrdDef.getVersion(); initSignature = SIGNATURE + ", " + VERSIONS[ version - 1]; } else { initSignature = DEFAULT_SIGNATURE; } signature = new RrdString(this); // NOT constant, may be cached step = new RrdLong(this, true); // constant, may be cached dsCount = new RrdInt(this, true); // constant, may be cached arcCount = new RrdInt(this, true); // constant, may be cached lastUpdateTime = new RrdLong(this); if (rrdDef != null) { signature.set(initSignature); step.set(rrdDef.getStep()); dsCount.set(rrdDef.getDsCount()); arcCount.set(rrdDef.getArcCount()); lastUpdateTime.set(rrdDef.getStartTime()); } }
consolFun = new RrdEnum<>(this, false, ConsolFun.class); // Don't cache, as the enum type should be used instead xff = new RrdDouble<>(this); steps = new RrdInt<>(this, true); // constant, may be cached rows = new RrdInt<>(this, true); // constant, may be cached boolean shouldInitialize = arcDef != null; if (shouldInitialize) { robins = new RobinMatrix[n]; for (int i = 0; i < n; i++) { pointers[i] = new RrdInt<>(this);
consolFun = new RrdString(this, true); // constant, may be cached xff = new RrdDouble(this); steps = new RrdInt(this, true); // constant, may be cached rows = new RrdInt(this, true); // constant, may be cached boolean shouldInitialize = arcDef != null; if (shouldInitialize) { robins = new RobinMatrix[n]; for (int i = 0; i < n; i++) { pointers[i] = new RrdInt(this); states[i] = new ArcState(this, shouldInitialize);