public abstract class AbstractVirtualTable extends java.lang.Object implements VirtualTable
Modifier and Type | Class and Description |
---|---|
static class |
AbstractVirtualTable.AbstractDataSet
An abstract, map-backed DataSet implementation.
|
static interface |
AbstractVirtualTable.DataSet |
static interface |
AbstractVirtualTable.Partition |
static class |
AbstractVirtualTable.SimpleTable |
Modifier and Type | Field and Description |
---|---|
protected TableMetadata |
metadata |
Modifier | Constructor and Description |
---|---|
protected |
AbstractVirtualTable(TableMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
void |
apply(PartitionUpdate update)
Applies the specified update, if supported.
|
abstract AbstractVirtualTable.DataSet |
data()
Provide a
AbstractVirtualTable.DataSet that is contains all of the virtual table's data. |
AbstractVirtualTable.DataSet |
data(DecoratedKey partitionKey)
Provide a
AbstractVirtualTable.DataSet that is potentially restricted to the provided partition - but is allowed to contain
other partitions. |
TableMetadata |
metadata()
Returns the view metadata.
|
UnfilteredPartitionIterator |
select(DataRange dataRange,
ColumnFilter columnFilter)
Selects the rows from a range of partitions.
|
UnfilteredPartitionIterator |
select(DecoratedKey partitionKey,
ClusteringIndexFilter clusteringIndexFilter,
ColumnFilter columnFilter)
Selects the rows from a single partition.
|
java.lang.String |
toString() |
void |
truncate()
Truncates data from the underlying source, if supported.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
name
protected final TableMetadata metadata
protected AbstractVirtualTable(TableMetadata metadata)
public TableMetadata metadata()
VirtualTable
metadata
in interface VirtualTable
public abstract AbstractVirtualTable.DataSet data()
AbstractVirtualTable.DataSet
that is contains all of the virtual table's data.public AbstractVirtualTable.DataSet data(DecoratedKey partitionKey)
AbstractVirtualTable.DataSet
that is potentially restricted to the provided partition - but is allowed to contain
other partitions.public final UnfilteredPartitionIterator select(DecoratedKey partitionKey, ClusteringIndexFilter clusteringIndexFilter, ColumnFilter columnFilter)
VirtualTable
select
in interface VirtualTable
partitionKey
- the partition keyclusteringIndexFilter
- the clustering columns to selectedcolumnFilter
- the selected columnspublic final UnfilteredPartitionIterator select(DataRange dataRange, ColumnFilter columnFilter)
VirtualTable
select
in interface VirtualTable
dataRange
- the range of data to retrievecolumnFilter
- the selected columnspublic void apply(PartitionUpdate update)
VirtualTable
apply
in interface VirtualTable
update
- the update to applypublic void truncate()
VirtualTable
truncate
in interface VirtualTable
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009-2022 The Apache Software Foundation