public class ZDICTCoverParams
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]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 (1.0), 1.0 when all samples are used for both training and
testing.
struct ZDICT_cover_params_t {
unsigned k;
unsigned d;
unsigned steps;
unsigned nbThreads;
double splitPoint;
ZDICT_params_t zParams;
}| Modifier and Type | Class and Description |
|---|---|
static class |
ZDICTCoverParams.Buffer
An array of
ZDICTCoverParams structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
D
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 |
|---|
ZDICTCoverParams(java.nio.ByteBuffer container)
Creates a
ZDICTCoverParams instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static ZDICTCoverParams |
calloc()
Returns a new
ZDICTCoverParams instance allocated with memCalloc. |
static ZDICTCoverParams.Buffer |
calloc(int capacity)
Returns a new
ZDICTCoverParams.Buffer instance allocated with memCalloc. |
static ZDICTCoverParams |
callocStack()
Returns a new
ZDICTCoverParams instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZDICTCoverParams.Buffer |
callocStack(int capacity)
Returns a new
ZDICTCoverParams.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ZDICTCoverParams.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZDICTCoverParams.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ZDICTCoverParams |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZDICTCoverParams instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ZDICTCoverParams |
create()
Returns a new
ZDICTCoverParams instance allocated with BufferUtils. |
static ZDICTCoverParams.Buffer |
create(int capacity)
Returns a new
ZDICTCoverParams.Buffer instance allocated with BufferUtils. |
static ZDICTCoverParams |
create(long address)
Returns a new
ZDICTCoverParams instance for the specified memory address. |
static ZDICTCoverParams.Buffer |
create(long address,
int capacity)
Create a
ZDICTCoverParams.Buffer instance at the specified memory. |
static ZDICTCoverParams |
createSafe(long address)
|
static ZDICTCoverParams.Buffer |
createSafe(long address,
int capacity)
|
int |
d()
Returns the value of the
d field. |
ZDICTCoverParams |
d(int value)
Sets the specified value to the
d field. |
int |
k()
Returns the value of the
k field. |
ZDICTCoverParams |
k(int value)
Sets the specified value to the
k field. |
static ZDICTCoverParams |
malloc()
Returns a new
ZDICTCoverParams instance allocated with memAlloc. |
static ZDICTCoverParams.Buffer |
malloc(int capacity)
Returns a new
ZDICTCoverParams.Buffer instance allocated with memAlloc. |
static ZDICTCoverParams |
mallocStack()
Returns a new
ZDICTCoverParams instance allocated on the thread-local MemoryStack. |
static ZDICTCoverParams.Buffer |
mallocStack(int capacity)
Returns a new
ZDICTCoverParams.Buffer instance allocated on the thread-local MemoryStack. |
static ZDICTCoverParams.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ZDICTCoverParams.Buffer instance allocated on the specified MemoryStack. |
static ZDICTCoverParams |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ZDICTCoverParams instance allocated on the specified MemoryStack. |
int |
nbThreads()
Returns the value of the
nbThreads field. |
ZDICTCoverParams |
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 |
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. |
ZDICTCoverParams |
set(int k,
int d,
int steps,
int nbThreads,
double splitPoint,
ZDICTParams zParams)
Initializes this struct with the specified values.
|
ZDICTCoverParams |
set(ZDICTCoverParams src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
double |
splitPoint()
Returns the value of the
splitPoint field. |
ZDICTCoverParams |
splitPoint(double value)
Sets the specified value to the
splitPoint field. |
int |
steps()
Returns the value of the
steps field. |
ZDICTCoverParams |
steps(int value)
Sets the specified value to the
steps field. |
ZDICTParams |
zParams()
Returns a
ZDICTParams view of the zParams field. |
ZDICTCoverParams |
zParams(java.util.function.Consumer<ZDICTParams> consumer)
Passes the
zParams field to the specified Consumer. |
ZDICTCoverParams |
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 STEPS
public static final int NBTHREADS
public static final int SPLITPOINT
public static final int ZPARAMS
public ZDICTCoverParams(java.nio.ByteBuffer container)
ZDICTCoverParams 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 steps()
steps field.public int nbThreads()
nbThreads field.public double splitPoint()
splitPoint field.public ZDICTParams zParams()
ZDICTParams view of the zParams field.public ZDICTCoverParams k(int value)
k field.public ZDICTCoverParams d(int value)
d field.public ZDICTCoverParams steps(int value)
steps field.public ZDICTCoverParams nbThreads(int value)
nbThreads field.public ZDICTCoverParams splitPoint(double value)
splitPoint field.public ZDICTCoverParams zParams(ZDICTParams value)
ZDICTParams to the zParams field.public ZDICTCoverParams zParams(java.util.function.Consumer<ZDICTParams> consumer)
zParams field to the specified Consumer.public ZDICTCoverParams set(int k, int d, int steps, int nbThreads, double splitPoint, ZDICTParams zParams)
public ZDICTCoverParams set(ZDICTCoverParams src)
src - the source structpublic static ZDICTCoverParams malloc()
ZDICTCoverParams instance allocated with memAlloc. The instance must be explicitly freed.public static ZDICTCoverParams calloc()
ZDICTCoverParams instance allocated with memCalloc. The instance must be explicitly freed.public static ZDICTCoverParams create()
ZDICTCoverParams instance allocated with BufferUtils.public static ZDICTCoverParams create(long address)
ZDICTCoverParams instance for the specified memory address.@Nullable public static ZDICTCoverParams createSafe(long address)
public static ZDICTCoverParams.Buffer malloc(int capacity)
ZDICTCoverParams.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZDICTCoverParams.Buffer calloc(int capacity)
ZDICTCoverParams.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ZDICTCoverParams.Buffer create(int capacity)
ZDICTCoverParams.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static ZDICTCoverParams.Buffer create(long address, int capacity)
ZDICTCoverParams.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static ZDICTCoverParams.Buffer createSafe(long address, int capacity)
public static ZDICTCoverParams mallocStack()
ZDICTCoverParams instance allocated on the thread-local MemoryStack.public static ZDICTCoverParams callocStack()
ZDICTCoverParams instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static ZDICTCoverParams mallocStack(org.lwjgl.system.MemoryStack stack)
ZDICTCoverParams instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static ZDICTCoverParams callocStack(org.lwjgl.system.MemoryStack stack)
ZDICTCoverParams instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static ZDICTCoverParams.Buffer mallocStack(int capacity)
ZDICTCoverParams.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static ZDICTCoverParams.Buffer callocStack(int capacity)
ZDICTCoverParams.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static ZDICTCoverParams.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZDICTCoverParams.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static ZDICTCoverParams.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ZDICTCoverParams.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 nsteps(long struct)
steps().public static int nnbThreads(long struct)
nbThreads().public static double nsplitPoint(long struct)
splitPoint().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 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 nzParams(long struct,
ZDICTParams value)
zParams.Copyright LWJGL. All Rights Reserved. License terms.