Package org.apache.hadoop.hbase.client.tableindexed

Examples of org.apache.hadoop.hbase.client.tableindexed.IndexSpecification


        final ColumnAttrib keyAttrib;

        if (this.hasAnIndex()) {
            // Need to look up the index
            final IndexSpecification index = conn.getIndexForTable(this.getIndexName(), mapping.getTableName());
            final byte[][] cols = index.getIndexedColumns();
            final String indexedColumName = new String(cols[0]);
            keyAttrib = mapping.getAttribByVariableName(indexedColumName);
        }
        else {
            keyAttrib = mapping.getKeyAttrib();
View Full Code Here


        return indexDesc.getIndex(indexName);
    }

    public boolean indexExistsForTable(final String indexName, final String tableName) throws HBqlException {
        this.checkIfClosed();
        final IndexSpecification index = this.getIndexForTable(indexName, tableName);
        return index != null;
    }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.client.tableindexed.IndexSpecification

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.