@Override public Slice getSlice(Block block, int position) { return block.getSlice(position, 0, block.getSliceLength(position)); }
@Override public Slice getSlice(int position, int offset, int length) { assureLoaded(); return block.getSlice(position, offset, length); }
@Override public Slice getSlice(Block block, int position) { return block.getSlice(position, 0, block.getSliceLength(position)); }
@Override public Slice getSlice(int position, int offset, int length) { return dictionary.getSlice(getId(position), offset, length); }
@Override public Slice getSlice(Block block, int position) { return block.getSlice(position, 0, block.getSliceLength(position)); }
@Override public final Slice getSlice(Block block, int position) { return block.getSlice(position, 0, getFixedSize()); }
@Override public Slice getSlice(Block block, int position) { return block.getSlice(position, 0, block.getSliceLength(position)); }
@Override public Slice getSlice(int position, int offset, int length) { checkReadablePosition(position); return value.getSlice(0, offset, length); }
@Override public Slice getSlice(Block block, int position) { return block.getSlice(position, 0, block.getSliceLength(position)); }
@Override public Slice getSlice(Block block, int position) { return block.getSlice(position, 0, block.getSliceLength(position)); }
@Override public Slice getSlice(int position, int offset, int length) { checkFieldIndex(position); return getRawFieldBlock(position).getSlice(rowIndex, offset, length); }
@Override public int compareTo(Block leftBlock, int leftPosition, Block rightBlock, int rightPosition) { Slice leftSlice = leftBlock.getSlice(leftPosition, 0, leftBlock.getSliceLength(leftPosition)); Slice rightSlice = rightBlock.getSlice(rightPosition, 0, rightBlock.getSliceLength(rightPosition)); return compareChars(leftSlice, rightSlice); }
@Override public Slice getSlice(int position, int offset, int length) { checkReadablePosition(position); return getBlock().getSlice(position + start, offset, length); }
@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(); }
@Override public Object getObjectValue(ConnectorSession session, Block block, int position) { if (block.isNull(position)) { return null; } // TODO: There's no way to represent string value of a custom type return new SqlVarbinary(block.getSlice(position, 0, block.getSliceLength(position)).getBytes()); }
@Override public Object getObjectValue(ConnectorSession session, Block block, int position) { if (block.isNull(position)) { return null; } Slice slice = block.getSlice(position, 0, block.getSliceLength(position)); return deserialize(slice).asText(); } }
@Override public Object getObjectValue(ConnectorSession session, Block block, int position) { if (block.isNull(position)) { return null; } Slice slice = block.getSlice(position, 0, block.getSliceLength(position)); return deserialize(slice).asText(); } }
@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()); }
@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()); } }