Package org.apache.hadoop.zebra.io.ColumnGroup.Reader

Examples of org.apache.hadoop.zebra.io.ColumnGroup.Reader.CGRowSplit


     
      List<CGRowSplit> cgSplits = colGroups[splitCGIndex].rowSplit(starts, lengths, paths);
      int numSlices = cgSplits.size();
      ret = new ArrayList<RowSplit>(numSlices);
      for (int slice = 0; slice < numSlices; slice++) {
        CGRowSplit cgRowSplit = cgSplits.get(slice);
        ret.add(new BasicTable.Reader.RowSplit(splitCGIndex, cgRowSplit));
      }
       
      return ret;
    }
View Full Code Here


       * @see Writable#readFields(DataInput)
       */
      @Override
      public void readFields(DataInput in) throws IOException {
        this.cgIndex = Utils.readVInt(in);
        CGRowSplit cgrs = new CGRowSplit();
        cgrs.readFields(in);
        this.slice = cgrs;
      }
View Full Code Here

       * Creates new CGRowSplit. If the startRow in rowSplit is not set
       * (i.e. < 0), it sets the startRow and numRows based on 'startByte'
       * and 'numBytes' from given rowSplit.
       */
      private CGRowSplit makeCGRowSplit(RowSplit rowSplit) throws IOException {
        CGRowSplit inputCGSplit = rowSplit.getCGRowSplit();

        int cgIdx = rowSplit.getCGIndex();
       
        CGRowSplit cgSplit = new CGRowSplit();
        cgSplit.name = inputCGSplit.name;
        // startByte and numBytes from inputCGSplit are ignored, since
        // they make sense for only one CG.
        cgSplit.startRow = inputCGSplit.startRow;
        cgSplit.numRows = inputCGSplit.numRows;
View Full Code Here

                   BytesWritable beginKey, BytesWritable endKey,
                   boolean closeReader, Partition partition) throws IOException {
        this.partition = partition;
        boolean anyScanner = false;
       
        CGRowSplit cgRowSplit = null;
        if (rowSplit != null) {
          cgRowSplit = makeCGRowSplit(rowSplit);
        }
       
        try {
View Full Code Here

       * @see Writable#readFields(DataInput)
       */
      @Override
      public void readFields(DataInput in) throws IOException {
        this.cgIndex = Utils.readVInt(in);
        CGRowSplit cgrs = new CGRowSplit();
        cgrs.readFields(in);
        this.slice = cgrs;
      }
View Full Code Here

       * Creates new CGRowSplit. If the startRow in rowSplit is not set
       * (i.e. < 0), it sets the startRow and numRows based on 'startByte'
       * and 'numBytes' from given rowSplit.
       */
      private CGRowSplit makeCGRowSplit(RowSplit rowSplit) throws IOException {
        CGRowSplit inputCGSplit = rowSplit.getCGRowSplit();

        int cgIdx = rowSplit.getCGIndex();
       
        CGRowSplit cgSplit = new CGRowSplit();

        // Find the row range :
        if (isCGDeleted(cgIdx)) {
          throw new IOException("CG " + cgIdx + " is deleted.");
        }
View Full Code Here

                   BytesWritable beginKey, BytesWritable endKey,
                   boolean closeReader, Partition partition) throws IOException {
        this.partition = partition;
        boolean anyScanner = false;
       
        CGRowSplit cgRowSplit = null;
        if (rowSplit != null) {
          cgRowSplit = makeCGRowSplit(rowSplit);
        }

        try {
View Full Code Here

      List<RowSplit> ret;     
      List<CGRowSplit> cgSplits = colGroups[splitCGIndex].rowSplit(starts, lengths, paths, batchSizes, numBatches);
      int numSlices = cgSplits.size();
      ret = new ArrayList<RowSplit>(numSlices);
      for (int slice = 0; slice < numSlices; slice++) {
        CGRowSplit cgRowSplit = cgSplits.get(slice);
        ret.add(new BasicTable.Reader.RowSplit(splitCGIndex, cgRowSplit));
      }
       
      return ret;
    }
View Full Code Here

      List<RowSplit> ret;     
      List<CGRowSplit> cgSplits = colGroups[splitCGIndex].rowSplit(starts, lengths, paths, batchSizes, numBatches);
      int numSlices = cgSplits.size();
      ret = new ArrayList<RowSplit>(numSlices);
      for (int slice = 0; slice < numSlices; slice++) {
        CGRowSplit cgRowSplit = cgSplits.get(slice);
        ret.add(new BasicTable.Reader.RowSplit(splitCGIndex, cgRowSplit));
      }
       
      return ret;
    }
View Full Code Here

       * @see Writable#readFields(DataInput)
       */
      @Override
      public void readFields(DataInput in) throws IOException {
        this.cgIndex = Utils.readVInt(in);
        CGRowSplit cgrs = new CGRowSplit();
        cgrs.readFields(in);
        this.slice = cgrs;
      }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.zebra.io.ColumnGroup.Reader.CGRowSplit

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.