同步操作将从 IvorySQL/IvorySQL 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/*-------------------------------------------------------------------------** sampling.h* definitions for sampling functions** Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group* Portions Copyright (c) 1994, Regents of the University of California** src/include/utils/sampling.h**-------------------------------------------------------------------------*/#ifndef SAMPLING_H#define SAMPLING_H#include "common/pg_prng.h"#include "storage/block.h" /* for typedef BlockNumber *//* Random generator for sampling code */extern void sampler_random_init_state(uint32 seed,pg_prng_state *randstate);extern double sampler_random_fract(pg_prng_state *randstate);/* Block sampling methods *//* Data structure for Algorithm S from Knuth 3.4.2 */typedef struct{BlockNumber N; /* number of blocks, known in advance */int n; /* desired sample size */BlockNumber t; /* current block number */int m; /* blocks selected so far */pg_prng_state randstate; /* random generator state */} BlockSamplerData;typedef BlockSamplerData *BlockSampler;extern BlockNumber BlockSampler_Init(BlockSampler bs, BlockNumber nblocks,int samplesize, uint32 randseed);extern bool BlockSampler_HasMore(BlockSampler bs);extern BlockNumber BlockSampler_Next(BlockSampler bs);/* Reservoir sampling methods */typedef struct{double W;pg_prng_state randstate; /* random generator state */} ReservoirStateData;typedef ReservoirStateData *ReservoirState;extern void reservoir_init_selection_state(ReservoirState rs, int n);extern double reservoir_get_next_S(ReservoirState rs, double t, int n);/* Old API, still in use by assorted FDWs *//* For backwards compatibility, these declarations are duplicated in vacuum.h */extern double anl_random_fract(void);extern double anl_init_selection_state(int n);extern double anl_get_next_S(double t, int n, double *stateptr);#endif /* SAMPLING_H */
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。