Examples of readFields()


Examples of com.cloudera.flume.handlers.hdfs.WriteableEvent.readFields()

    ByteArrayInputStream bais = new ByteArrayInputStream(bs);
    GZIPInputStreamExposeSize gzis = new GZIPInputStreamExposeSize(bais);
    DataInputStream dis = new DataInputStream(gzis);

    WriteableEvent out = new WriteableEvent();
    out.readFields(dis);
    long gunSz = gzis.getDecompressSize(); // must be done before closed.
    dis.close();
    super.append(out);
    gunzipSize.addAndGet(gunSz);
  }
View Full Code Here

Examples of com.datasalt.pangool.io.Utf8.readFields()

    Utf8 t = (Utf8)tuple.get(index);
    if (t == null){
      t = new Utf8();
      tuple.set(index,t);
    }
    t.readFields(input);
  }
 
  protected void readCustomObject(DataInputStream input,ITuple tuple,Class<?> expectedType,int index,
      FieldDeserializer customDeser)
      throws IOException{
View Full Code Here

Examples of com.ebay.erl.mobius.core.datajoin.DataJoinKey.readFields()

   
    DataInputStream in1 = new DataInputStream(new ByteArrayInputStream(ba1));
    DataInputStream in2 = new DataInputStream(new ByteArrayInputStream(ba2));
   
    DataJoinKey k_1 = new DataJoinKey();
    k_1.readFields(in1);
   
    DataJoinKey k_2 = new DataJoinKey();
    k_2.readFields(in2);
   
    Assert.assertEquals(-1, k_1.compareTo(k_2));
View Full Code Here

Examples of com.ebay.erl.mobius.core.model.Tuple.readFields()

      while ( this.buffer.size()<this.bufferSize && this.currentReadTuples<totalTuples )
      {         
        Tuple t = new Tuple();
        try
        {
          t.readFields(this.reader);
          t.setSchema(this.schema)
        }
        catch (IOException e)
        {
          throw new RuntimeException("Cannot deserialize tuples from underline file:"+source.toString(), e);
View Full Code Here

Examples of com.inadco.hbl.api.Range.readFields()

    public void readFields(DataInput in) throws IOException {
        int keyNum = HblUtil.readVarUint32(in);
        pathRange = new Range[keyNum];
        for (int i = 0; i < keyNum; i++) {
            Range r = new Range();
            r.readFields(in);
            pathRange[i] = r;
        }
        initTransients();
    }
View Full Code Here

Examples of com.linkedin.camus.etl.kafka.common.EtlRequest.readFields()

  @Override
  public void readFields(DataInput in) throws IOException {
    int size = in.readInt();
    for (int i = 0; i < size; i++) {
      CamusRequest r = new EtlRequest();
      r.readFields(in);
      requests.add(r);
      length += r.estimateDataSize();
    }
  }
View Full Code Here

Examples of com.linkedin.camus.workallocater.CamusRequest.readFields()

  @Override
  public void readFields(DataInput in) throws IOException {
    int size = in.readInt();
    for (int i = 0; i < size; i++) {
      CamusRequest r = new EtlRequest();
      r.readFields(in);
      requests.add(r);
      length += r.estimateDataSize();
    }
  }
View Full Code Here

Examples of com.salesforce.phoenix.expression.Expression.readFields()

            int size = WritableUtils.readVInt(input);
            List<Expression> selectExpressions = Lists.newArrayListWithExpectedSize(size);
            for (int i = 0; i < size; i++) {
                ExpressionType type = ExpressionType.values()[WritableUtils.readVInt(input)];
                Expression selectExpression = type.newInstance();
                selectExpression.readFields(input);
                selectExpressions.add(selectExpression);
            }
            return selectExpressions;
        } catch (IOException e) {
            throw new RuntimeException(e);
View Full Code Here

Examples of com.salesforce.phoenix.expression.OrderByExpression.readFields()

            int estimatedRowSize = WritableUtils.readVInt(input);
            int size = WritableUtils.readVInt(input);
            List<OrderByExpression> orderByExpressions = Lists.newArrayListWithExpectedSize(size);          
            for (int i = 0; i < size; i++) {
                OrderByExpression orderByExpression = new OrderByExpression();
                orderByExpression.readFields(input);
                orderByExpressions.add(orderByExpression);
            }
            ResultIterator inner = new RegionScannerResultIterator(s);
            return new OrderedResultIterator(inner, orderByExpressions, thresholdBytes, limit >= 0 ? limit : null, estimatedRowSize);
        } catch (IOException e) {
View Full Code Here

Examples of com.salesforce.phoenix.expression.function.SingleAggregateFunction.readFields()

            Aggregator[] aggregators = new Aggregator[len];
            Expression[] expressions = new Expression[len];
            SingleAggregateFunction[] functions = new SingleAggregateFunction[len];
            for (int i = 0; i < aggregators.length; i++) {
                SingleAggregateFunction aggFunc = (SingleAggregateFunction)ExpressionType.values()[WritableUtils.readVInt(input)].newInstance();
                aggFunc.readFields(input, conf);
                functions[i] = aggFunc;
                aggregators[i] = aggFunc.getAggregator();
                expressions[i] = aggFunc.getAggregatorExpression();
            }
            return new ServerAggregators(functions, aggregators,expressions, minNullableIndex);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.