abstract class RrdPrimitive<U extends RrdUpdater<U>> extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static int |
RRD_DOUBLE |
(package private) static int |
RRD_INT |
(package private) static int |
RRD_LONG |
(package private) static int[] |
RRD_PRIM_SIZES |
(package private) static int |
RRD_STRING |
(package private) static int |
STRING_LENGTH |
Constructor and Description |
---|
RrdPrimitive(RrdUpdater<U> updater,
int type,
boolean isConstant) |
RrdPrimitive(RrdUpdater<U> updater,
int type,
int count,
boolean isConstant) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
isCachingAllowed() |
(package private) byte[] |
readBytes() |
(package private) double |
readDouble() |
(package private) double |
readDouble(int index) |
(package private) double[] |
readDouble(int index,
int count) |
protected <E extends Enum<E>> |
readEnum(Class<E> clazz) |
(package private) int |
readInt() |
(package private) long |
readLong() |
(package private) String |
readString() |
(package private) void |
writeBytes(byte[] b) |
(package private) void |
writeDouble(double value) |
(package private) void |
writeDouble(int index,
double value) |
(package private) void |
writeDouble(int index,
double[] values) |
(package private) void |
writeDouble(int index,
double value,
int count) |
protected <E extends Enum<E>> |
writeEnum(E value) |
(package private) void |
writeInt(int value) |
(package private) void |
writeLong(long value) |
(package private) void |
writeString(String value) |
static final int STRING_LENGTH
static final int RRD_INT
static final int RRD_LONG
static final int RRD_DOUBLE
static final int RRD_STRING
static final int[] RRD_PRIM_SIZES
RrdPrimitive(RrdUpdater<U> updater, int type, boolean isConstant)
RrdPrimitive(RrdUpdater<U> updater, int type, int count, boolean isConstant)
final byte[] readBytes() throws IOException
IOException
final void writeBytes(byte[] b) throws IOException
IOException
final int readInt() throws IOException
IOException
final void writeInt(int value) throws IOException
IOException
final long readLong() throws IOException
IOException
final void writeLong(long value) throws IOException
IOException
final double readDouble() throws IOException
IOException
final double readDouble(int index) throws IOException
IOException
final double[] readDouble(int index, int count) throws IOException
IOException
final void writeDouble(double value) throws IOException
IOException
final void writeDouble(int index, double value) throws IOException
IOException
final void writeDouble(int index, double value, int count) throws IOException
IOException
final void writeDouble(int index, double[] values) throws IOException
IOException
final String readString() throws IOException
IOException
final void writeString(String value) throws IOException
IOException
protected final <E extends Enum<E>> E readEnum(Class<E> clazz) throws IOException
IOException
protected final <E extends Enum<E>> void writeEnum(E value) throws IOException
IOException
final boolean isCachingAllowed()