public abstract class AbstractNAryTreeLPTailCompressor<T extends AbstractNAryTreeLPTail>
extends nl.tue.astar.impl.AbstractCompressor<T>
implements nl.tue.astar.impl.memefficient.TailInflater<T>
Modifier and Type | Field and Description |
---|---|
protected short |
activities |
protected int |
activityBytes |
protected int |
maxBytes |
protected int |
stateBytes |
protected int |
variableBytes |
protected int |
variables |
Constructor and Description |
---|
AbstractNAryTreeLPTailCompressor(int stateBytes,
int variables,
short activities) |
Modifier and Type | Method and Description |
---|---|
void |
deflate(T object,
java.io.OutputStream stream)
deflate the given object into the provided stream.
|
int |
getMaxByteCount()
the method is called before each call to deflate.
|
abstract T |
inflate(java.io.InputStream stream)
read an object from a stream.
|
<H extends nl.tue.astar.Head> |
inflateEstimate(nl.tue.astar.impl.memefficient.StorageAwareDelegate<H,T> delegate,
H head,
java.io.InputStream stream) |
protected short[] |
readVarsDoubleBitmask(java.io.InputStream stream) |
void |
skipHead(java.io.InputStream stream) |
protected void |
writeVarsDoubleBitMask(java.io.OutputStream stream,
short[] vars) |
checkIntOnByteArray, checkShortOnByteArray, deflate, deflate, deflateWithCheck, equalsDeflating, getBitsPerVar, getBitsPerVar, inflateContent, inflateContentToArray, makeBitMask, makeBitMask, makeShortListBitMask, readBooleanFromStream, readDoubleFromStream, readIntFromStream, readInto, readInto, readLongFromStream, readMask, readShortFromStream, writeBooleanToByteArray, writeDoubleToByteArray, writeIntToByteArray, writeLongToByteArray, writeShortToByteArray, writeTo, writeTo
protected final int variableBytes
protected final int variables
protected final int maxBytes
protected final int stateBytes
protected final short activities
protected final int activityBytes
public AbstractNAryTreeLPTailCompressor(int stateBytes, int variables, short activities)
public void deflate(T object, java.io.OutputStream stream) throws java.io.IOException
nl.tue.storage.Deflater
deflate
in interface nl.tue.storage.Deflater<T extends AbstractNAryTreeLPTail>
java.io.IOException
public abstract T inflate(java.io.InputStream stream) throws java.io.IOException
nl.tue.storage.Inflater
inflate
in interface nl.tue.storage.Inflater<T extends AbstractNAryTreeLPTail>
java.io.IOException
protected void writeVarsDoubleBitMask(java.io.OutputStream stream, short[] vars) throws java.io.IOException
java.io.IOException
protected short[] readVarsDoubleBitmask(java.io.InputStream stream) throws java.io.IOException
java.io.IOException
public int getMaxByteCount()
nl.tue.storage.Deflater
getMaxByteCount
in interface nl.tue.storage.Deflater<T extends AbstractNAryTreeLPTail>
public <H extends nl.tue.astar.Head> int inflateEstimate(nl.tue.astar.impl.memefficient.StorageAwareDelegate<H,T> delegate, H head, java.io.InputStream stream) throws java.io.IOException
inflateEstimate
in interface nl.tue.astar.impl.memefficient.TailInflater<T extends AbstractNAryTreeLPTail>
java.io.IOException
public void skipHead(java.io.InputStream stream) throws java.io.IOException
java.io.IOException