Package com.nearinfinity.honeycomb.exceptions

Examples of com.nearinfinity.honeycomb.exceptions.TableNotFoundException


        try {
            final Result result = HBaseOperations.performGet(hTable, get);

            final byte[] tableIdBytes = result.getValue(columnFamily, serializedName);
            if (tableIdBytes == null) {
                throw new TableNotFoundException(tableName);
            }

            return deserializeId(tableIdBytes);
        } finally {
            HBaseOperations.closeTable(hTable);
View Full Code Here


        try {
            final Result result = HBaseOperations.performGet(hTable, get);

            final byte[] serializedSchema = result.getValue(columnFamily, serializedTableId);
            if (serializedSchema == null) {
                throw new TableNotFoundException(tableId);
            }

            checkNotNull(serializedSchema, "Schema cannot be null");
            return TableSchema.deserialize(serializedSchema);
        } finally {
View Full Code Here

        try {
            Get get = new Get(encodedRow);
            get.addFamily(columnFamily);
            Result result = HBaseOperations.performGet(hTable, get);
            if (result.isEmpty()) {
                throw new TableNotFoundException(tableId);
            }

            Map<byte[], byte[]> serializedNameIds = result.getFamilyMap(columnFamily);
            Map<String, Long> nameToId = new HashMap<String, Long>(serializedNameIds.size());
View Full Code Here

TOP

Related Classes of com.nearinfinity.honeycomb.exceptions.TableNotFoundException

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.