public interface StorageAdapter extends CursorFactory, ColumnInspector
| Modifier and Type | Method and Description |
|---|---|
Indexed<String> |
getAvailableDimensions() |
Iterable<String> |
getAvailableMetrics() |
ColumnCapabilities |
getColumnCapabilities(String column)
Returns capabilities of a particular column, if known.
|
String |
getColumnTypeName(String column)
Like
ColumnCapabilities.getType(), but may return a more descriptive string for complex columns. |
int |
getDimensionCardinality(String column)
Returns the number of distinct values for the given column if known, or
Integer.MAX_VALUE if unknown,
e. |
org.joda.time.Interval |
getInterval() |
org.joda.time.DateTime |
getMaxIngestedEventTime() |
org.joda.time.DateTime |
getMaxTime() |
Comparable |
getMaxValue(String column) |
Metadata |
getMetadata() |
org.joda.time.DateTime |
getMinTime() |
Comparable |
getMinValue(String column) |
int |
getNumRows() |
default boolean |
hasBuiltInFilters()
Returns true if this storage adapter can filter some rows out.
|
canVectorize, makeCursors, makeVectorCursorgetTypeareNumeric, areNumeric, areScalar, areScalar, canVectorize, canVectorizeorg.joda.time.Interval getInterval()
int getDimensionCardinality(String column)
Integer.MAX_VALUE if unknown,
e. g. the column is numeric. If the column doesn't exist, returns 0.org.joda.time.DateTime getMinTime()
org.joda.time.DateTime getMaxTime()
@Nullable Comparable getMinValue(String column)
@Nullable Comparable getMaxValue(String column)
@Nullable ColumnCapabilities getColumnCapabilities(String column)
ColumnSelectorFactory.getColumnCapabilities(String), which returns capabilities for virtual columns as
well.getColumnCapabilities in interface ColumnInspectorcolumn - column name@Nullable String getColumnTypeName(String column)
ColumnCapabilities.getType(), but may return a more descriptive string for complex columns.column - column nameint getNumRows()
org.joda.time.DateTime getMaxIngestedEventTime()
Metadata getMetadata()
default boolean hasBuiltInFilters()
getDimensionCardinality(java.lang.String) returns if this returns true. Dimension selectors for such storage adapter
can return non-contiguous dictionary IDs because the dictionary IDs in filtered rows will not be returned.
Note that the number of rows accessible via this storage adapter will not necessarily decrease because of
the built-in filters. For inner joins, for example, the number of joined rows can be larger than
the number of rows in the base adapter even though this method returns true.Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.