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
abstract class RrdPrimitive<U extends RrdUpdater<U>> extends Object
-
Field Summary
Fields Modifier and Type Field Description (package private) static intRRD_DOUBLE(package private) static intRRD_INT(package private) static intRRD_LONG(package private) static int[]RRD_PRIM_SIZES(package private) static intRRD_STRING(package private) static intSTRING_LENGTH -
Constructor Summary
Constructors Constructor Description RrdPrimitive(RrdUpdater<U> updater, int type, boolean isConstant)RrdPrimitive(RrdUpdater<U> updater, int type, int count, boolean isConstant) -
Method Summary
Modifier and Type Method Description (package private) booleanisCachingAllowed()(package private) byte[]readBytes()(package private) doublereadDouble()(package private) doublereadDouble(int index)(package private) double[]readDouble(int index, int count)protected <E extends Enum<E>>
EreadEnum(Class<E> clazz)(package private) intreadInt()(package private) longreadLong()(package private) StringreadString()(package private) voidwriteBytes(byte[] b)(package private) voidwriteDouble(double value)(package private) voidwriteDouble(int index, double value)(package private) voidwriteDouble(int index, double[] values)(package private) voidwriteDouble(int index, double value, int count)protected <E extends Enum<E>>
voidwriteEnum(E value)(package private) voidwriteInt(int value)(package private) voidwriteLong(long value)(package private) voidwriteString(String value)
-
Field Details
-
STRING_LENGTH
static final int STRING_LENGTH- See Also:
- Constant Field Values
-
RRD_INT
static final int RRD_INT- See Also:
- Constant Field Values
-
RRD_LONG
static final int RRD_LONG- See Also:
- Constant Field Values
-
RRD_DOUBLE
static final int RRD_DOUBLE- See Also:
- Constant Field Values
-
RRD_STRING
static final int RRD_STRING- See Also:
- Constant Field Values
-
RRD_PRIM_SIZES
static final int[] RRD_PRIM_SIZES
-
-
Constructor Details
-
RrdPrimitive
- Throws:
IOException
-
RrdPrimitive
- Throws:
IOException
-
-
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()
-