public class DelegateTable extends Object implements PTable
PTable.IndexType, PTable.LinkType, PTable.ViewType
DEFAULT_DISABLE_WAL, INITIAL_SEQ_NUM, IS_IMMUTABLE_ROWS_PROP_NAME
Constructor and Description |
---|
DelegateTable(PTable delegate) |
Modifier and Type | Method and Description |
---|---|
int |
getBaseColumnCount() |
Integer |
getBucketNum()
Return the number of buckets used by this table for salting.
|
PColumn |
getColumn(String name)
Get the column with the given string name.
|
List<PColumnFamily> |
getColumnFamilies() |
PColumnFamily |
getColumnFamily(byte[] family)
Get the column family with the given name
|
PColumnFamily |
getColumnFamily(String family) |
List<PColumn> |
getColumns()
Get all columns ordered by position.
|
PName |
getDefaultFamilyName() |
int |
getEstimatedSize() |
List<PTable> |
getIndexes()
Return the list of indexes defined on this table.
|
IndexMaintainer |
getIndexMaintainer(PTable dataTable,
PhoenixConnection connection) |
void |
getIndexMaintainers(ImmutableBytesWritable ptr,
PhoenixConnection connection) |
PIndexState |
getIndexState()
For a table of index type, return the state of the table.
|
PTable.IndexType |
getIndexType() |
PTableKey |
getKey() |
PName |
getName() |
PName |
getParentName()
Gets the full name of the data table for an index table.
|
PName |
getParentSchemaName()
Gets the schema name of the data table for an index table.
|
PName |
getParentTableName()
Gets the table name of the data table for an index table.
|
PName |
getPhysicalName() |
List<PName> |
getPhysicalNames()
For a view, return the name of table in Phoenix that physically stores data.
|
PColumn |
getPKColumn(String name)
Get the PK column with the given name.
|
List<PColumn> |
getPKColumns()
Get the PK columns ordered by position.
|
PName |
getPKName() |
RowKeySchema |
getRowKeySchema() |
PName |
getSchemaName() |
long |
getSequenceNumber() |
boolean |
getStoreNulls() |
PName |
getTableName() |
PTableStats |
getTableStats() |
PName |
getTenantId() |
long |
getTimeStamp() |
PTableType |
getType() |
Short |
getViewIndexId() |
String |
getViewStatement() |
PTable.ViewType |
getViewType() |
boolean |
isImmutableRows() |
boolean |
isMultiTenant() |
boolean |
isWALDisabled() |
int |
newKey(ImmutableBytesWritable key,
byte[][] values)
Formulates a row key using the values provided.
|
PRow |
newRow(KeyValueBuilder builder,
ImmutableBytesWritable key,
byte[]... values)
Creates a new row for the PK values (from
PTable.newKey(ImmutableBytesWritable, byte[][])
and the optional key values specified using values. |
PRow |
newRow(KeyValueBuilder builder,
long ts,
ImmutableBytesWritable key,
byte[]... values)
Creates a new row at the specified timestamp using the key
for the PK values (from
PTable.newKey(ImmutableBytesWritable, byte[][])
and the optional key values specified using values. |
boolean |
rowKeyOrderOptimizable()
Determines whether or not we may optimize out an ORDER BY or do a GROUP BY
in-place when the optimizer tells us it's possible.
|
public DelegateTable(PTable delegate)
public long getTimeStamp()
getTimeStamp
in interface PTable
public long getSequenceNumber()
getSequenceNumber
in interface PTable
public PName getSchemaName()
getSchemaName
in interface PTable
public PName getTableName()
getTableName
in interface PTable
public PName getTenantId()
getTenantId
in interface PTable
public PTableType getType()
public List<PColumn> getPKColumns()
PTable
getPKColumns
in interface PTable
public List<PColumn> getColumns()
PTable
getColumns
in interface PTable
public List<PColumnFamily> getColumnFamilies()
getColumnFamilies
in interface PTable
public PColumnFamily getColumnFamily(byte[] family) throws ColumnFamilyNotFoundException
PTable
getColumnFamily
in interface PTable
family
- the column family nameColumnFamilyNotFoundException
- if the column family cannot be foundpublic PColumnFamily getColumnFamily(String family) throws ColumnFamilyNotFoundException
getColumnFamily
in interface PTable
ColumnFamilyNotFoundException
public PColumn getColumn(String name) throws ColumnNotFoundException, AmbiguousColumnException
PTable
getColumn
in interface PTable
name
- the column nameColumnNotFoundException
- if no column with the given name
can be foundAmbiguousColumnException
- if multiple columns are found with the given namepublic PColumn getPKColumn(String name) throws ColumnNotFoundException
PTable
getPKColumn
in interface PTable
name
- the column nameColumnNotFoundException
- if no PK column with the given name
can be foundpublic PRow newRow(KeyValueBuilder builder, long ts, ImmutableBytesWritable key, byte[]... values)
PTable
PTable.newKey(ImmutableBytesWritable, byte[][])
and the optional key values specified using values.newRow
in interface PTable
ts
- the timestamp that the key value will have when committedkey
- the row key of the key valuevalues
- the optional key valuesPRow.toRowMutations()
to
generate the Row to send to the HBase server.public PRow newRow(KeyValueBuilder builder, ImmutableBytesWritable key, byte[]... values)
PTable
PTable.newKey(ImmutableBytesWritable, byte[][])
and the optional key values specified using values. The timestamp of the key value
will be set by the HBase server.newRow
in interface PTable
key
- the row key of the key valuevalues
- the optional key valuesPRow.toRowMutations()
to
generate the row to send to the HBase server.public int newKey(ImmutableBytesWritable key, byte[][] values)
PTable
PTable.getPKColumns()
.public RowKeySchema getRowKeySchema()
getRowKeySchema
in interface PTable
public Integer getBucketNum()
PTable
getBucketNum
in interface PTable
public List<PTable> getIndexes()
PTable
getIndexes
in interface PTable
public PIndexState getIndexState()
PTable
getIndexState
in interface PTable
public PName getParentName()
PTable
getParentName
in interface PTable
public PName getParentTableName()
PTable
getParentTableName
in interface PTable
public List<PName> getPhysicalNames()
PTable
getPhysicalNames
in interface PTable
public PName getPhysicalName()
getPhysicalName
in interface PTable
public boolean isImmutableRows()
isImmutableRows
in interface PTable
public void getIndexMaintainers(ImmutableBytesWritable ptr, PhoenixConnection connection)
getIndexMaintainers
in interface PTable
public IndexMaintainer getIndexMaintainer(PTable dataTable, PhoenixConnection connection)
getIndexMaintainer
in interface PTable
public PName getDefaultFamilyName()
getDefaultFamilyName
in interface PTable
public boolean isWALDisabled()
isWALDisabled
in interface PTable
public boolean isMultiTenant()
isMultiTenant
in interface PTable
public boolean getStoreNulls()
getStoreNulls
in interface PTable
public PTable.ViewType getViewType()
getViewType
in interface PTable
public String getViewStatement()
getViewStatement
in interface PTable
public Short getViewIndexId()
getViewIndexId
in interface PTable
public int getEstimatedSize()
getEstimatedSize
in interface PMetaDataEntity
public PTable.IndexType getIndexType()
getIndexType
in interface PTable
public PTableStats getTableStats()
getTableStats
in interface PTable
public PName getParentSchemaName()
PTable
getParentSchemaName
in interface PTable
public int getBaseColumnCount()
getBaseColumnCount
in interface PTable
public boolean rowKeyOrderOptimizable()
PTable
rowKeyOrderOptimizable
in interface PTable
Copyright © 2015 Apache Software Foundation. All Rights Reserved.