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

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


      if (firstValidCG >= 0) {
        List<CGRangeSplit> cgSplits = colGroups[firstValidCG].rangeSplit(n);
        int numSlices = cgSplits.size();
        ret = new ArrayList<RangeSplit>(numSlices);
        for (int slice = 0; slice < numSlices; slice++) {
          CGRangeSplit oneSliceSplit = cgSplits.get(slice);
          ret.add(new BasicTable.Reader.RangeSplit(oneSliceSplit));
        }

        return ret;
      } else { // all column groups are dropped.
        ret = new ArrayList<RangeSplit>(1);
        // add a dummy split
        ret.add(new BasicTable.Reader.RangeSplit(new CGRangeSplit(0, 0)));
        return ret;
      }
    }
View Full Code Here


       * @see Writable#readFields(DataInput)
       */
      @Override
      public void readFields(DataInput in) throws IOException {
        for (int nx = 0; nx < 1; nx++) {
          CGRangeSplit cgrs = new CGRangeSplit();
          cgrs.readFields(in);
          slice = cgrs;
        }
      }
View Full Code Here

       * @see Writable#readFields(DataInput)
       */
      @Override
      public void readFields(DataInput in) throws IOException {
        for (int nx = 0; nx < 1; nx++) {
          CGRangeSplit cgrs = new CGRangeSplit();
          cgrs.readFields(in);
          slice = cgrs;
        }
      }
View Full Code Here

      if (firstValidCG >= 0) {
        List<CGRangeSplit> cgSplits = colGroups[firstValidCG].rangeSplit(n);
        int numSlices = cgSplits.size();
        ret = new ArrayList<RangeSplit>(numSlices);
        for (int slice = 0; slice < numSlices; slice++) {
          CGRangeSplit oneSliceSplit = cgSplits.get(slice);
          ret.add(new BasicTable.Reader.RangeSplit(oneSliceSplit));
        }

        return ret;
      } else { // all column groups are dropped.
        ret = new ArrayList<RangeSplit>(1);
        // add a dummy split
        ret.add(new BasicTable.Reader.RangeSplit(new CGRangeSplit(0, 0)));
        return ret;
      }
    }
View Full Code Here

      @Override
      public void readFields(DataInput in) throws IOException {
        int count = Utils.readVInt(in);
        slice = new CGRangeSplit[count];
        for (int nx = 0; nx < count; nx++) {
          CGRangeSplit cgrs = new CGRangeSplit();
          cgrs.readFields(in);
          slice[nx] = cgrs;
        }
      }
View Full Code Here

      if (firstValidCG >= 0) {
        List<CGRangeSplit> cgSplits = colGroups[firstValidCG].rangeSplit(n);
        int numSlices = cgSplits.size();
        ret = new ArrayList<RangeSplit>(numSlices);
        for (int slice = 0; slice < numSlices; slice++) {
          CGRangeSplit oneSliceSplit = cgSplits.get(slice);
          ret.add(new BasicTable.Reader.RangeSplit(oneSliceSplit));
        }

        return ret;
      } else { // all column groups are dropped.
        ret = new ArrayList<RangeSplit>(1);
        // add a dummy split
        ret.add(new BasicTable.Reader.RangeSplit(new CGRangeSplit(0, 0)));
        return ret;
      }
    }
View Full Code Here

       * @see Writable#readFields(DataInput)
       */
      @Override
      public void readFields(DataInput in) throws IOException {
        for (int nx = 0; nx < 1; nx++) {
          CGRangeSplit cgrs = new CGRangeSplit();
          cgrs.readFields(in);
          slice = cgrs;
        }
      }
View Full Code Here

TOP

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

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.