Package org.apache.tajo.ipc.TajoWorkerProtocol

Examples of org.apache.tajo.ipc.TajoWorkerProtocol.QueryUnitRequestProtoOrBuilder


    return proto;
  }

  @Override
  public QueryUnitAttemptId getId() {
    QueryUnitRequestProtoOrBuilder p = viaProto ? proto : builder;
    if (id != null) {
      return this.id;
    }
    if (!p.hasId()) {
      return null;
    }
    this.id = new QueryUnitAttemptId(p.getId());
    return this.id;
  }
View Full Code Here


    return this.id;
  }

  @Override
  public List<Fragment> getFragments() {
    QueryUnitRequestProtoOrBuilder p = viaProto ? proto : builder;
    if (fragments != null) {
      return fragments;
    }
    if (fragments == null) {
      fragments = new ArrayList<Fragment>();
    }
    for (int i = 0; i < p.getFragmentsCount(); i++) {
      fragments.add(new Fragment(p.getFragments(i)));
    }
    return this.fragments;
  }
View Full Code Here

    return this.fragments;
  }

  @Override
  public String getOutputTableId() {
    QueryUnitRequestProtoOrBuilder p = viaProto ? proto : builder;
    if (outputTable != null) {
      return this.outputTable;
    }
    if (!p.hasOutputTable()) {
      return null;
    }
    this.outputTable = p.getOutputTable();
    return this.outputTable;
  }
View Full Code Here

    return this.outputTable;
  }

  @Override
  public boolean isClusteredOutput() {
    QueryUnitRequestProtoOrBuilder p = viaProto ? proto : builder;
    if (isUpdated) {
      return this.clusteredOutput;
    }
    if (!p.hasClusteredOutput()) {
      return false;
    }
    this.clusteredOutput = p.getClusteredOutput();
    this.isUpdated = true;
    return this.clusteredOutput;
  }
View Full Code Here

    return this.clusteredOutput;
  }

  @Override
  public String getSerializedData() {
    QueryUnitRequestProtoOrBuilder p = viaProto ? proto : builder;
    if (this.serializedData != null) {
      return this.serializedData;
    }
    if (!p.hasSerializedData()) {
      return null;
    }
    this.serializedData = p.getSerializedData();
    return this.serializedData;
  }
View Full Code Here

    this.serializedData = p.getSerializedData();
    return this.serializedData;
  }
 
  public boolean isInterQuery() {
    QueryUnitRequestProtoOrBuilder p = viaProto ? proto : builder;
    if (interQuery != null) {
      return interQuery;
    }
    if (!p.hasInterQuery()) {
      return false;
    }
    this.interQuery = p.getInterQuery();
    return this.interQuery;
  }
View Full Code Here

      .setUrls(uri.toString()).build());
   
  }

  public QueryContext getQueryContext() {
    QueryUnitRequestProtoOrBuilder p = viaProto ? proto : builder;
    if (queryContext != null) {
      return queryContext;
    }
    if (!p.hasQueryContext()) {
      return null;
    }
    this.queryContext = new QueryContext(p.getQueryContext());
    return this.queryContext;
  }
View Full Code Here

    this.dataChannel = dataChannel;
  }

  @Override
  public DataChannel getDataChannel() {
    QueryUnitRequestProtoOrBuilder p = viaProto ? proto : builder;
    if (dataChannel != null) {
      return dataChannel;
    }
    if (!p.hasDataChannel()) {
      return null;
    }
    this.dataChannel = new DataChannel(p.getDataChannel());
    return this.dataChannel;
  }
View Full Code Here

    return this.dataChannel;
  }

  @Override
  public Enforcer getEnforcer() {
    QueryUnitRequestProtoOrBuilder p = viaProto ? proto : builder;
    if (enforcer != null) {
      return enforcer;
    }
    if (!p.hasEnforcer()) {
      return null;
    }
    this.enforcer = new Enforcer(p.getEnforcer());
    return this.enforcer;
  }
View Full Code Here

 
  private void initFetches() {
    if (this.fetches != null) {
      return;
    }
    QueryUnitRequestProtoOrBuilder p = viaProto ? proto : builder;
    this.fetches = new ArrayList<Fetch>();
    for(Fetch fetch : p.getFetchesList()) {
      fetches.add(fetch);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.tajo.ipc.TajoWorkerProtocol.QueryUnitRequestProtoOrBuilder

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.