|
Oracle® OLAP Java API Reference 12c Release 1 (12.1) E17708-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.olapi.data.source.Source
oracle.olapi.data.source.BooleanSource
public final class BooleanSource
A Source whose elements have boolean values. A BooleanSource object has an OLAP Java API data type of Boolean. This class implements some Source methods so that they use boolean values, such as appendValue and eq, and implements other boolean operations such as the and, or, and forAny methods.
| Field Summary |
|---|
| Fields inherited from class oracle.olapi.data.source.Source |
|---|
COMPARISON_RULE_ASCENDING, COMPARISON_RULE_ASCENDING_NULLS_FIRST, COMPARISON_RULE_ASCENDING_NULLS_LAST, COMPARISON_RULE_DESCENDING, COMPARISON_RULE_DESCENDING_NULLS_FIRST, COMPARISON_RULE_DESCENDING_NULLS_LAST, COMPARISON_RULE_REMOVE, COMPARISON_RULE_SELECT |
| Method Summary | |
|---|---|
BooleanSource |
and(boolean rhs)Performs a logical AND operation between the values of the elements of this BooleanSource and the specified boolean value. |
BooleanSource |
and(BooleanSource rhs)Performs a logical AND operation between the values of the elements of this BooleanSource and the values of the corresponding elements of the specified BooleanSource. |
BooleanSource |
appendValue(boolean appendValue)Appends an element with the specified boolean value to this BooleanSource. |
BooleanSource |
appendValues(boolean[] appendValues)Appends elements with the specified boolean values to this BooleanSource. |
BooleanSource |
eq(boolean rhs)Compares the value of each element of this BooleanSource to the specified boolean value and determines if the values are equal. |
BooleanSource |
forAll()Indicates whether the values of all of the elements of this BooleanSource are true. |
BooleanSource |
forAll(boolean noValueAsFalse)Indicates whether the values of all of the elements of this BooleanSource are true. |
BooleanSource |
forAny()Indicates whether the value of any of the elements of this BooleanSource is true. |
BooleanSource |
forAny(boolean noValueAsFalse)Indicates whether the value of any of the elements of this BooleanSource is true. |
BooleanSource |
forNone()Indicates whether the value of none of the elements of this BooleanSource is true. |
BooleanSource |
forNone(boolean noValueAsFalse)Indicates whether the value of none of the elements of this BooleanSource is true. |
BooleanSource |
ge(boolean rhs)Compares the value of each element of this BooleanSource to the specified boolean value, and determines whether it is a greater or equal value. |
Source |
getDataType()Gets the fundamental Source that represents the OLAP Java API data type of this BooleanSource, which is Boolean. |
BooleanSource |
gt(boolean rhs)Compares the value of each element of this BooleanSource to the specified boolean value, and determines whether it is a greater value. |
DateSource |
implies(java.util.Date ifTrue, java.util.Date ifFalse)Produces a DateSource that has an element with the value of ifTrue for each element of this BooleanSource that has a value of true and an element with the value of ifFalse for each element of this BooleanSource that has a value of false. |
DateSource |
implies(DateSource ifTrue, DateSource ifFalse)Produces a DateSource that has an element with the value of ifTrue for each element of this BooleanSource that has a value of true and an element with the value of ifFalse for each element of this BooleanSource that has a value of false. |
NumberSource |
implies(double ifTrue, double ifFalse)Produces a NumberSource that has an element with the value of ifTrue for each element of this BooleanSource that has a value of true and an element with the value of ifFalse for each element of this BooleanSource that has a value of false. |
NumberSource |
implies(int ifTrue, int ifFalse)Produces a NumberSource that has an element with the value of ifTrue for each element of this BooleanSource that has a value of true and an element with the value of ifFalse for each element of this BooleanSource that has a value of false. |
NumberSource |
implies(NumberSource ifTrue, NumberSource ifFalse)Produces a NumberSource that has an element with the value of ifTrue for each element of this BooleanSource that has a value of true and an element with the value of ifFalse for each element of this BooleanSource that has a value of false. |
StringSource |
implies(StringSource ifTrue, StringSource ifFalse)Produces a StringSource that has an element with the value of ifTrue for each element of this BooleanSource that has a value of true and an element with the value of ifFalse for each element of this BooleanSource that has a value of false. |
StringSource |
implies(java.lang.String ifTrue, java.lang.String ifFalse)Produces a StringSource that has an element with the value of ifTrue for each element of this BooleanSource that has a value of true and an element with the value of ifFalse for each element of this BooleanSource that has a value of false. |
BooleanSource |
le(boolean rhs)Compares the value of each element of this BooleanSource to the specified boolean value, and determines whether it is a lesser or equal value. |
BooleanSource |
lt(boolean rhs)Compares the value of each element of this BooleanSource to the specified boolean value, and determines whether it is a lesser value. |
BooleanSource |
ne(boolean rhs)Compares the value of each element of this BooleanSource to the specified boolean value, and determines whether it is not equal to the value. |
BooleanSource |
not()Performs a logical NOT operation on the values of the elements of this BooleanSource, which negates the values so that if an element of this BooleanSource has a value of true, then the corresponding element of the resulting BooleanSource has a value of false. |
BooleanSource |
or(boolean rhs)Performs a logical OR operation between the values of the elements of this BooleanSource and the specified boolean value. |
BooleanSource |
or(BooleanSource rhs)Performs a logical OR operation between the values of the elements of this BooleanSource and the values of the corresponding elements of the specified BooleanSource. |
NumberSource |
positionOfValue(boolean value)Identifies the positions of elements in this BooleanSource that have the specified boolean value. |
NumberSource |
positionOfValues(boolean[] values)Identifies the positions of elements in this BooleanSource that have the specified boolean values. |
BooleanSource |
removeValue(boolean value)Removes the elements of this BooleanSource that have the specified boolean value. |
BooleanSource |
removeValues(boolean[] values)Removes the elements of this BooleanSource that have the specified boolean values. |
BooleanSource |
selectValue(boolean value)Selects the elements of this BooleanSource that have the specified boolean value. |
BooleanSource |
selectValues(boolean[] values)Selects the elements of this BooleanSource that have the specified boolean values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public final BooleanSource and(BooleanSource rhs)
BooleanSource and the values of the corresponding elements of the specified BooleanSource.rhs - The BooleanSource whose elements you want to logically AND with the elements of this BooleanSource.BooleanSource that has the results of the logical AND operations between the values of the elements of this BooleanSource and the values of the corresponding elements of the specified BooleanSource.public final BooleanSource and(boolean rhs)
BooleanSource and the specified boolean value.rhs - The boolean value that you want to logically AND with the values of the elements of this BooleanSource.BooleanSource that has the results of the logical AND operations between the values of the element of this BooleanSource and the specified boolean value.public final BooleanSource appendValue(boolean appendValue)
boolean value to this BooleanSource. The outputs of this BooleanSource, if any, do not appear in the resulting BooleanSource.appendValue - The boolean value that you want to append to this BooleanSource.BooleanSource that has the same elements as this BooleanSource and that has an additional appended element that has the specified boolean value.public final BooleanSource appendValues(boolean[] appendValues)
boolean values to this BooleanSource. The outputs of this BooleanSource, if any, do not appear in the resulting BooleanSource.appendValues - An array of boolean values that you want to append to this BooleanSource.BooleanSource that has the same elements as this BooleanSource and that has additional appended elements that have the specified boolean values.public final BooleanSource eq(boolean rhs)
BooleanSource to the specified boolean value and determines if the values are equal.rhs - The boolean value that you want to compare to the values of the elements of this BooleanSource.BooleanSource that has an element that has a value of true when the value of the corresponding element of this BooleanSource equals the specified boolean value or false when it does not.public final BooleanSource forAll()
BooleanSource are true. This method ignores elements that do not have a value.
For a BooleanSource with no outputs, this method returns a BooleanSource that has an element whose value is true when all of the elements of this BooleanSource have a value of true, or false when they do not. For a BooleanSource with outputs, this method returns a BooleanSource that has an element whose value is true when the value of an element and the values of all of its corresponding output elements are true, or false when they are not.
BooleanSource that has an element whose value is true when the values of all of the elements, or an element and all of the corresponding elements of its outputs, is true, or false when they are not.forAll(boolean noValueAsFalse)public final BooleanSource forAll(boolean noValueAsFalse)
BooleanSource are true. If noValueAsFalse is true, this method uses a value of false for elements that do not have a value. If noValueAsFalse is false, this method ignores elements that do not have a value.
For a BooleanSource with no outputs, this method returns a BooleanSource that has an element whose value is true when all of the elements of this BooleanSource have a value of true, or false when they do not. For a BooleanSource with outputs, this method returns a BooleanSource that has an element whose value is true when the value of an element and the values of all of its corresponding output elements are true, or false when they are not.
noValueAsFalse - Specify true when you want this method to use a value of false for elements that do not have a value.BooleanSource that has an element whose value is true when the values of all of the elements, or an element and all of the corresponding elements of its outputs, is true, or false when they are not.forAll()public final BooleanSource forAny()
BooleanSource is true. This method ignores elements that do not have a value.
For a BooleanSource with no outputs, this method returns a BooleanSource that has an element whose value is true when any of the elements of this BooleanSource have a value of true, or false when none does. For a BooleanSource with outputs, this method returns a BooleanSource that has an element whose value is true when the value of an element or the value of any of its corresponding output elements is true, or false when none is.
BooleanSource that has an element whose value is true when the value of any of the elements, or any of the corresponding elements of its outputs, is true, or false when none is.forAny(boolean noValueAsFalse)public final BooleanSource forAny(boolean noValueAsFalse)
BooleanSource is true. If noValueAsFalse is true, this method uses a value of false for elements that do not have a value. If noValueAsFalse is false, this method ignores elements that do not have a value.
For a BooleanSource with no outputs, this method returns a BooleanSource that has an element whose value is true when any of the elements of this BooleanSource have a value of true, or false when none does. For a BooleanSource with outputs, this method returns a BooleanSource that has an element whose value is true when the value of any element or the value of any of its corresponding output elements is true, or false when none is.
noValueAsFalse - Specify true when you want this method to use a value of false for elements that do not have a value.BooleanSource that has an element whose value is true when the value of any of the elements of this BooleanSource, or any of the corresponding elements of its outputs, is true, or false when none is.forAny()public final BooleanSource forNone()
BooleanSource is true. This method ignores elements that do not have any values.
For a BooleanSource with no outputs, this method returns a BooleanSource that has an element whose value is true when none of the elements of this BooleanSource have a value of true, or false when any does. For a BooleanSource with outputs, this method returns a BooleanSource that has an element whose value is true when no value of an element or any of its corresponding output elements is true, or false when any is.
BooleanSource that has an element whose value is true when no value of any of the elements of this BooleanSource, or any of the corresponding elements of its outputs, is true, or false when any is.forNone(boolean noValueAsFalse)public final BooleanSource forNone(boolean noValueAsFalse)
BooleanSource is true. If noValueAsFalse is true, this method uses a value of false for elements that do not have a value. If noValueAsFalse is false, this method ignores elements that do not have a value.
For a BooleanSource with no outputs, this method returns a BooleanSource that has an element whose value is true when none of the elements of this BooleanSource have a value of true, or false when any does. For a BooleanSource with outputs, this method returns a BooleanSource that has an element whose value is true when no value of an element or any of its corresponding output elements is true, or false when any is.
noValueAsFalse - Specify true when you want this method to use a value of false for elements that do not have a value.BooleanSource that has an element whose value is true when no value of any of the elements of this BooleanSource, or any of the corresponding elements of its outputs, is true, or false when any is.forNone()public final BooleanSource ge(boolean rhs)
BooleanSource to the specified boolean value, and determines whether it is a greater or equal value.rhs - The boolean value that you want to compare to the values of the elements of this BooleanSource.BooleanSource that has an element with a value of true when the value of the corresponding element of this BooleanSource is greater than or equal to the specified boolean value, or false when it is not.public Source getDataType()
Source that represents the OLAP Java API data type of this BooleanSource, which is Boolean.getDataType in class SourceSource that represents the OLAP Java API Boolean data type.public final BooleanSource gt(boolean rhs)
BooleanSource to the specified boolean value, and determines whether it is a greater value.rhs - The boolean value that you want to compare to the values of the elements of this BooleanSource.BooleanSource that has an element with a value of true when the value of the corresponding element of this BooleanSource is greater than the specified boolean value, or false when it is not.
public final NumberSource implies(double ifTrue,
double ifFalse)
NumberSource that has an element with the value of ifTrue for each element of this BooleanSource that has a value of true and an element with the value of ifFalse for each element of this BooleanSource that has a value of false.ifTrue - The double value that you want the elements of the resulting NumberSource to have for the elements of this BooleanSource that have a value of true.ifFalse - The double value that you want the elements of the resulting NumberSource to have for the elements of this BooleanSource that have a value of false.NumberSource that has the value of ifTrue when the corresponding value of this BooleanSource is true, or the value of ifFalse when the corresponding value of this BooleanSource is false.
public final NumberSource implies(int ifTrue,
int ifFalse)
NumberSource that has an element with the value of ifTrue for each element of this BooleanSource that has a value of true and an element with the value of ifFalse for each element of this BooleanSource that has a value of false.ifTrue - The int value that you want the elements of the resulting NumberSource to have for the elements of this BooleanSource that have a value of true.ifFalse - The int value that you want the elements of int value that you want the elements of the resulting NumberSource to have for the elements of this BooleanSource that have a value of false.NumberSource that has the value of ifTrue when the corresponding value of this BooleanSource is true, or the value of ifFalse when the corresponding value of this BooleanSource is false.
public final StringSource implies(java.lang.String ifTrue,
java.lang.String ifFalse)
StringSource that has an element with the value of ifTrue for each element of this BooleanSource that has a value of true and an element with the value of ifFalse for each element of this BooleanSource that has a value of false.ifTrue - The String value that you want the elements of the resulting StringSource to have for the elements of this BooleanSource that have a value of true.ifFalse - The String value that you want the elements of the resulting StringSource to have for the elements of this BooleanSource that have a value of false.StringSource that has the value of ifTrue when the corresponding value of this BooleanSource is true, or the value of ifFalse when the corresponding value of this BooleanSource is false.
public final DateSource implies(java.util.Date ifTrue,
java.util.Date ifFalse)
DateSource that has an element with the value of ifTrue for each element of this BooleanSource that has a value of true and an element with the value of ifFalse for each element of this BooleanSource that has a value of false.ifTrue - The Date value that you want the elements of the resulting DateSource to have for the elements of this BooleanSource that have a value of true.ifFalse - The Date value that you want the elements of the resulting DateSource to have for the elements of this BooleanSource that have a value of false.DateSource that has the value of ifTrue when the corresponding value of this BooleanSource is true, or the value of ifFalse when the corresponding value of this BooleanSource is false.
public final DateSource implies(DateSource ifTrue,
DateSource ifFalse)
DateSource that has an element with the value of ifTrue for each element of this BooleanSource that has a value of true and an element with the value of ifFalse for each element of this BooleanSource that has a value of false.ifTrue - A DateSource that has the Date value that you want the elements of the resulting DateSource to have for the elements of this BooleanSource that have a value of true.ifFalse - A DateSource that has the Date value that you want the elements of the resulting DateSource to have for the elements of this BooleanSource that have a value of false.DateSource that has the value of the element of ifTrue when the corresponding value of this BooleanSource is true, or the value of the element of ifFalse when the corresponding value of this BooleanSource is false.
public final NumberSource implies(NumberSource ifTrue,
NumberSource ifFalse)
NumberSource that has an element with the value of ifTrue for each element of this BooleanSource that has a value of true and an element with the value of ifFalse for each element of this BooleanSource that has a value of false.ifTrue - A NumberSource that has the value that you want the elements of the resulting NumberSource to have for the elements of this BooleanSource that have a value of true.ifFalse - A NumberSource that has the value that you want the elements of the resulting NumberSource to have for the elements of this BooleanSource that have a value of false.NumberSource that has the value of the element of ifTrue when the corresponding value of this BooleanSource is true, or the value of the element of ifFalse when the corresponding value of this BooleanSource is false.
public final StringSource implies(StringSource ifTrue,
StringSource ifFalse)
StringSource that has an element with the value of ifTrue for each element of this BooleanSource that has a value of true and an element with the value of ifFalse for each element of this BooleanSource that has a value of false.ifTrue - A StringSource that has the value that you want the elements of the resulting StringSource to have for the elements of this BooleanSource that have a value of true.ifFalse - A StringSource that has the value that you want the elements of the resulting StringSource to have for the elements of this BooleanSource that have a value of false.StringSource that has the value of the element of ifTrue when the corresponding value of this BooleanSource is true, or the value of the element of ifFalse when the corresponding value of this BooleanSource is false.public final BooleanSource le(boolean rhs)
BooleanSource to the specified boolean value, and determines whether it is a lesser or equal value.rhs - The boolean value that you want to compare to the values of the elements of this BooleanSource.BooleanSource that has an element with a value of true when the value of a given element of this BooleanSource is less than or equal to the specified boolean value, or false when it is not.public final BooleanSource lt(boolean rhs)
BooleanSource to the specified boolean value, and determines whether it is a lesser value.rhs - The boolean value that you want to compare to the values of the elements of this BooleanSource.BooleanSource that has an element with a value of true when the value of the corresponding element of this BooleanSource is less than the specified boolean value, or false when it is not.public final BooleanSource ne(boolean rhs)
BooleanSource to the specified boolean value, and determines whether it is not equal to the value.rhs - The boolean value that you want to compare to the values of the elements of this BooleanSource.BooleanSource that has an element with a value of true when the value of the corresponding element of this BooleanSource is not equal to the specified boolean value, or false when it is equal to the specified value.public final BooleanSource not()
BooleanSource, which negates the values so that if an element of this BooleanSource has a value of true, then the corresponding element of the resulting BooleanSource has a value of false. If an element of this BooleanSource has a value of false, then the corresponding element of the resulting BooleanSource has a value of true.BooleanSource that has the results of the logical NOT operations on the values of the elements of this BooleanSource.public final BooleanSource or(BooleanSource rhs)
BooleanSource and the values of the corresponding elements of the specified BooleanSource.rhs - The BooleanSource whose elements you want to logically OR with the elements of this BooleanSource.BooleanSource that has the results of the logical OR operations between the values of the elements of this BooleanSource and the values of the corresponding elements of the specified BooleanSource.public final BooleanSource or(boolean rhs)
BooleanSource and the specified boolean value.rhs - The boolan value that you want to logically OR with the elements of this BooleanSource.BooleanSource that has the results of the logical OR operations between the values of the elements of this BooleanSource and the specified value.public final NumberSource positionOfValue(boolean value)
BooleanSource that have the specified boolean value.value - The boolean value that you want to compare to the values of the elements of this BooleanSource.NumberSource whose elements have int values that identify the positions of the elements in this BooleanSource that have the specified boolean value. If this BooleanSource does not have any elements that have the specified value, then this method returns an empty NumberSource, which has no elements.public final NumberSource positionOfValues(boolean[] values)
BooleanSource that have the specified boolean values.values - An array of boolean values that you want to compare to the values of the elements of this BooleanSource.NumberSource whose elements have int values that identify the positions of the elements in this BooleanSource that have the specified boolean values. If this BooleanSource does not have any elements that have the specified values, then this method returns an empty NumberSource, which has no elements.public final BooleanSource removeValue(boolean value)
BooleanSource that have the specified boolean value.value - The boolean value you do not want to have in the returned BooleanSource.BooleanSource that has the elements of this BooleanSource that do not have the specified boolean value.public final BooleanSource removeValues(boolean[] values)
BooleanSource that have the specified boolean values.values - An array of boolean values that you do not want to have in the returned BooleanSource.BooleanSource that has the elements of this BooleanSource that do not have the specified values.public final BooleanSource selectValue(boolean value)
BooleanSource that have the specified boolean value.value - The value to compare to the values of the elements of this BooleanSource.BooleanSource that has the elements of this BooleanSource that have the specified boolean value.public final BooleanSource selectValues(boolean[] values)
BooleanSource that have the specified boolean values.values - An array of boolean values to compare to the values of the elements of this BooleanSource.BooleanSource that has the elements of this BooleanSource that have the specified values.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||