return IterableTransformer.on(input).transform(new Function<Page, Page>()
{
@Override
public Page apply(Page page)
{
BlockBuilder builder = BIGINT.createBlockBuilder(new BlockBuilderStatus());
for (int i = 0; i < page.getPositionCount(); i++) {
builder.appendLong(sampleWeight);
}
Block[] blocks = new Block[page.getChannelCount() + 1];
System.arraycopy(page.getBlocks(), 0, blocks, 0, page.getChannelCount());