@Override public boolean isValueCompatibleWith(AbstractType<?> otherType) { return this.baseType.isValueCompatibleWith(otherType); }
@Override public boolean isValueCompatibleWith(AbstractType<?> otherType) { return this.baseType.isValueCompatibleWith(otherType); }
@Override public boolean isValueCompatibleWith(AbstractType<?> otherType) { return this.baseType.isValueCompatibleWith(otherType); }
@Override public boolean isValueCompatibleWith(AbstractType<?> otherType) { return this.baseType.isValueCompatibleWith(otherType); }
@Override public boolean isValueCompatibleWith(AbstractType<?> otherType) { return this.baseType.isValueCompatibleWith(otherType); }
@Override public boolean isValueCompatibleWithFrozen(CollectionType<?> previous) { assert !isMultiCell; MapType tprev = (MapType) previous; return keys.isCompatibleWith(tprev.keys) && values.isValueCompatibleWith(tprev.values); }
@Override public boolean isValueCompatibleWithFrozen(CollectionType<?> previous) { assert !isMultiCell; MapType tprev = (MapType) previous; return keys.isCompatibleWith(tprev.keys) && values.isValueCompatibleWith(tprev.values); }
@Override public boolean isValueCompatibleWithFrozen(CollectionType<?> previous) { assert !isMultiCell; MapType tprev = (MapType) previous; return keys.isCompatibleWith(tprev.keys) && values.isValueCompatibleWith(tprev.values); }
@Override public boolean isValueCompatibleWithFrozen(CollectionType<?> previous) { assert !isMultiCell; MapType tprev = (MapType) previous; return keys.isCompatibleWith(tprev.keys) && values.isValueCompatibleWith(tprev.values); }
public boolean isAssignableTo(String keyspace, ColumnSpecification receiver) { AbstractType<?> returnType = Functions.getReturnType(functionName, receiver.ksName, receiver.cfName); // Note: if returnType == null, it means the function doesn't exist. We may get this if an undefined function // is used as argument of another, existing, function. In that case, we return true here because we'll catch // the fact that the method is undefined latter anyway and with a more helpful error message that if we were // to return false here. return returnType == null || receiver.type.isValueCompatibleWith(returnType); }
@Override public boolean isValueCompatibleWithFrozen(CollectionType<?> previous) { assert !isMultiCell; MapType tprev = (MapType) previous; return keys.isCompatibleWith(tprev.keys) && values.isValueCompatibleWith(tprev.values); }
public boolean isAssignableTo(String keyspace, ColumnSpecification receiver) { return receiver.type.isValueCompatibleWith(getType()); }
public AssignmentTestable.TestResult testAssignment(String keyspace, ColumnSpecification receiver) { AbstractType<?> castedType = type.prepare(keyspace).getType(); if (receiver.type.equals(castedType)) return AssignmentTestable.TestResult.EXACT_MATCH; else if (receiver.type.isValueCompatibleWith(castedType)) return AssignmentTestable.TestResult.WEAKLY_ASSIGNABLE; else return AssignmentTestable.TestResult.NOT_ASSIGNABLE; }
public AssignmentTestable.TestResult testAssignment(String keyspace, ColumnSpecification receiver) { AbstractType<?> castedType = type.prepare(keyspace).getType(); if (receiver.type.equals(castedType)) return AssignmentTestable.TestResult.EXACT_MATCH; else if (receiver.type.isValueCompatibleWith(castedType)) return AssignmentTestable.TestResult.WEAKLY_ASSIGNABLE; else return AssignmentTestable.TestResult.NOT_ASSIGNABLE; }
public boolean isAssignableTo(String keyspace, ColumnSpecification receiver) throws InvalidRequestException { try { return receiver.type.isValueCompatibleWith(type.prepare(keyspace).getType()); } catch (InvalidRequestException e) { throw new AssertionError(); } }
public AssignmentTestable.TestResult testAssignment(String keyspace, ColumnSpecification receiver) { AbstractType<?> castedType = type.prepare(keyspace).getType(); if (receiver.type.equals(castedType)) return AssignmentTestable.TestResult.EXACT_MATCH; else if (receiver.type.isValueCompatibleWith(castedType)) return AssignmentTestable.TestResult.WEAKLY_ASSIGNABLE; else return AssignmentTestable.TestResult.NOT_ASSIGNABLE; }
public final AssignmentTestable.TestResult testAssignment(String keyspace, ColumnSpecification receiver) { // We should ignore the fact that the receiver type is frozen in our comparison as functions do not support // frozen types for return type AbstractType<?> returnType = returnType(); if (receiver.type.isFreezable() && !receiver.type.isMultiCell()) returnType = returnType.freeze(); if (receiver.type.equals(returnType)) return AssignmentTestable.TestResult.EXACT_MATCH; if (receiver.type.isValueCompatibleWith(returnType)) return AssignmentTestable.TestResult.WEAKLY_ASSIGNABLE; return AssignmentTestable.TestResult.NOT_ASSIGNABLE; }
public final AssignmentTestable.TestResult testAssignment(String keyspace, ColumnSpecification receiver) { // We should ignore the fact that the receiver type is frozen in our comparison as functions do not support // frozen types for return type AbstractType<?> returnType = returnType(); if (receiver.type.isFreezable() && !receiver.type.isMultiCell()) returnType = returnType.freeze(); if (receiver.type.equals(returnType)) return AssignmentTestable.TestResult.EXACT_MATCH; if (receiver.type.isValueCompatibleWith(returnType)) return AssignmentTestable.TestResult.WEAKLY_ASSIGNABLE; return AssignmentTestable.TestResult.NOT_ASSIGNABLE; }
public final AssignmentTestable.TestResult testAssignment(String keyspace, ColumnSpecification receiver) { // We should ignore the fact that the receiver type is frozen in our comparison as functions do not support // frozen types for return type AbstractType<?> returnType = returnType(); if (receiver.type.isFreezable() && !receiver.type.isMultiCell()) returnType = returnType.freeze(); if (receiver.type.equals(returnType)) return AssignmentTestable.TestResult.EXACT_MATCH; if (receiver.type.isValueCompatibleWith(returnType)) return AssignmentTestable.TestResult.WEAKLY_ASSIGNABLE; return AssignmentTestable.TestResult.NOT_ASSIGNABLE; }
public final AssignmentTestable.TestResult testAssignment(String keyspace, ColumnSpecification receiver) { // We should ignore the fact that the receiver type is frozen in our comparison as functions do not support // frozen types for return type AbstractType<?> returnType = returnType(); if (receiver.type.isFreezable() && !receiver.type.isMultiCell()) returnType = returnType.freeze(); if (receiver.type.equals(returnType)) return AssignmentTestable.TestResult.EXACT_MATCH; if (receiver.type.isValueCompatibleWith(returnType)) return AssignmentTestable.TestResult.WEAKLY_ASSIGNABLE; return AssignmentTestable.TestResult.NOT_ASSIGNABLE; }