Package org.rrd4j.core
Class RrdPrimitive<U extends RrdUpdater<U>>
java.lang.Object
org.rrd4j.core.RrdPrimitive<U>
- Direct Known Subclasses:
RrdDouble,RrdDoubleArray,RrdDoubleMatrix,RrdEnum,RrdInt,RrdLong,RrdString
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int(package private) static final int(package private) static final int(package private) static final int[](package private) static final int(package private) static final int -
Constructor Summary
ConstructorsConstructorDescriptionRrdPrimitive(RrdUpdater<U> updater, int type, boolean isConstant) RrdPrimitive(RrdUpdater<U> updater, int type, int count, boolean isConstant) -
Method Summary
Modifier and TypeMethodDescription(package private) final boolean(package private) final byte[](package private) final double(package private) final doublereadDouble(int index) (package private) final double[]readDouble(int index, int count) protected final <E extends Enum<E>>
E(package private) final intreadInt()(package private) final longreadLong()(package private) final String(package private) final voidwriteBytes(byte[] b) (package private) final voidwriteDouble(double value) (package private) final voidwriteDouble(int index, double value) (package private) final voidwriteDouble(int index, double[] values) (package private) final voidwriteDouble(int index, double value, int count) protected final <E extends Enum<E>>
voidwriteEnum(E value) (package private) final voidwriteInt(int value) (package private) final voidwriteLong(long value) (package private) final voidwriteString(String value)
-
Field Details
-
STRING_LENGTH
static final int STRING_LENGTH- See Also:
-
RRD_INT
static final int RRD_INT- See Also:
-
RRD_LONG
static final int RRD_LONG- See Also:
-
RRD_DOUBLE
static final int RRD_DOUBLE- See Also:
-
RRD_STRING
static final int RRD_STRING- See Also:
-
RRD_PRIM_SIZES
static final int[] RRD_PRIM_SIZES
-
-
Constructor Details
-
RrdPrimitive
RrdPrimitive(RrdUpdater<U> updater, int type, boolean isConstant) -
RrdPrimitive
RrdPrimitive(RrdUpdater<U> updater, int type, int count, boolean isConstant)
-
-
Method Details
-
readBytes
- Throws:
IOException
-
writeBytes
- Throws:
IOException
-
readInt
- Throws:
IOException
-
writeInt
- Throws:
IOException
-
readLong
- Throws:
IOException
-
writeLong
- Throws:
IOException
-
readDouble
- Throws:
IOException
-
readDouble
- Throws:
IOException
-
readDouble
- Throws:
IOException
-
writeDouble
- Throws:
IOException
-
writeDouble
- Throws:
IOException
-
writeDouble
- Throws:
IOException
-
writeDouble
- Throws:
IOException
-
readString
- Throws:
IOException
-
writeString
- Throws:
IOException
-
readEnum
- Throws:
IOException
-
writeEnum
- Throws:
IOException
-
isCachingAllowed
final boolean isCachingAllowed()
-