Package org.apache.drill.exec.expr.holders

Examples of org.apache.drill.exec.expr.holders.RepeatedListHolder


    return maxOffset - currentOffset;
  }

  public void setPosition(int index){
    super.setPosition(index);
    RepeatedListHolder h = new RepeatedListHolder();
    container.getAccessor().get(index, h);
    if(h.start == h.end){
      currentOffset = NO_VALUES;
    }else{
      currentOffset = h.start-1;
View Full Code Here


      reader.setPosition(index);
      holder.reader = reader;
    }

    public void get(int index, int arrayIndex, ComplexHolder holder){
      RepeatedListHolder h = new RepeatedListHolder();
      get(index, h);
      int offset = h.start + arrayIndex;

      if(offset >= h.end){
        holder.reader = NullReader.INSTANCE;
View Full Code Here

    }


    @Override
    public boolean copyValueSafe(int from, int to) {
      RepeatedListHolder holder = new RepeatedListHolder();
      accessor.get(from, holder);
      int newIndex = this.to.offsets.getAccessor().get(to);
      //todo: make this a bulk copy.
      for(int i = holder.start; i < holder.end; i++, newIndex++){
        if(!vectorTransfer.copyValueSafe(i, newIndex)) return false;
View Full Code Here

  }

  @Override
  public void setPosition(int index) {
    super.setPosition(index);
    RepeatedListHolder h = new RepeatedListHolder();
    container.getAccessor().get(index, h);
    if (h.start == h.end) {
      currentOffset = NO_VALUES;
    } else {
      currentOffset = h.start-1;
View Full Code Here

      reader.setPosition(index);
      holder.reader = reader;
    }

    public void get(int index, int arrayIndex, ComplexHolder holder) {
      RepeatedListHolder h = new RepeatedListHolder();
      get(index, h);
      int offset = h.start + arrayIndex;

      if (offset >= h.end) {
        holder.reader = NullReader.INSTANCE;
View Full Code Here

      throw new UnsupportedOperationException();
    }

    @Override
    public boolean copyValueSafe(int from, int to) {
      RepeatedListHolder holder = new RepeatedListHolder();
      accessor.get(from, holder);
      int newIndex = this.to.offsets.getAccessor().get(to);
      //todo: make this a bulk copy.
      for (int i = holder.start; i < holder.end; i++, newIndex++) {
        if (!vectorTransfer.copyValueSafe(i, newIndex)) {
View Full Code Here

      reader.setPosition(index);
      holder.reader = reader;
    }

    public void get(int index, int arrayIndex, ComplexHolder holder){
      RepeatedListHolder h = new RepeatedListHolder();
      get(index, h);
      int offset = h.start + arrayIndex;

      if(offset >= h.end){
        holder.reader = NullReader.INSTANCE;
View Full Code Here

    }


    @Override
    public boolean copyValueSafe(int from, int to) {
      RepeatedListHolder holder = new RepeatedListHolder();
      accessor.get(from, holder);
      int newIndex = this.to.offsets.getAccessor().get(to);
      //todo: make this a bulk copy.
      for(int i = holder.start; i < holder.end; i++, newIndex++){
        if(!vectorTransfer.copyValueSafe(i, newIndex)) return false;
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.expr.holders.RepeatedListHolder

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.