Examples of VoltFile


Examples of org.voltdb.utils.VoltFile

        return results;
    }

    private final List<File> retrieveRelevantFiles(String filePath) {
        final File path = new VoltFile(filePath);

        if (!path.exists()) {
            m_errorString = "Provided search path does not exist: " + filePath;
            return null;
        }

        if (!path.isDirectory()) {
            m_errorString = "Provided path exists but is not a directory: " + filePath;
            return null;
        }

        if (!path.canRead()) {
            if (!path.setReadable(true)) {
                m_errorString = "Provided path exists but is not readable: " + filePath;
                return null;
            }
        }
View Full Code Here

Examples of org.voltdb.utils.VoltFile

        return new VoltTable[] {result};
    }

    private final List<File> retrieveRelevantFiles(String filePath, String nonce) {
        final File path = new VoltFile(filePath);

        if (!path.exists()) {
            //m_errorString = "Provided search path does not exist: " + filePath;
            return null;
        }

        if (!path.isDirectory()) {
            //m_errorString = "Provided path exists but is not a directory: " + filePath;
            return null;
        }

        if (!path.canRead()) {
            if (!path.setReadable(true)) {
                //m_errorString = "Provided path exists but is not readable: " + filePath;
                return null;
            }
        }

        if (!path.canWrite()) {
            if (!path.setWritable(true)) {
                //m_errorString = "Provided path exists but is not writable: " + filePath;
                return null;
            }
        }
View Full Code Here

Examples of org.voltdb.utils.VoltFile

     * @param name
     * @throws IOException
     */
    public Runnable writeCatalogJarToFile(String path, String name) throws IOException
    {
        File catalog_file = new VoltFile(path, name);
        if (catalog_file.exists())
        {
            catalog_file.delete();
        }
        return m_jarfile.writeToFile(catalog_file);
    }
View Full Code Here

Examples of org.voltdb.utils.VoltFile

    private final BinaryDeque m_persistentDeque;

    private final String m_nonce;

    public StreamBlockQueue(String path, String nonce) throws java.io.IOException {
        m_persistentDeque = new PersistentBinaryDeque( nonce, new VoltFile(path));
        m_nonce = nonce;
    }
View Full Code Here

Examples of org.voltdb.utils.VoltFile

            } else {
                boolean status = dir.mkdirs();
                assert (status);
            }

            File dirFile = new VoltFile(testoutputdir);
            if (dirFile.listFiles() != null) {
                for (File f : dirFile.listFiles()) {
                    if (f.getName().startsWith(getName() + "-" + hostId)) {
                        f.delete();
                    }
                }
            }
View Full Code Here

Examples of org.voltdb.utils.VoltFile

        }

        if (partitionColumn != null) {
            m_partitionColumnName = partitionColumn.getName();
        }
        File adFile = new VoltFile(overflowPath, nonce + ".ad");
        exportLog.info("Creating ad for " + nonce);
        assert(!adFile.exists());
        byte jsonBytes[] = null;
        try {
            JSONStringer stringer = new JSONStringer();
            stringer.object();
            stringer.key("database").value(m_database);
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.