Top Fields Constructors Methods
com.github.luben.zstd

public Class ZstdDictTrainer

extends Object
Class Inheritance
Imports
java.nio.ByteBuffer, java.util.ArrayList, .List

Field Summary

Modifier and TypeField and Description
private final int
private final int
private long
private final List<Integer>
private final ByteBuffer

Constructor Summary

AccessConstructor and Description
public
ZstdDictTrainer(int sampleSize, int dictSize)

Method Summary

Modifier and TypeMethod and Description
public synchronized boolean
addSample(byte[] sample)

private int[]
public byte[]
public byte[]
trainSamples(boolean legacy)

public ByteBuffer
public synchronized ByteBuffer
trainSamplesDirect(boolean legacy)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allocatedSizeback to summary
private final int allocatedSize
dictSizeback to summary
private final int dictSize
filledSizeback to summary
private long filledSize
sampleSizesback to summary
private final List<Integer> sampleSizes
trainingSamplesback to summary
private final ByteBuffer trainingSamples

Constructor Detail

ZstdDictTrainerback to summary
public ZstdDictTrainer(int sampleSize, int dictSize)

Method Detail

addSampleback to summary
public synchronized boolean addSample(byte[] sample)
copyToIntArrayback to summary
private int[] copyToIntArray(List<Integer> list)
trainSamplesback to summary
public byte[] trainSamples() throws ZstdException
trainSamplesback to summary
public byte[] trainSamples(boolean legacy) throws ZstdException
trainSamplesDirectback to summary
public ByteBuffer trainSamplesDirect() throws ZstdException
trainSamplesDirectback to summary
public synchronized ByteBuffer trainSamplesDirect(boolean legacy) throws ZstdException