Package org.apache.hadoop.hbase.hbql.client

Examples of org.apache.hadoop.hbase.hbql.client.ExecutionResults


            }
            catch (IOException e) {
                throw new HBqlException(e);
            }

            final ExecutionResults results = new ExecutionResults("Delete count: " + cnt);
            results.setCount(cnt);
            return results;
        }
        finally {
            // release to table pool
            if (tableWrapper != null)
View Full Code Here


        super(null);
    }

    public ExecutionResults execute() {

        final ExecutionResults retval = new ExecutionResults();

        retval.out.println(VersionStatement.usage());

        retval.out.println(CreateMappingStatement.usage());
        retval.out.println(DropMappingStatement.usage());
View Full Code Here

        }
        catch (IOException e) {
            throw new HBqlException(e);
        }

        return new ExecutionResults(this.getCreateIndexMsg(indexList, includeList));
    }
View Full Code Here

            throw new HBqlException(e);
        }
        catch (InterruptedException e) {
            throw new HBqlException(e);
        }
        return new ExecutionResults("Table " + this.getTableName() + " split.");
    }
View Full Code Here

        super(null);
    }

    public ExecutionResults execute() {

        final ExecutionResults retval = new ExecutionResults();
        retval.out.println("Hadoop version: " + org.apache.hadoop.util.VersionInfo.getVersion());
        retval.out.println("HBase version: " + org.apache.hadoop.hbase.util.VersionInfo.getVersion());
        retval.out.println("HBql version: " + VersionInfo.getVersion());
        retval.out.flush();
View Full Code Here

        final HBaseAdmin admin = conn.getHBaseAdmin();

        for (final AlterTableAction alterTableAction : this.alterTableActionList)
            alterTableAction.execute(conn, admin, this.getTableName());

        return new ExecutionResults("Table " + this.getTableName() + " altered.");
    }
View Full Code Here

        }
        catch (IOException e) {
            throw new HBqlException(e);
        }

        return new ExecutionResults("Table " + this.getTableName() + " enabled.");
    }
View Full Code Here

        }
        catch (IOException e) {
            throw new HBqlException(e);
        }

        return new ExecutionResults("Table " + this.getTableName() + " disabled.");
    }
View Full Code Here

        super(null);
    }

    protected ExecutionResults execute(final HConnectionImpl conn) throws HBqlException {

        final ExecutionResults retval = new ExecutionResults();
        retval.out.println("Mappings: ");
        for (final HMapping mapping : conn.getAllMappings())
            retval.out.println("\t" + mapping.getMappingName() + " mapped to table " + mapping.getTableName());

        retval.out.flush();
View Full Code Here

    protected ExecutionResults execute(final HConnectionImpl conn) throws HBqlException {

        // this.validateMappingName(connection);

        conn.dropMapping(this.getMappingContext().getMappingName());
        return new ExecutionResults("Mapping " + this.getMappingContext().getMappingName() + " dropped.");
    }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.hbql.client.ExecutionResults

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.