Package com.cloudera.recordbreaker.analyzer

Examples of com.cloudera.recordbreaker.analyzer.TypeGuessSummary


            String schemaUrl = urlFor(SchemaPage.class, new PageParameters("schemaid=" + ss.getSchemaId())).toString();
            item.add(new ExternalLink("schemalabellink", schemaUrl, schemalabel.toString()));

            List<TypeGuessSummary> typeGuesses = ss.getTypeGuesses();
            for (int i = 0; i < Math.min(1, typeGuesses.size()); i++) {
              TypeGuessSummary curTGS = typeGuesses.get(i);
              FileSummary fs = curTGS.getFileSummary();

              PageParameters pars = new PageParameters();
              String fidUrl = urlFor(FilePage.class, new PageParameters("fid=" + fs.getFid())).toString();
              item.add(new ExternalLink("schemafilelink", fidUrl, fs.getFname()));
            }
View Full Code Here


            List<TypeGuessSummary> tgses = ts.getTypeGuesses();
            add(new Label("typecount", "" + tgses.size()));

            ListView<TypeGuessSummary> observationList = new ListView<TypeGuessSummary>("observations", tgses) {
              protected void populateItem(ListItem<TypeGuessSummary> item) {
                TypeGuessSummary tgs = item.getModelObject();
                FileSummary fs = tgs.getFileSummary();
                SchemaSummary ss = tgs.getSchemaSummary();

                String fileUrl = urlFor(FilePage.class, new PageParameters("fid=" + fs.getFid())).toString();
                item.add(new ExternalLink("filelink", fileUrl, fs.getFname()));

                String schemaUrl = urlFor(SchemaPage.class, new PageParameters("schemaid=" + ss.getSchemaId())).toString();
View Full Code Here

            add(new Label("lastmodified", fs.getLastModified()));
            add(new Label("crawledon", fs.getCrawl().getStartedDate()));

            // Schema data
            if (tgses.size() > 0) {
              TypeGuessSummary tgs = tgses.get(0);
              TypeSummary ts = tgs.getTypeSummary();         
              SchemaSummary ss = tgs.getSchemaSummary();
              String typeUrl = urlFor(FiletypePage.class, new PageParameters("typeid=" + ts.getTypeId())).toString();
              String schemaUrl = urlFor(SchemaPage.class, new PageParameters("schemaid=" + ss.getSchemaId())).toString();
              add(new Label("typelink", "<a href=\"" + typeUrl + "\">" + ts.getLabel() + "</a>").setEscapeModelStrings(false));
              add(new Label("schemalink", "<a href=\"" + schemaUrl + "\">" + "Schema" + "</a>").setEscapeModelStrings(false));
            } else {
View Full Code Here

TOP

Related Classes of com.cloudera.recordbreaker.analyzer.TypeGuessSummary

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.