Package org.apache.drill.exec.util

Examples of org.apache.drill.exec.util.JsonStringArrayList


    public int getCount(int index) {
      return offsets.getAccessor().get(index+1) - offsets.getAccessor().get(index);
    }
   
    public List<BigDecimal> getObject(int index) {
      List<BigDecimal> vals = new JsonStringArrayList();
      int start = offsets.getAccessor().get(index) - sliceOffset;
      int end = offsets.getAccessor().get(index+1) - sliceOffset;
      for(int i = start; i < end; i++){
        vals.add(values.getAccessor().getObject(i));
      }
      return vals;
    }
View Full Code Here


    public int getCount(int index) {
      return offsets.getAccessor().get(index+1) - offsets.getAccessor().get(index);
    }
   
    public List<Period> getObject(int index) {
      List<Period> vals = new JsonStringArrayList();
      int start = offsets.getAccessor().get(index) - sliceOffset;
      int end = offsets.getAccessor().get(index+1) - sliceOffset;
      for(int i = start; i < end; i++){
        vals.add(values.getAccessor().getObject(i));
      }
      return vals;
    }
View Full Code Here

    public int getCount(int index) {
      return offsets.getAccessor().get(index+1) - offsets.getAccessor().get(index);
    }
   
    public List<BigDecimal> getObject(int index) {
      List<BigDecimal> vals = new JsonStringArrayList();
      int start = offsets.getAccessor().get(index) - sliceOffset;
      int end = offsets.getAccessor().get(index+1) - sliceOffset;
      for(int i = start; i < end; i++){
        vals.add(values.getAccessor().getObject(i));
      }
      return vals;
    }
View Full Code Here

    public int getCount(int index) {
      return offsets.getAccessor().get(index+1) - offsets.getAccessor().get(index);
    }
   
    public List<Integer> getObject(int index) {
      List<Integer> vals = new JsonStringArrayList();
      int start = offsets.getAccessor().get(index) - sliceOffset;
      int end = offsets.getAccessor().get(index+1) - sliceOffset;
      for(int i = start; i < end; i++){
        vals.add(values.getAccessor().getObject(i));
      }
      return vals;
    }
View Full Code Here

    public int getCount(int index) {
      return offsets.getAccessor().get(index+1) - offsets.getAccessor().get(index);
    }
   
    public List<byte[]> getObject(int index) {
      List<byte[]> vals = new JsonStringArrayList();
      int start = offsets.getAccessor().get(index) - sliceOffset;
      int end = offsets.getAccessor().get(index+1) - sliceOffset;
      for(int i = start; i < end; i++){
        vals.add(values.getAccessor().getObject(i));
      }
      return vals;
    }
View Full Code Here

    public int getCount(int index) {
      return offsets.getAccessor().get(index+1) - offsets.getAccessor().get(index);
    }
   
    public List<Period> getObject(int index) {
      List<Period> vals = new JsonStringArrayList();
      int start = offsets.getAccessor().get(index) - sliceOffset;
      int end = offsets.getAccessor().get(index+1) - sliceOffset;
      for(int i = start; i < end; i++){
        vals.add(values.getAccessor().getObject(i));
      }
      return vals;
    }
View Full Code Here

    public int getCount(int index) {
      return offsets.getAccessor().get(index+1) - offsets.getAccessor().get(index);
    }
   
    public List<BigDecimal> getObject(int index) {
      List<BigDecimal> vals = new JsonStringArrayList();
      int start = offsets.getAccessor().get(index) - sliceOffset;
      int end = offsets.getAccessor().get(index+1) - sliceOffset;
      for(int i = start; i < end; i++){
        vals.add(values.getAccessor().getObject(i));
      }
      return vals;
    }
View Full Code Here

    public int getCount(int index) {
      return offsets.getAccessor().get(index+1) - offsets.getAccessor().get(index);
    }
   
    public List<Character> getObject(int index) {
      List<Character> vals = new JsonStringArrayList();
      int start = offsets.getAccessor().get(index) - sliceOffset;
      int end = offsets.getAccessor().get(index+1) - sliceOffset;
      for(int i = start; i < end; i++){
        vals.add(values.getAccessor().getObject(i));
      }
      return vals;
    }
View Full Code Here

    public int getCount(int index) {
      return offsets.getAccessor().get(index+1) - offsets.getAccessor().get(index);
    }
   
    public List<Byte> getObject(int index) {
      List<Byte> vals = new JsonStringArrayList();
      int start = offsets.getAccessor().get(index) - sliceOffset;
      int end = offsets.getAccessor().get(index+1) - sliceOffset;
      for(int i = start; i < end; i++){
        vals.add(values.getAccessor().getObject(i));
      }
      return vals;
    }
View Full Code Here

    public int getCount(int index) {
      return offsets.getAccessor().get(index+1) - offsets.getAccessor().get(index);
    }
   
    public List<DateTime> getObject(int index) {
      List<DateTime> vals = new JsonStringArrayList();
      int start = offsets.getAccessor().get(index) - sliceOffset;
      int end = offsets.getAccessor().get(index+1) - sliceOffset;
      for(int i = start; i < end; i++){
        vals.add(values.getAccessor().getObject(i));
      }
      return vals;
    }
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.util.JsonStringArrayList

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.