本文整理了Java中com.facebook.presto.spi.block.Block.getEncoding()
方法的一些代码示例,展示了Block.getEncoding()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Block.getEncoding()
方法的具体详情如下:
包路径:com.facebook.presto.spi.block.Block
类名称:Block
方法名:getEncoding
[英]Get the encoding for this block.
[中]获取此块的编码。
代码示例来源:origin: uk.co.nichesolutions.presto/presto-main
@Override
public BlockEncoding getEncoding()
{
return block.getEncoding();
}
代码示例来源:origin: uk.co.nichesolutions.presto/presto-main
public static void writeBlock(SliceOutput output, Block block)
{
BlockEncoding encoding = block.getEncoding();
BlockEncodingManager.writeBlockEncodingInternal(output, encoding);
encoding.writeBlock(output, block);
}
}
代码示例来源:origin: uk.co.nichesolutions.presto/presto-main
public static void writeBlock(BlockEncodingSerde blockEncodingSerde, SliceOutput output, Block block)
{
BlockEncoding encoding = block.getEncoding();
blockEncodingSerde.writeBlockEncoding(output, encoding);
encoding.writeBlock(output, block);
}
代码示例来源:origin: uk.co.nichesolutions.presto/presto-main
private static Block copyBlock(Block block)
{
DynamicSliceOutput sliceOutput = new DynamicSliceOutput(1024);
BlockEncoding blockEncoding = block.getEncoding();
blockEncoding.writeBlock(sliceOutput, block);
return blockEncoding.readBlock(sliceOutput.slice().getInput());
}
内容来源于网络,如有侵权,请联系作者删除!