@Override public void encodeValueInto(Block block, int position, SliceOutput output) { output.writeBoolean(type.getBoolean(block, position)); }
@Override void readFirstField(Block block, int position, BooleanAndBlockPositionValueState state) { state.setFirst(firstType.getBoolean(block, position)); }
@Override public boolean getBoolean(int field) { return types.get(field).getBoolean(page.getBlock(field), position); }
@Override void readFirstField(Block block, int position, BooleanAndBlockPositionValueState state) { state.setFirst(firstType.getBoolean(block, position)); }
@Override public boolean getBoolean(int field) { return types.get(field).getBoolean(page.getBlock(field), position); }
@Override public boolean getBoolean(int field) { checkState(position >= 0, "Not yet advanced"); checkState(position < page.getPositionCount(), "Already finished"); Type type = types.get(field); return type.getBoolean(page.getBlock(field), position); }
@Override public boolean getBoolean(int field) { checkState(position >= 0, "Not yet advanced"); checkState(position < page.getPositionCount(), "Already finished"); Type type = types.get(field); return type.getBoolean(page.getBlock(field), position); }
private void encodeValue(Block block, int position, SliceOutput output) { if (type.getBoolean(block, position)) { output.writeBytes(TRUE); } else { output.writeBytes(FALSE); } }
@UsedByGeneratedCode public static Boolean booleanSubscript(Type elementType, Block array, long index) { checkIndex(array, index); int position = toIntExact(index - 1); if (array.isNull(position)) { return null; } return elementType.getBoolean(array, position); }
@UsedByGeneratedCode public static Boolean booleanSubscript(Type elementType, Block array, long index) { checkIndex(array, index); int position = toIntExact(index - 1); if (array.isNull(position)) { return null; } return elementType.getBoolean(array, position); }
public static void input(Type type, NullableBooleanState state, Block block, int position) { if (!state.isNull()) { return; } state.setNull(false); state.setBoolean(type.getBoolean(block, position)); }
public boolean getBoolean(int channel, int position) { long pageAddress = valueAddresses.getLong(position); Block block = channels[channel].get(decodeSliceIndex(pageAddress)); int blockPosition = decodePosition(pageAddress); return types.get(channel).getBoolean(block, blockPosition); }
@Override public void addBlock(Type type, Block block) { for (int position = 0; position < block.getPositionCount(); position++) { if (!block.isNull(position)) { addValue(type.getBoolean(block, position)); } } }
@Override public void addBlock(Type type, Block block) { for (int position = 0; position < block.getPositionCount(); position++) { if (!block.isNull(position)) { addValue(type.getBoolean(block, position)); } } }
public boolean getBoolean(int channel, int position) { long pageAddress = valueAddresses.getLong(position); Block block = channels[channel].get(decodeSliceIndex(pageAddress)); int blockPosition = decodePosition(pageAddress); return types.get(channel).getBoolean(block, blockPosition); }
public static void input(Type type, NullableBooleanState state, Block block, int position) { if (!state.isNull()) { return; } state.setNull(false); state.setBoolean(type.getBoolean(block, position)); }
@Override public void encodeColumn(Block block, SliceOutput output, EncodeOutput encodeOutput) { for (int position = 0; position < block.getPositionCount(); position++) { if (!block.isNull(position)) { output.writeBoolean(type.getBoolean(block, position)); } encodeOutput.closeEntry(); } }
@TypeParameter("E") @SqlNullable @SqlType("E") public static Boolean booleanElementAt(@TypeParameter("E") Type elementType, @SqlType("array(E)") Block array, @SqlType("bigint") long index) { int position = checkedIndexToBlockPosition(array, index); if (position == -1) { return null; } if (array.isNull(position)) { return null; } return elementType.getBoolean(array, position); }
@TypeParameter("E") @SqlNullable @SqlType("E") public static Boolean speciailizedBoolean(@TypeParameter("E") Type type, @BlockPosition @SqlType(value = "E", nativeContainerType = boolean.class) Block block, @BlockIndex int position) { hitBlockPositionBoolean.set(true); return type.getBoolean(block, position); }
@TypeParameter("E") @SqlNullable @SqlType("E") public static Boolean speciailizedBoolean(@TypeParameter("E") Type type, @BlockPosition @SqlType(value = "E", nativeContainerType = boolean.class) Block block, @BlockIndex int position) { hitBlockPositionBoolean.set(true); return type.getBoolean(block, position); }