public class RowBasedStorageAdapter<RowType> extends Object implements StorageAdapter
StorageAdapter
that is based on a stream of objects. Generally created by a RowBasedSegment
.for implementation notes
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() |
Sequence<Cursor> |
makeCursors(Filter filter,
org.joda.time.Interval queryInterval,
VirtualColumns virtualColumns,
Granularity gran,
boolean descending,
QueryMetrics<?> queryMetrics)
Creates a sequence of Cursors, one for each time-granular bucket (based on the provided Granularity).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canVectorize, makeVectorCursor
getType
areNumeric, areNumeric, canVectorize, canVectorize
public org.joda.time.Interval getInterval()
getInterval
in interface StorageAdapter
public Indexed<String> getAvailableDimensions()
getAvailableDimensions
in interface StorageAdapter
public Iterable<String> getAvailableMetrics()
getAvailableMetrics
in interface StorageAdapter
public int getDimensionCardinality(String column)
StorageAdapter
Integer.MAX_VALUE
if unknown,
e. g. the column is numeric. If the column doesn't exist, returns 0.getDimensionCardinality
in interface StorageAdapter
public org.joda.time.DateTime getMinTime()
getMinTime
in interface StorageAdapter
public org.joda.time.DateTime getMaxTime()
getMaxTime
in interface StorageAdapter
@Nullable public Comparable getMinValue(String column)
getMinValue
in interface StorageAdapter
@Nullable public Comparable getMaxValue(String column)
getMaxValue
in interface StorageAdapter
@Nullable public ColumnCapabilities getColumnCapabilities(String column)
StorageAdapter
ColumnSelectorFactory.getColumnCapabilities(String)
, which returns capabilities for virtual columns as
well.getColumnCapabilities
in interface ColumnInspector
getColumnCapabilities
in interface StorageAdapter
column
- column name@Nullable public String getColumnTypeName(String column)
StorageAdapter
ColumnCapabilities.getType()
, but may return a more descriptive string for complex columns.getColumnTypeName
in interface StorageAdapter
column
- column namepublic int getNumRows()
getNumRows
in interface StorageAdapter
public org.joda.time.DateTime getMaxIngestedEventTime()
getMaxIngestedEventTime
in interface StorageAdapter
public Metadata getMetadata()
getMetadata
in interface StorageAdapter
public Sequence<Cursor> makeCursors(@Nullable Filter filter, org.joda.time.Interval queryInterval, VirtualColumns virtualColumns, Granularity gran, boolean descending, @Nullable QueryMetrics<?> queryMetrics)
CursorFactory
makeCursors
in interface CursorFactory
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.