本文整理了Java中io.prestosql.spi.block.Block.getSliceLength()
方法的一些代码示例,展示了Block.getSliceLength()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Block.getSliceLength()
方法的具体详情如下:
包路径:io.prestosql.spi.block.Block
类名称:Block
方法名:getSliceLength
[英]Gets the length of the value at the position. This method must be implemented if @{code getSlice} is implemented.
[中]获取该位置处的值的长度。如果实现了@{code getSlice},则必须实现此方法。
代码示例来源:origin: prestosql/presto
@Override
public long hash(Block block, int position)
{
return block.hash(position, 0, block.getSliceLength(position));
}
代码示例来源:origin: prestosql/presto
@Override
public Slice getSlice(Block block, int position)
{
return block.getSlice(position, 0, block.getSliceLength(position));
}
代码示例来源:origin: prestosql/presto
@Override
public long hash(Block block, int position)
{
return block.hash(position, 0, block.getSliceLength(position));
}
代码示例来源:origin: io.prestosql/presto-main
@Override
public Slice getSlice(Block block, int position)
{
return block.getSlice(position, 0, block.getSliceLength(position));
}
代码示例来源:origin: io.prestosql/presto-main
@Override
public Slice getSlice(Block block, int position)
{
return block.getSlice(position, 0, block.getSliceLength(position));
}
代码示例来源:origin: prestosql/presto
@Override
public Slice getSlice(Block block, int position)
{
return block.getSlice(position, 0, block.getSliceLength(position));
}
代码示例来源:origin: prestosql/presto
@Override
public Slice getSlice(Block block, int position)
{
return block.getSlice(position, 0, block.getSliceLength(position));
}
代码示例来源:origin: prestosql/presto
@Override
public Slice getSlice(Block block, int position)
{
return block.getSlice(position, 0, block.getSliceLength(position));
}
代码示例来源:origin: prestosql/presto
@Override
public Slice getSlice(Block block, int position)
{
return block.getSlice(position, 0, block.getSliceLength(position));
}
代码示例来源:origin: io.prestosql/presto-main
@Override
public long hash(Block block, int position)
{
return block.hash(position, 0, block.getSliceLength(position));
}
代码示例来源:origin: prestosql/presto
@Override
public boolean equalTo(Block leftBlock, int leftPosition, Block rightBlock, int rightPosition)
{
Slice leftValue = leftBlock.getSlice(leftPosition, 0, leftBlock.getSliceLength(leftPosition));
Slice rightValue = rightBlock.getSlice(rightPosition, 0, rightBlock.getSliceLength(rightPosition));
return leftValue.equals(rightValue);
}
代码示例来源:origin: prestosql/presto
@Override
public int getSliceLength(int position)
{
position = getAbsolutePosition(position);
if (position % 2 == 0) {
return getRawKeyBlock().getSliceLength(position / 2);
}
else {
return getRawValueBlock().getSliceLength(position / 2);
}
}
代码示例来源:origin: prestosql/presto
@Override
public int getSliceLength(int position)
{
checkReadablePosition(position);
return getBlock().getSliceLength(position + start);
}
代码示例来源:origin: prestosql/presto
@SuppressWarnings("unused")
public static long blockVarcharHashCode(Block block, int position)
{
return block.hash(position, 0, block.getSliceLength(position));
}
}
代码示例来源:origin: prestosql/presto
@Override
public Object getObjectValue(ConnectorSession session, Block block, int position)
{
if (block.isNull(position)) {
return null;
}
return block.getSlice(position, 0, block.getSliceLength(position)).toStringUtf8();
}
代码示例来源:origin: io.prestosql/presto-main
@Override
public Object getObjectValue(ConnectorSession session, Block block, int position)
{
if (block.isNull(position)) {
return null;
}
return block.getSlice(position, 0, block.getSliceLength(position)).toStringUtf8();
}
代码示例来源:origin: io.prestosql/presto-main
@Override
public void deserialize(Block block, int index, SetDigestState state)
{
state.setDigest(SetDigest.newInstance(block.getSlice(index, 0, block.getSliceLength(index))));
}
}
代码示例来源:origin: io.prestosql/presto-main
@Override
public Object getObjectValue(ConnectorSession session, Block block, int position)
{
if (block.isNull(position)) {
return null;
}
return new SqlVarbinary(block.getSlice(position, 0, block.getSliceLength(position)).getBytes());
}
代码示例来源:origin: prestosql/presto
@Override
public Object getObjectValue(ConnectorSession session, Block block, int position)
{
if (block.isNull(position)) {
return null;
}
return new SqlVarbinary(block.getSlice(position, 0, block.getSliceLength(position)).getBytes());
}
代码示例来源:origin: prestosql/presto
@Override
public Object getObjectValue(ConnectorSession session, Block block, int position)
{
if (block.isNull(position)) {
return null;
}
return new SqlVarbinary(block.getSlice(position, 0, block.getSliceLength(position)).getBytes());
}
内容来源于网络,如有侵权,请联系作者删除!