public class RelMdSize extends Object
BuiltInMetadata.Size
metadata provider for the standard logical algebra.| Modifier and Type | Field and Description |
|---|---|
static int |
BYTES_PER_CHARACTER
Bytes per character (2).
|
static RelMetadataProvider |
SOURCE
Source for
BuiltInMetadata.Size. |
| Modifier | Constructor and Description |
|---|---|
protected |
RelMdSize() |
public static final RelMetadataProvider SOURCE
BuiltInMetadata.Size.public static final int BYTES_PER_CHARACTER
public Double averageRowSize(RelNode rel)
BuiltInMetadata.Size.averageRowSize(),
invoked using reflection.public List<Double> averageColumnSizes(RelNode rel)
BuiltInMetadata.Size.averageColumnSizes(),
invoked using reflection.protected Double averageFieldValueSize(RelDataTypeField field)
We assume that the proportion of nulls is negligible, even if the field is nullable.
public Double averageTypeValueSize(RelDataType type)
We assume that the proportion of nulls is negligible, even if the type is nullable.
public double typeValueSize(RelDataType type, Comparable value)
Nulls count as 1 byte.
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.