Package org.apache.calcite.rel.metadata
Class RelMdSize
java.lang.Object
org.apache.calcite.rel.metadata.RelMdSize
- All Implemented Interfaces:
MetadataHandler<BuiltInMetadata.Size>
public class RelMdSize extends Object implements MetadataHandler<BuiltInMetadata.Size>
Default implementations of the
BuiltInMetadata.Size
metadata provider for the standard logical algebra.-
Field Summary
Fields Modifier and Type Field Description static int
BYTES_PER_CHARACTER
Bytes per character (2).static RelMetadataProvider
SOURCE
Source forBuiltInMetadata.Size
. -
Constructor Summary
Constructors Modifier Constructor Description protected
RelMdSize()
-
Method Summary
-
Field Details
-
SOURCE
Source forBuiltInMetadata.Size
. -
BYTES_PER_CHARACTER
public static final int BYTES_PER_CHARACTERBytes per character (2).- See Also:
- Constant Field Values
-
-
Constructor Details
-
RelMdSize
protected RelMdSize()
-
-
Method Details
-
getDef
- Specified by:
getDef
in interfaceMetadataHandler<BuiltInMetadata.Size>
-
averageRowSize
Catch-all implementation forBuiltInMetadata.Size.averageRowSize()
, invoked using reflection. -
averageColumnSizes
Catch-all implementation forBuiltInMetadata.Size.averageColumnSizes()
, invoked using reflection. -
averageColumnSizes
-
averageColumnSizes
-
averageColumnSizes
-
averageColumnSizes
-
averageColumnSizes
-
averageColumnSizes
-
averageColumnSizes
-
averageColumnSizes
-
averageColumnSizes
-
averageColumnSizes
-
averageColumnSizes
-
averageColumnSizes
-
averageColumnSizes
-
averageFieldValueSize
Estimates the average size (in bytes) of a value of a field, knowing nothing more than its type.We assume that the proportion of nulls is negligible, even if the field is nullable.
-
averageTypeValueSize
Estimates the average size (in bytes) of a value of a type.We assume that the proportion of nulls is negligible, even if the type is nullable.
-
typeValueSize
Estimates the average size (in bytes) of a value of a type.Nulls count as 1 byte.
-
averageRexSize
-