Package | Description |
---|---|
org.apache.hadoop.examples.pi |
This package consists of a map/reduce application,
distbbp,
which computes exact binary digits of the mathematical constant π.
|
org.apache.hadoop.examples.pi.math |
This package provides useful mathematical library classes
for the distbbp program.
|
Modifier and Type | Method and Description |
---|---|
Summation |
SummationWritable.getElement() |
Summation |
DistSum.Machine.SummationSplit.getElement() |
Summation |
TaskResult.getElement() |
static Summation |
SummationWritable.read(Class<?> clazz,
Configuration conf)
Read sigma from conf
|
Modifier and Type | Method and Description |
---|---|
static void |
SummationWritable.write(Summation sigma,
Class<?> clazz,
Configuration conf)
Write sigma to conf
|
static void |
SummationWritable.write(Summation sigma,
DataOutput out)
Write sigma to DataOutput
|
Modifier and Type | Method and Description |
---|---|
static <T extends Container<Summation>> |
Bellard.computePi(long b,
Map<Bellard.Parameter,T> results)
Compute bits of Pi from the results.
|
static <T extends Container<Summation>> |
Bellard.getSums(long b,
int partsPerSum,
Map<Bellard.Parameter,List<T>> existing)
Get the sums for the Bellard formula.
|
<T extends Container<Summation>> |
Summation.remainingTerms(List<T> sorted)
Find the remaining terms.
|
Modifier and Type | Method and Description |
---|---|
Summation |
Summation.combine(Summation that)
Combine this with that.
|
Summation |
Bellard.Sum.getElement() |
Summation |
Summation.getElement() |
Summation[] |
Summation.partition(int nParts)
Partition the summation.
|
static Summation |
Summation.valueOf(String s)
Covert a String to a Summation.
|
Modifier and Type | Method and Description |
---|---|
Iterator<Summation> |
Bellard.Sum.iterator() |
<T extends Container<Summation>> |
Summation.remainingTerms(List<T> sorted)
Find the remaining terms.
|
Modifier and Type | Method and Description |
---|---|
Summation |
Summation.combine(Summation that)
Combine this with that.
|
int |
Summation.compareTo(Summation that) |
boolean |
Summation.contains(Summation that)
Does this contains that?
|
void |
Bellard.Sum.setValue(Summation s)
Set the value of sigma
|
Copyright © 2013 Apache Software Foundation. All rights reserved.