Package org.apache.cassandra.io.sstable.format

Examples of org.apache.cassandra.io.sstable.format.Version


        // generation
        int generation = Integer.parseInt(nexttok);

        // version
        nexttok = tokenStack.pop();
        Version version = fmt.info.getVersion(nexttok);

        if (!version.validate(nexttok))
            throw new UnsupportedOperationException("SSTable " + name + " is too old to open.  Upgrade to 2.0 first, and run upgradesstables");

        // optional temporary marker
        Type type = Descriptor.Type.FINAL;
        nexttok = tokenStack.peek();
        if (Descriptor.Type.TEMP.marker.equals(nexttok))
        {
            type = Descriptor.Type.TEMP;
            tokenStack.pop();
        }
        else if (Descriptor.Type.TEMPLINK.marker.equals(nexttok))
        {
            type = Descriptor.Type.TEMPLINK;
            tokenStack.pop();
        }

        // ks/cf names
        String ksname, cfname;
        if (version.hasNewFileName())
        {
            // for 2.1+ read ks and cf names from directory
            File cfDirectory = parentDirectory;
            // check if this is secondary index
            String indexName = "";
View Full Code Here


        this.filename = filename;
        this.key = key;
        this.flag = flag;
        this.validateColumns = checkData;

        Version dataVersion = sstable == null ? DatabaseDescriptor.getSSTableFormat().info.getLatestVersion() : sstable.descriptor.version;
        int expireBefore = (int) (System.currentTimeMillis() / 1000);
        columnFamily = ArrayBackedSortedColumns.factory.create(metadata);

        try
        {
View Full Code Here

TOP

Related Classes of org.apache.cassandra.io.sstable.format.Version

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.