public static Boolean getBooleanConstant(ILogicalExpression expr) { final IAObject iaObject = getConstantIaObject(expr, ATypeTag.BOOLEAN); return iaObject != null ? ((ABoolean) iaObject).getBoolean() : null; }
protected void setBoolean(IPointable result, boolean value) throws HyracksDataException { BOOLEAN_SERDE.serialize(ABoolean.valueOf(value), out); result.set(resultStorage); }
@Override public void serialize(ABoolean instance, DataOutput out) throws HyracksDataException { BooleanSerializerDeserializer.write(instance.getBoolean(), out); }
public static ConstantExpression createBooleanConstant(boolean b) { return new ConstantExpression(new AsterixConstantValue(ABoolean.valueOf(b))); }
public static String aObjToString(IAObject aObj) throws AlgebricksException { switch (aObj.getType().getTypeTag()) { case DOUBLE: return Double.toString(((ADouble) aObj).getDoubleValue()); case BIGINT: return Long.toString(((AInt64) aObj).getLongValue()); case ARRAY: return aOrderedListToString((AOrderedList) aObj); case STRING: return ((AString) aObj).getStringValue(); case BOOLEAN: return ((ABoolean) aObj).getBoolean().toString(); default: throw new AlgebricksException("value of type " + aObj.getType() + " is not supported yet"); } }
@Override public void processResult(AMutableInt32 intValue, IPointable result) throws HyracksDataException { storage.reset(); booleanSerde.serialize(ABoolean.valueOf(intValue.getIntegerValue() != -1), storage.getDataOutput()); result.set(storage); } }
Boolean isEnforcingKeys = false; if (isEnforcedFieldPos > 0) { isEnforcingKeys = ((ABoolean) rec.getValueByPos(isEnforcedFieldPos)).getBoolean(); ((ABoolean) rec.getValueByPos(MetadataRecordTypes.INDEX_ARECORD_ISPRIMARY_FIELD_INDEX)).getBoolean(); int pendingOp = ((AInt32) rec.getValueByPos(MetadataRecordTypes.INDEX_ARECORD_PENDINGOP_FIELD_INDEX)).getIntegerValue();
.getStringValue()); boolean isAnonymous = ((ABoolean) derivedTypeRecord .getValueByPos(MetadataRecordTypes.DERIVEDTYPE_ARECORD_ISANONYMOUS_FIELD_INDEX)).getBoolean(); switch (tag) { case RECORD: { .getValueByPos(MetadataRecordTypes.DERIVEDTYPE_ARECORD_RECORD_FIELD_INDEX); boolean isOpen = ((ABoolean) recordType .getValueByPos(MetadataRecordTypes.RECORDTYPE_ARECORD_ISOPEN_FIELD_INDEX)).getBoolean() .booleanValue(); int numberOfFields = ((AOrderedList) recordType .getStringValue(); boolean isNullable = ((ABoolean) field .getValueByPos(MetadataRecordTypes.FIELD_ARECORD_ISNULLABLE_FIELD_INDEX)).getBoolean() .booleanValue(); fieldTypes[fieldId] = BuiltinTypeMap.getTypeFromTypeName(metadataNode, txnId, dataverseName,