public boolean appliesTo(Row row) throws InvalidRequestException { UserType userType = (UserType) column.type; int fieldPosition = userType.fieldPosition(field); assert fieldPosition >= 0; ByteBuffer cellValue; if (column.type.isMultiCell()) { Cell cell = getCell(row, column, userType.cellPathForField(field)); cellValue = cell == null ? null : cell.value(); } else { Cell cell = getCell(row, column); cellValue = cell == null ? null : userType.split(getCell(row, column).value())[fieldPosition]; } AbstractType<?> valueType = userType.fieldType(fieldPosition); for (ByteBuffer value : inValues) { if (compareWithOperator(Operator.EQ, valueType, value, cellValue)) return true; } return false; } }
public boolean appliesTo(Row row) throws InvalidRequestException { UserType userType = (UserType) column.type; int fieldPosition = userType.fieldPosition(field); assert fieldPosition >= 0; ByteBuffer cellValue; if (column.type.isMultiCell()) { Cell cell = getCell(row, column, userType.cellPathForField(field)); cellValue = cell == null ? null : cell.value(); } else { Cell cell = getCell(row, column); cellValue = cell == null ? null : userType.split(getCell(row, column).value())[fieldPosition]; } AbstractType<?> valueType = userType.fieldType(fieldPosition); for (ByteBuffer value : inValues) { if (compareWithOperator(Operator.EQ, valueType, value, cellValue)) return true; } return false; } }
public boolean appliesTo(Row row) throws InvalidRequestException { UserType userType = (UserType) column.type; int fieldPosition = userType.fieldPosition(field); assert fieldPosition >= 0; ByteBuffer cellValue; if (column.type.isMultiCell()) { Cell cell = getCell(row, column, userType.cellPathForField(field)); cellValue = cell == null ? null : cell.value(); } else { Cell cell = getCell(row, column); cellValue = cell == null ? null : userType.split(getCell(row, column).value())[fieldPosition]; } AbstractType<?> valueType = userType.fieldType(fieldPosition); for (ByteBuffer value : inValues) { if (compareWithOperator(Operator.EQ, valueType, value, cellValue)) return true; } return false; } }