Package com.k_int.IR

Examples of com.k_int.IR.RecordFormatSpecification


            st.setRequestedSyntax(requested_syntax);
            st.setRequestedSyntaxName(requested_syntax_name);

            InformationFragment[] raw_records;
            RecordFormatSpecification rfSpec = new RecordFormatSpecification(requested_syntax_name,
                    null, recordFormatSetname);
            LOGGER.finer("calling getFragment(" + (start) + "," + count + ")");
            raw_records = st.getTaskResultSet().getFragment(start, count, rfSpec);

            if (raw_records == null) {
View Full Code Here


        geoSource.init(testProps);

        GeoSearchTask task = (GeoSearchTask) geoSource.createTask(testQuery,
                null);
        task.evaluate(2000);
        spec = new RecordFormatSpecification("sutrs", null, "B");

        InformationFragment frag = task.getFragment(1, spec);
        String result = frag.getOriginalObject().toString();
        LOGGER.fine("the result is " + result);
        assertTrue(result.equals("Water Supply Watersheds"));

        spec = new RecordFormatSpecification("html", null, "S");

        InformationFragment[] fragArr = task.getFragment(1, 2, spec);
        String result2 = fragArr[1].getOriginalObject().toString();
        LOGGER.fine("the result is " + result2);
    }
View Full Code Here

        GeoSearchTask task = (GeoSearchTask) geoSource.createTask(testQuery,
                null);
        task.evaluate(2000);

        spec = new RecordFormatSpecification("html", null, "S");

        InformationFragment[] fragArr = task.getFragment(1, 2, spec);
        String result2 = fragArr[1].getOriginalObject().toString();
        LOGGER.fine("the result is " + result2);
        assertTrue(result2.substring(0, 16).equals("<P><B>TITLE=Dust"));
View Full Code Here

        GeoSearchTask task = (GeoSearchTask) geoSource.createTask(testQuery,
                null);
        task.evaluate(2000);

        spec = new RecordFormatSpecification("xml", null, "F");

        InformationFragment[] fragArr = task.getFragment(1, 1, spec);
        String result2 = fragArr[0].getOriginalObject().toString();
        LOGGER.fine("the result is " + result2);
View Full Code Here

TOP

Related Classes of com.k_int.IR.RecordFormatSpecification

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.