Interface DataSourceMetadata
-
public interface DataSourceMetadataTheDataSourceMetadataclass contains all the metadata for a column for query execution purpose.
-
-
Method Summary
Modifier and Type Method Description intgetCardinality()Returns the cardinality of the column,-1if not applicabledefault FieldSpec.DataTypegetDataType()Returns the data type of the column.FieldSpecgetFieldSpec()Returns the field spec of the column.intgetMaxNumValuesPerMVEntry()Returns the maximum number of values for each multi-value entry of the multi-value column.ComparablegetMaxValue()Returns the maximum value of the column, ornullif it is not available.ComparablegetMinValue()Returns the minimum value of the column, ornullif it is not available.intgetNumDocs()Returns the number of documents of the column.intgetNumValues()Returns the number of values of the column.PartitionFunctiongetPartitionFunction()Returns the partition function of the column, ornullif the column is not partitioned.Set<Integer>getPartitions()Returns the partitions the column belongs to, ornullif the column is not partitioned.default booleanisSingleValue()Returnstrueif the column is single-valued,falseotherwise.booleanisSorted()Returnstrueif the column is sorted,falseotherwise.
-
-
-
Method Detail
-
getFieldSpec
FieldSpec getFieldSpec()
Returns the field spec of the column.
-
getDataType
default FieldSpec.DataType getDataType()
Returns the data type of the column.
-
isSingleValue
default boolean isSingleValue()
Returnstrueif the column is single-valued,falseotherwise.
-
isSorted
boolean isSorted()
Returnstrueif the column is sorted,falseotherwise. The result of this method cannot be trusted if null handling is enabled.
-
getNumDocs
int getNumDocs()
Returns the number of documents of the column.
-
getNumValues
int getNumValues()
Returns the number of values of the column. For single-value column, number of values always equals to number of documents; for multi-value column, each document (multi-value entry) may contain multiple values.
-
getMaxNumValuesPerMVEntry
int getMaxNumValuesPerMVEntry()
Returns the maximum number of values for each multi-value entry of the multi-value column. Returns-1for single-value column.
-
getMinValue
@Nullable Comparable getMinValue()
Returns the minimum value of the column, ornullif it is not available.
-
getMaxValue
@Nullable Comparable getMaxValue()
Returns the maximum value of the column, ornullif it is not available.
-
getPartitionFunction
@Nullable PartitionFunction getPartitionFunction()
Returns the partition function of the column, ornullif the column is not partitioned.
-
getPartitions
@Nullable Set<Integer> getPartitions()
Returns the partitions the column belongs to, ornullif the column is not partitioned.
-
getCardinality
int getCardinality()
Returns the cardinality of the column,-1if not applicable
-
-