Examples of HBTriplet


Examples of org.hbaseexplorer.domain.HBTriplet

                if (result != null) {
                    rowData.setRowKey(result.getRow());
                    rowKey = rowData.getRowKeyString();
                   
                    for (KeyValue kv : result.list()) {
                        rowData.add(new HBTriplet(kv.getFamily(), kv.getQualifier(), kv.getValue()));
                    }
                }
            }
            catch(IOException ioe) {
                throw new ExplorerException("Error getting data from table " + table.getFullName());
View Full Code Here

Examples of org.hbaseexplorer.domain.HBTriplet

        return 3;
    }

    public Object getValueAt(int rowIndex, int columnIndex) {
        refreshData(skip);
        HBTriplet triplet = rowData.get(rowIndex);
        switch(columnIndex) {
            //case 0: return triplet.getRowKeyString();
            case 0: return triplet.getFamilyString();
            case 1: return triplet.getQualifierString();
            case 2: return triplet.getValueString();
        }
        return "<empty>";
    }
View Full Code Here

Examples of org.hbaseexplorer.domain.HBTriplet

        JFrame mainFrame = HBaseExplorerApp.getApplication().getMainFrame();
        NewColumnDialog dialog = new NewColumnDialog(mainFrame, table);
        dialog.setLocationRelativeTo(mainFrame);
        HBaseExplorerApp.getApplication().show(dialog);

        HBTriplet triplet = dialog.getTriplet();
        if (triplet != null) {
            try {
                Put put = new Put(rowKey.getBytes());
                put.add(triplet.getFamily(), triplet.getQualifier(), triplet.getValue());
                table.getHTable().put(put);
                showData(0);
            } catch (IOException ex) {
                throw new ExplorerException("Error adding column : " + triplet);
            }
View Full Code Here

Examples of org.hbaseexplorer.domain.HBTriplet

    public void btnAddClickAction() {
        String family = familyComboBox.getModel().getSelectedItem().toString();
        String column = columnTextField.getText();
        String value = valueTextField.getText();

        triplet = new HBTriplet(family.getBytes(), column.getBytes(), value.getBytes());
        dispose();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.