Package org.apache.accumulo.core.file.rfile.bcfile.Utils

Examples of org.apache.accumulo.core.file.rfile.bcfile.Utils.Version


      this.comparator = makeComparator(strComparator);
    }
   
    // ctor for reads
    public TFileMeta(DataInput in) throws IOException {
      version = new Version(in);
      if (!version.compatibleWith(TFile.API_VERSION)) {
        throw new RuntimeException("Incompatible TFile fileVersion.");
      }
      recordCount = Utils.readVLong(in);
      strComparator = Utils.readString(in);
View Full Code Here


     
      // move the cursor to the beginning of the tail, containing: offset to the
      // meta block index, version and magic
      fin.seek(fileLength - Magic.size() - Version.size() - Long.SIZE / Byte.SIZE);
      long offsetIndexMeta = fin.readLong();
      version = new Version(fin);
      Magic.readAndVerify(fin);
     
      if (!version.compatibleWith(BCFile.API_VERSION)) {
        throw new RuntimeException("Incompatible BCFile fileBCFileVersion.");
      }
View Full Code Here

      if (cachedMetaIndex == null || cachedDataIndex == null) {
        // move the cursor to the beginning of the tail, containing: offset to the
        // meta block index, version and magic
        fin.seek(fileLength - Magic.size() - Version.size() - Long.SIZE / Byte.SIZE);
        long offsetIndexMeta = fin.readLong();
        version = new Version(fin);
        Magic.readAndVerify(fin);
       
        if (!version.compatibleWith(BCFile.API_VERSION)) {
          throw new RuntimeException("Incompatible BCFile fileBCFileVersion.");
        }
View Full Code Here

      this.comparator = makeComparator(strComparator);
    }

    // ctor for reads
    public TFileMeta(DataInput in) throws IOException {
      version = new Version(in);
      if (!version.compatibleWith(TFile.API_VERSION)) {
        throw new RuntimeException("Incompatible TFile fileVersion.");
      }
      recordCount = Utils.readVLong(in);
      strComparator = Utils.readString(in);
View Full Code Here

     
      // move the cursor to the beginning of the tail, containing: offset to the
      // meta block index, version and magic
      fin.seek(fileLength - Magic.size() - Version.size() - Long.SIZE / Byte.SIZE);
      long offsetIndexMeta = fin.readLong();
      version = new Version(fin);
      Magic.readAndVerify(fin);
     
      if (!version.compatibleWith(BCFile.API_VERSION)) {
        throw new RuntimeException("Incompatible BCFile fileBCFileVersion.");
      }
View Full Code Here

      if (cachedMetaIndex == null || cachedDataIndex == null) {
        // move the cursor to the beginning of the tail, containing: offset to the
        // meta block index, version and magic
        fin.seek(fileLength - Magic.size() - Version.size() - Long.SIZE / Byte.SIZE);
        long offsetIndexMeta = fin.readLong();
        version = new Version(fin);
        Magic.readAndVerify(fin);
       
        if (!version.compatibleWith(BCFile.API_VERSION)) {
          throw new RuntimeException("Incompatible BCFile fileBCFileVersion.");
        }
View Full Code Here

      this.in = fin;
      this.conf = conf;

      // Move the cursor to grab the version and the magic first
      fin.seek(fileLength - Magic.size() - Version.size());
      version = new Version(fin);
      Magic.readAndVerify(fin);

      // Do a version check
      if (!version.compatibleWith(BCFile.API_VERSION) && !version.equals(BCFile.API_VERSION_1)) {
        throw new RuntimeException("Incompatible BCFile fileBCFileVersion.");
View Full Code Here

      if (cachedMetaIndex == null || cachedDataIndex == null || cachedCryptoParams == null) {
        // move the cursor to the beginning of the tail, containing: offset to the
        // meta block index, version and magic
        // Move the cursor to grab the version and the magic first
        fin.seek(fileLength - Magic.size() - Version.size());
        version = new Version(fin);
        Magic.readAndVerify(fin);

        // Do a version check
        if (!version.compatibleWith(BCFile.API_VERSION) && !version.equals(BCFile.API_VERSION_1)) {
          throw new RuntimeException("Incompatible BCFile fileBCFileVersion.");
View Full Code Here

      this.comparator = makeComparator(strComparator);
    }
   
    // ctor for reads
    public TFileMeta(DataInput in) throws IOException {
      version = new Version(in);
      if (!version.compatibleWith(TFile.API_VERSION)) {
        throw new RuntimeException("Incompatible TFile fileVersion.");
      }
      recordCount = Utils.readVLong(in);
      strComparator = Utils.readString(in);
View Full Code Here

     
      // move the cursor to the beginning of the tail, containing: offset to the
      // meta block index, version and magic
      fin.seek(fileLength - Magic.size() - Version.size() - Long.SIZE / Byte.SIZE);
      long offsetIndexMeta = fin.readLong();
      version = new Version(fin);
      Magic.readAndVerify(fin);
     
      if (!version.compatibleWith(BCFile.API_VERSION)) {
        throw new RuntimeException("Incompatible BCFile fileBCFileVersion.");
      }
View Full Code Here

TOP

Related Classes of org.apache.accumulo.core.file.rfile.bcfile.Utils.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.