public class ZDICTFastCoverParams
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
k and d are the only required parameters. For others, value 0 means default.
k – segment size : constraint: 0 < k : Reasonable range [16, 2048+]d – dmer size : constraint: 0 < d <= k : Reasonable range [6, 16]f – log of size of frequency array : constraint: 0 < f <= 31 : 1 means default(20)steps – Number of steps : Only used for optimization : 0 means default (40) : Higher means more parameters checkednbThreads –
number of threads : constraint: 0 < nbThreads : 1 means single-threaded : Only used for optimization : Ignored if ZSTD_MULTITHREAD is
not defined.splitPoint –
percentage of samples used for training: Only used for optimization: the first nbSamples * splitPoint samples will be used to training, the
last nbSamples * (1 - splitPoint) samples will be used for testing, 0 means default (0.75), 1.0 when all samples are used for both training and
testing.accel – acceleration level: constraint: 0 < accel <= 10, higher means faster and less accurate, 0 means default(1)
struct ZDICT_fastCover_params_t {
unsigned k;
unsigned d;
unsigned f;
unsigned steps;
unsigned nbThreads;
double splitPoint;
unsigned accel;
ZDICT_params_t zParams;
}| Modifier and Type | Class and Description |
|---|---|
static class |
ZDICTFastCoverParams.Buffer
An array of
ZDICTFastCoverParams structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACCEL
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
D
The struct member offsets.
|
static int |
F
The struct member offsets.
|
static int |
K
The struct member offsets.
|
static int |
NBTHREADS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SPLITPOINT
The struct member offsets.
|
static int |
STEPS
The struct member offsets.
|
static int |
ZPARAMS
The struct member offsets.
|
| Constructor and Description |
|---|
ZDICTFastCoverParams(java.nio.ByteBuffer container)
Creates a
ZDICTFastCoverParams instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
accel()
Returns the value of the
accel field. |
ZDICTFastCoverParams |
accel(int value)
Sets the specified value to the
accel field. |
static ZDICTFastCoverParams |
calloc()
Returns a new
ZDICTFastCoverParams instance allocated with memCalloc. |
static ZDICTFastCoverParams.Buffer |
calloc(int capacity)
Returns a new
ZDICTFastCoverParams.Buffer instance allocated with memCalloc. |
static ZDICTFastCoverParams |
callocStack()
Returns a new
ZDICTFastCoverParams instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZDICTFastCoverParams.Buffer |
callocStack(int capacity)
Returns a new
ZDICTFastCoverParams.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZDICTFastCoverParams.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZDICTFastCoverParams.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ZDICTFastCoverParams |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZDICTFastCoverParams instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ZDICTFastCoverParams |
create()
Returns a new
ZDICTFastCoverParams instance allocated with BufferUtils. |
static ZDICTFastCoverParams.Buffer |
create(int capacity)
Returns a new
ZDICTFastCoverParams.Buffer instance allocated with BufferUtils. |
static ZDICTFastCoverParams |
create(long address)
Returns a new
ZDICTFastCoverParams instance for the specified memory address. |
static ZDICTFastCoverParams.Buffer |
create(long address,
int capacity)
Create a
ZDICTFastCoverParams.Buffer instance at the specified memory. |
static ZDICTFastCoverParams |
createSafe(long address)
|
static ZDICTFastCoverParams.Buffer |
createSafe(long address,
int capacity)
|
int |
d()
Returns the value of the
d field. |
ZDICTFastCoverParams |
d(int value)
Sets the specified value to the
d field. |
int |
f()
Returns the value of the
f field. |
ZDICTFastCoverParams |
f(int value)
Sets the specified value to the
f field. |
int |
k()
Returns the value of the
k field. |
ZDICTFastCoverParams |
k(int value)
Sets the specified value to the
k field. |
static ZDICTFastCoverParams |
malloc()
Returns a new
ZDICTFastCoverParams instance allocated with memAlloc. |
static ZDICTFastCoverParams.Buffer |
malloc(int capacity)
Returns a new
ZDICTFastCoverParams.Buffer instance allocated with memAlloc. |
static ZDICTFastCoverParams |
mallocStack()
Returns a new
ZDICTFastCoverParams instance allocated on the thread-local MemoryStack. |
static ZDICTFastCoverParams.Buffer |
mallocStack(int capacity)
Returns a new
ZDICTFastCoverParams.Buffer instance allocated on the thread-local MemoryStack. |
static ZDICTFastCoverParams.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZDICTFastCoverParams.Buffer instance allocated on the specified MemoryStack. |
static ZDICTFastCoverParams |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZDICTFastCoverParams instance allocated on the specified MemoryStack. |
static int |
naccel(long struct)
Unsafe version of
accel(). |
static void |
naccel(long struct,
int value)
Unsafe version of
accel. |
int |
nbThreads()
Returns the value of the
nbThreads field. |
ZDICTFastCoverParams |
nbThreads(int value)
Sets the specified value to the
nbThreads field. |
static int |
nd(long struct)
Unsafe version of
d(). |
static void |
nd(long struct,
int value)
Unsafe version of
d. |
static int |
nf(long struct)
Unsafe version of
f(). |
static void |
nf(long struct,
int value)
Unsafe version of
f. |
static int |
nk(long struct)
Unsafe version of
k(). |
static void |
nk(long struct,
int value)
Unsafe version of
k. |
static int |
nnbThreads(long struct)
Unsafe version of
nbThreads(). |
static void |
nnbThreads(long struct,
int value)
Unsafe version of
nbThreads. |
static double |
nsplitPoint(long struct)
Unsafe version of
splitPoint(). |
static void |
nsplitPoint(long struct,
double value)
Unsafe version of
splitPoint. |
static int |
nsteps(long struct)
Unsafe version of
steps(). |
static void |
nsteps(long struct,
int value)
Unsafe version of
steps. |
static ZDICTParams |
nzParams(long struct)
Unsafe version of
zParams(). |
static void |
nzParams(long struct,
ZDICTParams value)
Unsafe version of
zParams. |
ZDICTFastCoverParams |
set(int k,
int d,
int f,
int steps,
int nbThreads,
double splitPoint,
int accel,
ZDICTParams zParams)
Initializes this struct with the specified values.
|
ZDICTFastCoverParams |
set(ZDICTFastCoverParams src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
double |
splitPoint()
Returns the value of the
splitPoint field. |
ZDICTFastCoverParams |
splitPoint(double value)
Sets the specified value to the
splitPoint field. |
int |
steps()
Returns the value of the
steps field. |
ZDICTFastCoverParams |
steps(int value)
Sets the specified value to the
steps field. |
ZDICTParams |
zParams()
Returns a
ZDICTParams view of the zParams field. |
ZDICTFastCoverParams |
zParams(java.util.function.Consumer<ZDICTParams> consumer)
Passes the
zParams field to the specified Consumer. |
ZDICTFastCoverParams |
zParams(ZDICTParams value)
Copies the specified
ZDICTParams to the zParams field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int K
public static final int D
public static final int F
public static final int STEPS
public static final int NBTHREADS
public static final int SPLITPOINT
public static final int ACCEL
public static final int ZPARAMS
public ZDICTFastCoverParams(java.nio.ByteBuffer container)
ZDICTFastCoverParams instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int k()
k field.public int d()
d field.public int f()
f field.public int steps()
steps field.public int nbThreads()
nbThreads field.public double splitPoint()
splitPoint field.public int accel()
accel field.public ZDICTParams zParams()
ZDICTParams view of the zParams field.public ZDICTFastCoverParams k(int value)
k field.public ZDICTFastCoverParams d(int value)
d field.public ZDICTFastCoverParams f(int value)
f field.public ZDICTFastCoverParams steps(int value)
steps field.public ZDICTFastCoverParams nbThreads(int value)
nbThreads field.public ZDICTFastCoverParams splitPoint(double value)
splitPoint field.public ZDICTFastCoverParams accel(int value)
accel field.public ZDICTFastCoverParams zParams(ZDICTParams value)
ZDICTParams to the zParams field.public ZDICTFastCoverParams zParams(java.util.function.Consumer<ZDICTParams> consumer)
zParams field to the specified Consumer.public ZDICTFastCoverParams set(int k, int d, int f, int steps, int nbThreads, double splitPoint, int accel, ZDICTParams zParams)
public ZDICTFastCoverParams set(ZDICTFastCoverParams src)
src - the source structpublic static ZDICTFastCoverParams malloc()
ZDICTFastCoverParams instance allocated with memAlloc. The instance must be explicitly freed.public static ZDICTFastCoverParams calloc()
ZDICTFastCoverParams instance allocated with memCalloc. The instance must be explicitly freed.public static ZDICTFastCoverParams create()
ZDICTFastCoverParams instance allocated with BufferUtils.public static ZDICTFastCoverParams create(long address)
ZDICTFastCoverParams instance for the specified memory address.@Nullable public static ZDICTFastCoverParams createSafe(long address)
public static ZDICTFastCoverParams.Buffer malloc(int capacity)
ZDICTFastCoverParams.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZDICTFastCoverParams.Buffer calloc(int capacity)
ZDICTFastCoverParams.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZDICTFastCoverParams.Buffer create(int capacity)
ZDICTFastCoverParams.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static ZDICTFastCoverParams.Buffer create(long address, int capacity)
ZDICTFastCoverParams.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static ZDICTFastCoverParams.Buffer createSafe(long address, int capacity)
public static ZDICTFastCoverParams mallocStack()
ZDICTFastCoverParams instance allocated on the thread-local MemoryStack.public static ZDICTFastCoverParams callocStack()
ZDICTFastCoverParams instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static ZDICTFastCoverParams mallocStack(org.lwjgl.system.MemoryStack stack)
ZDICTFastCoverParams instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static ZDICTFastCoverParams callocStack(org.lwjgl.system.MemoryStack stack)
ZDICTFastCoverParams instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static ZDICTFastCoverParams.Buffer mallocStack(int capacity)
ZDICTFastCoverParams.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static ZDICTFastCoverParams.Buffer callocStack(int capacity)
ZDICTFastCoverParams.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static ZDICTFastCoverParams.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZDICTFastCoverParams.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static ZDICTFastCoverParams.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZDICTFastCoverParams.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nk(long struct)
k().public static int nd(long struct)
d().public static int nf(long struct)
f().public static int nsteps(long struct)
steps().public static int nnbThreads(long struct)
nbThreads().public static double nsplitPoint(long struct)
splitPoint().public static int naccel(long struct)
accel().public static ZDICTParams nzParams(long struct)
zParams().public static void nk(long struct,
int value)
k.public static void nd(long struct,
int value)
d.public static void nf(long struct,
int value)
f.public static void nsteps(long struct,
int value)
steps.public static void nnbThreads(long struct,
int value)
nbThreads.public static void nsplitPoint(long struct,
double value)
splitPoint.public static void naccel(long struct,
int value)
accel.public static void nzParams(long struct,
ZDICTParams value)
zParams.Copyright LWJGL. All Rights Reserved. License terms.