Package org.apache.xindice.core.filer

Examples of org.apache.xindice.core.filer.Filer


        TestSuite suite = new TestSuite("Xindice unit tests");

        // If the Berkeley filer was built in then test it too.
        try {
            Class filerClass = Class.forName("org.apache.xindice.core.filer.BerkeleyBTreeFiler");
            Filer filer = (Filer) filerClass.newInstance();
            suite.addTest(new FilerTestBase("BerkeleyFilerTestCase", filer));
        } catch (Exception e) {
            // If the class wasn't built just ignore it.
        }
View Full Code Here


        TestSuite suite = new TestSuite("Xindice unit tests");

        // If the Berkeley filer was built in then test it too.
        try {
            Class filerClass = Class.forName("org.apache.xindice.core.filer.BerkeleyBTreeFiler");
            Filer filer = (Filer) filerClass.newInstance();
            suite.addTest(new FilerTestBase("BerkeleyFilerTestCase", filer){});
        } catch (Exception e) {
            // If the class wasn't built just ignore it.
        }
View Full Code Here

            log.error("Could not close filer for collection " + canonicalName, e);
            return false;
        }

        // prepare
        Filer itsFiler = col.getFiler();
        FilerCopy oldFiler;
        FilerCopy newFiler;
        if (itsFiler == null) {
            if (log.isInfoEnabled()) {
                log.info("Collection " + col.getCanonicalName() + " has no filer. Skipping...");
            }

            return true;
        } if (itsFiler instanceof BTreeFiler) {
            oldFiler = new BTreeCopy();
            newFiler = new BTreeCopy();
        } else if (itsFiler instanceof HashFiler) {
            oldFiler = new HashCopy();
            newFiler = new HashCopy();
        } else {
            if (log.isInfoEnabled()) {
                log.info("Collection " + col.getCanonicalName() + " has unrecognized filer '" + itsFiler.getClass().getName() + "'. Skipping...");
            }

            return true;
        }
View Full Code Here

        TestSuite suite = new TestSuite("Xindice unit tests");

        // If the Berkeley filer was built in then test it too.
        try {
            Class filerClass = Class.forName("org.apache.xindice.core.filer.BerkeleyBTreeFiler");
            Filer filer = (Filer) filerClass.newInstance();
            suite.addTest(new FilerTestBase("BerkeleyFilerTestCase", filer));
        } catch (Exception e) {
            // If the class wasn't built just ignore it.
        }
View Full Code Here

TOP

Related Classes of org.apache.xindice.core.filer.Filer

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.