public static interface BuiltInMetadata.Memory extends Metadata
| Modifier and Type | Method and Description |
|---|---|
Double |
cumulativeMemoryWithinPhase()
Returns the cumulative amount of memory, in bytes, required by the
physical operator implementing this relational expression, and all other
operators within the same phase, across all splits.
|
Double |
cumulativeMemoryWithinPhaseSplit()
Returns the expected cumulative amount of memory, in bytes, required by
the physical operator implementing this relational expression, and all
operators within the same phase, within each split.
|
Double |
memory()
Returns the expected amount of memory, in bytes, required by a physical
operator implementing this relational expression, across all splits.
|
Double memory()
How much memory is used depends very much on the algorithm; for
example, an implementation of
Aggregate that loads all data into a
hash table requires approximately rowCount * averageRowSize
bytes, whereas an implementation that assumes that the input is sorted
requires only averageRowSize bytes to maintain a single
accumulator for each aggregate function.
Double cumulativeMemoryWithinPhase()
Double cumulativeMemoryWithinPhaseSplit()
Basic formula:
cumulativeMemoryWithinPhaseSplit = cumulativeMemoryWithinPhase / Parallelism.splitCount
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.