Examples of ColumnList


Examples of com.knowgate.hipergate.datamodel.ColumnList

   */ 
  public void importFile(Connection oConn, String sWorkArea, int iFlags, String sFilePath, String sColumnList)
    throws ImportExportException {
  try {
   
    ColumnList oColsList = new ColumnList();
    Collections.addAll(oColsList, (Object[]) Gadgets.split(sColumnList,','));

    // Prepare SQL statements
    prepare(oConn, oColsList);
   
View Full Code Here

Examples of com.netflix.astyanax.model.ColumnList

            // time passes...

            OperationResult<ColumnList<DateTime>> result = future.get();

            ColumnList columns = result.getResult();

            Iterator ii = columns.iterator();
            while (ii.hasNext()) {
                Column column = (Column) ii.next();
                DateTime timestamp = (DateTime) column.getName();
                Reading reading = new Reading(sensorId, timestamp, (Reading) column.getValue(ReadingSerializer.get()));
                readings.add(reading);
View Full Code Here

Examples of org.apache.storm.hbase.common.ColumnList

        return toBytes(objVal);
    }

    @Override
    public ColumnList columns(TridentTuple tuple) {
        ColumnList cols = new ColumnList();
        if(this.columnFields != null){
            // TODO timestamps
            for(String field : this.columnFields){
                cols.addColumn(this.columnFamily, field.getBytes(), toBytes(tuple.getValueByField(field)));
            }
        }
        if(this.counterFields != null){
            for(String field : this.counterFields){
                cols.addCounter(this.columnFamily, field.getBytes(), toLong(tuple.getValueByField(field)));
            }
        }
        return cols;
    }
View Full Code Here

Examples of org.apache.storm.hbase.common.ColumnList

    public void updateState(List<TridentTuple> tuples, TridentCollector collector) {
        List<Mutation> mutations = Lists.newArrayList();

        for (TridentTuple tuple : tuples) {
            byte[] rowKey = options.mapper.rowKey(tuple);
            ColumnList cols = options.mapper.columns(tuple);
            mutations.addAll(hBaseClient.constructMutationReq(rowKey, cols, options.durability));
        }

        try {
            hBaseClient.batchMutate(mutations);
View Full Code Here

Examples of org.apache.storm.hbase.common.ColumnList

    }

    @Override
    public void execute(Tuple tuple) {
        byte[] rowKey = this.mapper.rowKey(tuple);
        ColumnList cols = this.mapper.columns(tuple);
        List<Mutation> mutations = hBaseClient.constructMutationReq(rowKey, cols, writeToWAL? Durability.SYNC_WAL : Durability.SKIP_WAL);

        try {
            this.hBaseClient.batchMutate(mutations);
        } catch(Exception e){
View Full Code Here

Examples of org.apache.storm.hbase.common.ColumnList

        return toBytes(objVal);
    }

    @Override
    public ColumnList columns(Tuple tuple) {
        ColumnList cols = new ColumnList();
        if(this.columnFields != null){
            // TODO timestamps
            for(String field : this.columnFields){
                cols.addColumn(this.columnFamily, field.getBytes(), toBytes(tuple.getValueByField(field)));
            }
        }
        if(this.counterFields != null){
            for(String field : this.counterFields){
                cols.addCounter(this.columnFamily, field.getBytes(), toLong(tuple.getValueByField(field)));
            }
        }
        return cols;
    }
View Full Code Here

Examples of org.openmhealth.reference.domain.ColumnList

    this.authenticationToken = authenticationToken;
    this.authorizationToken = authorizationToken;
    this.schemaId = schemaId;
    this.version = version;
    this.columnList = new ColumnList(columnList);
   
    if(owner == null) {
      this.owner = authenticationToken.getUsername();
    }
    else {
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.