Package com.google.refine.model

Examples of com.google.refine.model.Recon


                int count = Integer.parseInt(value);
               
                for (int i = 0; i < count; i++) {
                    line = reader2.readLine();
                    if (line != null) {
                        Recon recon = Recon.loadStreaming(line, this);
                        if (recon != null) {
                            pool(recon);
                        }
                    }
                }
View Full Code Here


                if (cellIndex < row.cells.size()) {
                    Cell cell = row.cells.get(cellIndex);
                    if (cell != null && cell.recon != null) {
                        ReconCandidate candidate = cell.recon.getBestCandidate();
                        if (candidate != null) {
                            Recon newRecon;
                            if (dupReconMap.containsKey(cell.recon.id)) {
                                newRecon = dupReconMap.get(cell.recon.id);
                                newRecon.judgmentBatchSize++;
                            } else {
                                newRecon = cell.recon.dup(historyEntryID);
View Full Code Here

                    public boolean visit(Project project, int rowIndex, Row row) {
                        for (Column column : toColumns) {
                            int cellIndex = column.getCellIndex();
                            Cell cell = row.getCell(cellIndex);
                            if (cell != null && cell.value != null) {
                                Recon reconToCopy = cellValueToRecon.get(cell.value);
                                boolean judged = cell.recon != null && cell.recon.judgment != Judgment.None;
                               
                                if (reconToCopy != null && (!judged || _applyToJudgedCells)) {
                                    Cell newCell = new Cell(cell.value, reconToCopy);
                                    CellChange cellChange = new CellChange(rowIndex, cellIndex, cell, newCell);
View Full Code Here

        Project project,
        int rowIndex,
        int cellIndex,
        Cell cell
    ) {
        Recon recon = cell.recon;
       
        sb.append("\"rec"); sb.append(Long.toString(recon.id)); sb.append("\"");
        contextRefCount++;
       
        if (!serializedRecons.contains(recon.id)) {
View Full Code Here

       
        protected void writeChildren(
            String subject, Project project,
            int subjectRowIndex, int subjectCellIndex, Cell subjectCell) {
           
            Recon recon = subjectCell != null && subjectCell.recon != null &&
                    (subjectCell.recon.judgment == Judgment.Matched || subjectCell.recon.judgment == Judgment.New)
                ? subjectCell.recon : null;
           
            for (int i = 0; i < children.size(); i++) {
                WritingTransposedNode child = children.get(i);
View Full Code Here

                    sb.append(c instanceof String ? JSONObject.quote((String) c) : c.toString());
                }
               
                if (child instanceof CellTopicTransposedNode) {
                    CellTopicTransposedNode child2 = (CellTopicTransposedNode) child;
                    Recon recon = child2.cell.recon;
                   
                    if (recon != null &&
                        (recon.judgment == Judgment.Matched || recon.judgment == Judgment.New)) {
                       
                        if (firstRecon) {
View Full Code Here

TOP

Related Classes of com.google.refine.model.Recon

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.