public class SolrRrdBackend extends org.rrd4j.core.RrdByteArrayBackend implements Closeable
Modifier and Type | Class and Description |
---|---|
static class |
SolrRrdBackend.SyncData |
Constructor and Description |
---|
SolrRrdBackend(SolrRrdBackend other)
Open an unregistered (throwaway) read-only clone of another backend.
|
SolrRrdBackend(String path,
boolean readOnly,
SolrRrdBackendFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getLastModifiedTime() |
SolrRrdBackend.SyncData |
getSyncDataAndMarkClean() |
protected boolean |
isDirty() |
boolean |
isReadOnly() |
protected void |
setBuffer(byte[] buffer) |
protected void |
setLength(long length) |
protected void |
write(long offset,
byte[] bytes) |
protected void |
writeDouble(long offset,
double value) |
protected void |
writeDouble(long offset,
double[] values) |
protected void |
writeDouble(long offset,
double value,
int count) |
protected void |
writeInt(long offset,
int value) |
protected void |
writeLong(long offset,
long value) |
protected void |
writeShort(long offset,
short value) |
protected void |
writeString(long offset,
String value,
int length) |
getCharBuffer, readDouble, readDouble, readInt, readLong, readShort, rrdClose, setByteBuffer
public SolrRrdBackend(String path, boolean readOnly, SolrRrdBackendFactory factory)
public SolrRrdBackend(SolrRrdBackend other)
other
- other backendpublic boolean isReadOnly()
public long getLastModifiedTime()
protected void write(long offset, byte[] bytes) throws IOException
write
in class org.rrd4j.core.ByteBufferBackend
IOException
protected void writeShort(long offset, short value) throws IOException
writeShort
in class org.rrd4j.core.ByteBufferBackend
IOException
protected void writeInt(long offset, int value) throws IOException
writeInt
in class org.rrd4j.core.ByteBufferBackend
IOException
protected void writeLong(long offset, long value) throws IOException
writeLong
in class org.rrd4j.core.ByteBufferBackend
IOException
protected void writeDouble(long offset, double value) throws IOException
writeDouble
in class org.rrd4j.core.ByteBufferBackend
IOException
protected void writeDouble(long offset, double value, int count) throws IOException
writeDouble
in class org.rrd4j.core.ByteBufferBackend
IOException
protected void writeDouble(long offset, double[] values) throws IOException
writeDouble
in class org.rrd4j.core.ByteBufferBackend
IOException
protected void writeString(long offset, String value, int length) throws IOException
writeString
in class org.rrd4j.core.ByteBufferBackend
IOException
protected boolean isDirty()
isDirty
in class org.rrd4j.core.ByteBufferBackend
protected void setBuffer(byte[] buffer)
setBuffer
in class org.rrd4j.core.RrdByteArrayBackend
protected void setLength(long length) throws IOException
setLength
in class org.rrd4j.core.RrdByteArrayBackend
IOException
public SolrRrdBackend.SyncData getSyncDataAndMarkClean()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.rrd4j.core.ByteBufferBackend
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.