public interface PTable extends PMetaDataEntity
Modifier and Type | Interface and Description |
---|---|
static interface |
PTable.ColumnValueEncoderDecoderSupplier |
static class |
PTable.EncodedCQCounter
Class to help track encoded column qualifier counters per column family.
|
static class |
PTable.ImmutableStorageScheme |
static class |
PTable.IndexType |
static class |
PTable.LinkType |
static interface |
PTable.QualifierEncoderDecoder |
static class |
PTable.QualifierEncodingScheme |
static class |
PTable.ViewType |
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_DISABLE_WAL |
static long |
INITIAL_SEQ_NUM |
static String |
IS_IMMUTABLE_ROWS_PROP_NAME |
Modifier and Type | Method and Description |
---|---|
String |
getAutoPartitionSeqName() |
int |
getBaseColumnCount() |
Integer |
getBucketNum()
Return the number of buckets used by this table for salting.
|
List<PColumnFamily> |
getColumnFamilies() |
PColumnFamily |
getColumnFamily(byte[] family)
Get the column family with the given name
|
PColumnFamily |
getColumnFamily(String family) |
PColumn |
getColumnForColumnName(String name)
Get the column with the given string name.
|
PColumn |
getColumnForColumnQualifier(byte[] cf,
byte[] cq)
Get the column with the given column qualifier.
|
List<PColumn> |
getColumns()
Get all columns ordered by position.
|
PName |
getDefaultFamilyName() |
PTable.EncodedCQCounter |
getEncodedCQCounter() |
PTable.QualifierEncodingScheme |
getEncodingScheme() |
PTable.ImmutableStorageScheme |
getImmutableStorageScheme() |
long |
getIndexDisableTimestamp() |
List<PTable> |
getIndexes()
Return the list of indexes defined on this table.
|
IndexMaintainer |
getIndexMaintainer(PTable dataTable,
PhoenixConnection connection) |
boolean |
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() |
PName |
getParentSchemaName() |
PName |
getParentTableName() |
PName |
getPhysicalName()
For a view, return the name of table in HBase that physically stores data.
|
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() |
int |
getRowTimestampColPos() |
PName |
getSchemaName() |
long |
getSequenceNumber() |
boolean |
getStoreNulls() |
PName |
getTableName() |
PName |
getTenantId() |
long |
getTimeStamp() |
TransactionFactory.Provider |
getTransactionProvider() |
PTableType |
getType() |
long |
getUpdateCacheFrequency() |
Short |
getViewIndexId() |
String |
getViewStatement() |
PTable.ViewType |
getViewType() |
boolean |
isAppendOnlySchema() |
boolean |
isImmutableRows() |
boolean |
isMultiTenant() |
boolean |
isNamespaceMapped() |
boolean |
isTransactional() |
boolean |
isWALDisabled() |
int |
newKey(ImmutableBytesWritable key,
byte[][] values)
Formulates a row key using the values provided.
|
PRow |
newRow(KeyValueBuilder builder,
ImmutableBytesWritable key,
boolean hasOnDupKey,
byte[]... values)
Creates a new row for the PK values (from
newKey(ImmutableBytesWritable, byte[][])
and the optional key values specified using values. |
PRow |
newRow(KeyValueBuilder builder,
long ts,
ImmutableBytesWritable key,
boolean hasOnDupKey,
byte[]... values)
Creates a new row at the specified timestamp using the key
for the PK values (from
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.
|
Boolean |
useStatsForParallelization() |
getEstimatedSize
static final long INITIAL_SEQ_NUM
static final String IS_IMMUTABLE_ROWS_PROP_NAME
static final boolean DEFAULT_DISABLE_WAL
long getTimeStamp()
long getSequenceNumber()
long getIndexDisableTimestamp()
PName getName()
PName getSchemaName()
PName getTableName()
PName getTenantId()
PTableType getType()
PName getPKName()
List<PColumn> getPKColumns()
List<PColumn> getColumns()
List<PColumnFamily> getColumnFamilies()
PColumnFamily getColumnFamily(byte[] family) throws ColumnFamilyNotFoundException
family
- the column family nameColumnFamilyNotFoundException
- if the column family cannot be foundPColumnFamily getColumnFamily(String family) throws ColumnFamilyNotFoundException
ColumnFamilyNotFoundException
PColumn getColumnForColumnName(String name) throws ColumnNotFoundException, AmbiguousColumnException
name
- the column nameColumnNotFoundException
- if no column with the given name
can be foundAmbiguousColumnException
- if multiple columns are found with the given namePColumn getColumnForColumnQualifier(byte[] cf, byte[] cq) throws ColumnNotFoundException, AmbiguousColumnException
column
- qualifier bytesColumnNotFoundException
- if no column with the given column qualifier can be foundAmbiguousColumnException
- if multiple columns are found with the given column qualifierPColumn getPKColumn(String name) throws ColumnNotFoundException
name
- the column nameColumnNotFoundException
- if no PK column with the given name
can be foundColumnNotFoundException
PRow newRow(KeyValueBuilder builder, long ts, ImmutableBytesWritable key, boolean hasOnDupKey, byte[]... values)
newKey(ImmutableBytesWritable, byte[][])
and the optional key values specified using values.ts
- the timestamp that the key value will have when committedkey
- the row key of the key valuehasOnDupKey
- true if row has an ON DUPLICATE KEY clause and false otherwise.values
- the optional key valuesPRow.toRowMutations()
to
generate the Row to send to the HBase server.ConstraintViolationException
- if row data violates schema
constraintPRow newRow(KeyValueBuilder builder, ImmutableBytesWritable key, boolean hasOnDupKey, byte[]... values)
newKey(ImmutableBytesWritable, byte[][])
and the optional key values specified using values. The timestamp of the key value
will be set by the HBase server.key
- the row key of the key valuehasOnDupKey
- true if row has an ON DUPLICATE KEY clause and false otherwise.values
- the optional key valuesPRow.toRowMutations()
to
generate the row to send to the HBase server.ConstraintViolationException
- if row data violates schema
constraintint newKey(ImmutableBytesWritable key, byte[][] values)
getPKColumns()
.key
- bytes pointer that will be filled in with the row keyvalues
- the PK column valuesRowKeySchema getRowKeySchema()
Integer getBucketNum()
List<PTable> getIndexes()
PIndexState getIndexState()
PName getParentName()
PName getParentTableName()
PName getParentSchemaName()
List<PName> getPhysicalNames()
PName getPhysicalName()
boolean isImmutableRows()
boolean getIndexMaintainers(ImmutableBytesWritable ptr, PhoenixConnection connection)
IndexMaintainer getIndexMaintainer(PTable dataTable, PhoenixConnection connection)
PName getDefaultFamilyName()
boolean isWALDisabled()
boolean isMultiTenant()
boolean getStoreNulls()
boolean isTransactional()
TransactionFactory.Provider getTransactionProvider()
PTable.ViewType getViewType()
String getViewStatement()
Short getViewIndexId()
PTableKey getKey()
PTable.IndexType getIndexType()
int getBaseColumnCount()
boolean rowKeyOrderOptimizable()
int getRowTimestampColPos()
PColumn.isRowTimestamp()
as true.
-1 if there is no such column.long getUpdateCacheFrequency()
boolean isNamespaceMapped()
String getAutoPartitionSeqName()
boolean isAppendOnlySchema()
PTable.ImmutableStorageScheme getImmutableStorageScheme()
PTable.QualifierEncodingScheme getEncodingScheme()
PTable.EncodedCQCounter getEncodedCQCounter()
Boolean useStatsForParallelization()
Copyright © 2019 Apache Software Foundation. All Rights Reserved.