java.lang.Object
de.grogra.xl.util.Operators
-
Method Summary
Modifier and TypeMethodDescriptionstatic Array
static Array
static Array
static Array
static Array
static Array
static Array
static Array
static Array
static long
static long
static long
static long
static long
static long
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static Random
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
selectRandomly
(Aggregate a, boolean value) static void
selectRandomly
(Aggregate a, boolean value, double prob) This aggregate method selects one of the providedvalue
s, where eachvalue
has a relative probabilityprob
of being chosen.static void
selectRandomly
(Aggregate a, byte value) static void
selectRandomly
(Aggregate a, byte value, double prob) This aggregate method selects one of the providedvalue
s, where eachvalue
has a relative probabilityprob
of being chosen.static void
selectRandomly
(Aggregate a, char value) static void
selectRandomly
(Aggregate a, char value, double prob) This aggregate method selects one of the providedvalue
s, where eachvalue
has a relative probabilityprob
of being chosen.static void
selectRandomly
(Aggregate a, double value) static void
selectRandomly
(Aggregate a, double value, double prob) This aggregate method selects one of the providedvalue
s, where eachvalue
has a relative probabilityprob
of being chosen.static void
selectRandomly
(Aggregate a, float value) static void
selectRandomly
(Aggregate a, float value, double prob) This aggregate method selects one of the providedvalue
s, where eachvalue
has a relative probabilityprob
of being chosen.static void
selectRandomly
(Aggregate a, int value) static void
selectRandomly
(Aggregate a, int value, double prob) This aggregate method selects one of the providedvalue
s, where eachvalue
has a relative probabilityprob
of being chosen.static void
selectRandomly
(Aggregate a, long value) static void
selectRandomly
(Aggregate a, long value, double prob) This aggregate method selects one of the providedvalue
s, where eachvalue
has a relative probabilityprob
of being chosen.static void
selectRandomly
(Aggregate a, short value) static void
selectRandomly
(Aggregate a, short value, double prob) This aggregate method selects one of the providedvalue
s, where eachvalue
has a relative probabilityprob
of being chosen.static void
selectRandomly
(Aggregate a, Object value) static void
selectRandomly
(Aggregate a, Object value, double prob) This aggregate method selects one of the providedvalue
s, where eachvalue
has a relative probabilityprob
of being chosen.static void
selectWhere
(Aggregate a, boolean value, boolean sel) static void
selectWhere
(Aggregate a, byte value, boolean sel) static void
selectWhere
(Aggregate a, char value, boolean sel) static void
selectWhere
(Aggregate a, double value, boolean sel) static void
selectWhere
(Aggregate a, float value, boolean sel) static void
selectWhere
(Aggregate a, int value, boolean sel) static void
selectWhere
(Aggregate a, long value, boolean sel) static void
selectWhere
(Aggregate a, short value, boolean sel) static void
selectWhere
(Aggregate a, Object value, boolean sel) static void
selectWhereMax
(Aggregate a, boolean value, double n) static void
selectWhereMax
(Aggregate a, boolean value, long n) static void
selectWhereMax
(Aggregate a, byte value, double n) static void
selectWhereMax
(Aggregate a, byte value, long n) static void
selectWhereMax
(Aggregate a, char value, double n) static void
selectWhereMax
(Aggregate a, char value, long n) static void
selectWhereMax
(Aggregate a, double value, double n) static void
selectWhereMax
(Aggregate a, double value, long n) static void
selectWhereMax
(Aggregate a, float value, double n) static void
selectWhereMax
(Aggregate a, float value, long n) static void
selectWhereMax
(Aggregate a, int value, double n) static void
selectWhereMax
(Aggregate a, int value, long n) static void
selectWhereMax
(Aggregate a, long value, double n) static void
selectWhereMax
(Aggregate a, long value, long n) static void
selectWhereMax
(Aggregate a, short value, double n) static void
selectWhereMax
(Aggregate a, short value, long n) static void
selectWhereMax
(Aggregate a, Object value, double n) static void
selectWhereMax
(Aggregate a, Object value, long n) static void
selectWhereMin
(Aggregate a, boolean value, double n) static void
selectWhereMin
(Aggregate a, boolean value, long n) static void
selectWhereMin
(Aggregate a, byte value, double n) static void
selectWhereMin
(Aggregate a, byte value, long n) static void
selectWhereMin
(Aggregate a, char value, double n) static void
selectWhereMin
(Aggregate a, char value, long n) static void
selectWhereMin
(Aggregate a, double value, double n) static void
selectWhereMin
(Aggregate a, double value, long n) static void
selectWhereMin
(Aggregate a, float value, double n) static void
selectWhereMin
(Aggregate a, float value, long n) static void
selectWhereMin
(Aggregate a, int value, double n) static void
selectWhereMin
(Aggregate a, int value, long n) static void
selectWhereMin
(Aggregate a, long value, double n) static void
selectWhereMin
(Aggregate a, long value, long n) static void
selectWhereMin
(Aggregate a, short value, double n) static void
selectWhereMin
(Aggregate a, short value, long n) static void
selectWhereMin
(Aggregate a, Object value, double n) static void
selectWhereMin
(Aggregate a, Object value, long n) static void
static void
static void
static void
static void
static void
static void
static void
static void
static String
static String
static String
static String
static String
static String
static void
static void
static void
static void
-
Method Details
-
getRandomGenerator
-
forall
-
exist
-
count
-
empty
-
string
-
count
-
empty
-
string
-
count
-
empty
-
string
-
count
-
empty
-
string
-
count
-
empty
-
string
-
count
-
empty
-
string
-
array
-
first
-
first
-
slice
-
last
-
selectWhere
-
selectRandomly
-
selectRandomly
This aggregate method selects one of the providedvalue
s, where eachvalue
has a relative probabilityprob
of being chosen. Relative probability means that theprob
values do not have to be normalized so that their sum is 1.- Parameters:
a
- aggregate instance (provided by the XL compiler)value
- a value of the sequence of valuesprob
- relative probability ofvalue
-
selectWhereMin
-
selectWhereMin
-
selectWhereMax
-
selectWhereMax
-
array
-
first
-
first
-
slice
-
last
-
selectWhere
-
selectRandomly
-
selectRandomly
This aggregate method selects one of the providedvalue
s, where eachvalue
has a relative probabilityprob
of being chosen. Relative probability means that theprob
values do not have to be normalized so that their sum is 1.- Parameters:
a
- aggregate instance (provided by the XL compiler)value
- a value of the sequence of valuesprob
- relative probability ofvalue
-
selectWhereMin
-
selectWhereMin
-
selectWhereMax
-
selectWhereMax
-
array
-
first
-
first
-
slice
-
last
-
selectWhere
-
selectRandomly
-
selectRandomly
This aggregate method selects one of the providedvalue
s, where eachvalue
has a relative probabilityprob
of being chosen. Relative probability means that theprob
values do not have to be normalized so that their sum is 1.- Parameters:
a
- aggregate instance (provided by the XL compiler)value
- a value of the sequence of valuesprob
- relative probability ofvalue
-
selectWhereMin
-
selectWhereMin
-
selectWhereMax
-
selectWhereMax
-
array
-
first
-
first
-
slice
-
last
-
selectWhere
-
selectRandomly
-
selectRandomly
This aggregate method selects one of the providedvalue
s, where eachvalue
has a relative probabilityprob
of being chosen. Relative probability means that theprob
values do not have to be normalized so that their sum is 1.- Parameters:
a
- aggregate instance (provided by the XL compiler)value
- a value of the sequence of valuesprob
- relative probability ofvalue
-
selectWhereMin
-
selectWhereMin
-
selectWhereMax
-
selectWhereMax
-
array
-
first
-
first
-
slice
-
last
-
selectWhere
-
selectRandomly
-
selectRandomly
This aggregate method selects one of the providedvalue
s, where eachvalue
has a relative probabilityprob
of being chosen. Relative probability means that theprob
values do not have to be normalized so that their sum is 1.- Parameters:
a
- aggregate instance (provided by the XL compiler)value
- a value of the sequence of valuesprob
- relative probability ofvalue
-
selectWhereMin
-
selectWhereMin
-
selectWhereMax
-
selectWhereMax
-
array
-
first
-
first
-
slice
-
last
-
selectWhere
-
selectRandomly
-
selectRandomly
This aggregate method selects one of the providedvalue
s, where eachvalue
has a relative probabilityprob
of being chosen. Relative probability means that theprob
values do not have to be normalized so that their sum is 1.- Parameters:
a
- aggregate instance (provided by the XL compiler)value
- a value of the sequence of valuesprob
- relative probability ofvalue
-
selectWhereMin
-
selectWhereMin
-
selectWhereMax
-
selectWhereMax
-
array
-
first
-
first
-
slice
-
last
-
selectWhere
-
selectRandomly
-
selectRandomly
This aggregate method selects one of the providedvalue
s, where eachvalue
has a relative probabilityprob
of being chosen. Relative probability means that theprob
values do not have to be normalized so that their sum is 1.- Parameters:
a
- aggregate instance (provided by the XL compiler)value
- a value of the sequence of valuesprob
- relative probability ofvalue
-
selectWhereMin
-
selectWhereMin
-
selectWhereMax
-
selectWhereMax
-
array
-
first
-
first
-
slice
-
last
-
selectWhere
-
selectRandomly
-
selectRandomly
This aggregate method selects one of the providedvalue
s, where eachvalue
has a relative probabilityprob
of being chosen. Relative probability means that theprob
values do not have to be normalized so that their sum is 1.- Parameters:
a
- aggregate instance (provided by the XL compiler)value
- a value of the sequence of valuesprob
- relative probability ofvalue
-
selectWhereMin
-
selectWhereMin
-
selectWhereMax
-
selectWhereMax
-
array
-
first
-
first
-
slice
-
last
-
selectWhere
-
selectRandomly
-
selectRandomly
This aggregate method selects one of the providedvalue
s, where eachvalue
has a relative probabilityprob
of being chosen. Relative probability means that theprob
values do not have to be normalized so that their sum is 1.- Parameters:
a
- aggregate instance (provided by the XL compiler)value
- a value of the sequence of valuesprob
- relative probability ofvalue
-
selectWhereMin
-
selectWhereMin
-
selectWhereMax
-
selectWhereMax
-
min
-
max
-
min
-
max
-
min
-
max
-
min
-
max
-
min
-
max
-
min
-
max
-
sum
-
mean
-
prod
-
sum
-
mean
-
prod
-
sum
-
mean
-
prod
-
sum
-
mean
-
prod
-