Package org.apache.hadoop.hbase.io.hfile

Examples of org.apache.hadoop.hbase.io.hfile.SimpleBlockCache$Ref


      testWrite(fs, path, Compression.Algorithm.NONE, null);
      testRead(fs, path);
    }

    public void writePlainWithCache (FileSystem fs, Path path) {
      testWrite(fs, path, Compression.Algorithm.NONE, new SimpleBlockCache());
      testRead(fs, path);
    }
View Full Code Here


      testWrite(fs, path, Compression.getCompressionAlgorithmByName("gz"), null);
      testRead(fs, path);
    }

    public void writeCompressWithCache (FileSystem fs, Path path) {
      testWrite(fs, path, Compression.getCompressionAlgorithmByName("gz"), new SimpleBlockCache());
      testRead(fs, path);
    }
View Full Code Here

      }
    }

    private void testRead (FileSystem fs, Path path) {
      try {
        HFile.Reader reader = new HFile.Reader(fs, path, new SimpleBlockCache(), false, true);
        reader.loadFileInfo();

        HFileScanner scanner = reader.getScanner(false, true);
        scanner.seekTo();
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.io.hfile.SimpleBlockCache$Ref

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.