com.facebook.presto.spi.block.Block.getEncoding()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(114)

本文整理了Java中com.facebook.presto.spi.block.Block.getEncoding()方法的一些代码示例,展示了Block.getEncoding()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Block.getEncoding()方法的具体详情如下:
包路径:com.facebook.presto.spi.block.Block
类名称:Block
方法名:getEncoding

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());
}

相关文章