Package org.apache.phoenix.schema

Examples of org.apache.phoenix.schema.PTableType


                    SchemaUtil.getVarChars(rowKey, rowKeyMetaData);
                    byte[] schemaBytes = rowKeyMetaData[0];
                    byte[] tableBytes = rowKeyMetaData[1];
                    byte[] tableName = SchemaUtil.getTableNameAsBytes(schemaBytes, tableBytes);
                    Cell tableTypeKv = result.getColumnLatestCell(OLD_DEFAULT_COLUMN_FAMILY_BYTES, TABLE_TYPE_BYTES);
                    PTableType tableType = PTableType.fromSerializedValue(tableTypeKv.getValueArray()[tableTypeKv.getValueOffset()]);
                    Cell dataNameKv = result.getColumnLatestCell(OLD_DEFAULT_COLUMN_FAMILY_BYTES, DATA_TABLE_NAME_BYTES);
                    // Update coprocessors if table is on white list or it's data table is on the white list
                    if (tableType != PTableType.SYSTEM
                            && (coprocUpgradeWhiteList.matches(tableName) || (dataNameKv != null
                            && coprocUpgradeWhiteList.matches(SchemaUtil.getTableName(schemaBytes, dataNameKv.getValue()))))) {
View Full Code Here

TOP

Related Classes of org.apache.phoenix.schema.PTableType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.