Package com.github.luben.zstd
Class ZstdDictTrainer
- java.lang.Object
-
- com.github.luben.zstd.ZstdDictTrainer
-
public class ZstdDictTrainer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ZstdDictTrainer(int sampleSize, int dictSize)ZstdDictTrainer(int sampleSize, int dictSize, int level)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddSample(byte @NotNull [] sample)byte @NotNull []trainSamples()byte @NotNull []trainSamples(boolean legacy)@NotNull java.nio.ByteBuffertrainSamplesDirect()@NotNull java.nio.ByteBuffertrainSamplesDirect(boolean legacy)
-
-
-
Method Detail
-
addSample
public boolean addSample(byte @NotNull [] sample)
-
trainSamplesDirect
@NotNull public @NotNull java.nio.ByteBuffer trainSamplesDirect() throws ZstdException- Throws:
ZstdException
-
trainSamplesDirect
@NotNull public @NotNull java.nio.ByteBuffer trainSamplesDirect(boolean legacy) throws ZstdException- Throws:
ZstdException
-
trainSamples
public byte @NotNull [] trainSamples() throws ZstdException- Throws:
ZstdException
-
trainSamples
public byte @NotNull [] trainSamples(boolean legacy) throws ZstdException- Throws:
ZstdException
-
-