Examples of Column


Examples of org.apache.accumulo.proxy.thrift.Column

    assertFalse(client.testTableClassLoad(creds, "bar", "abc123", SortedKeyValueIterator.class.getName()));
    assertTrue(client.testTableClassLoad(creds, "bar", VersioningIterator.class.getName(), SortedKeyValueIterator.class.getName()));
  }

  private Condition newCondition(String cf, String cq) {
    return new Condition(new Column(s2bb(cf), s2bb(cq), s2bb("")));
  }
View Full Code Here

Examples of org.apache.blur.agent.types.Column

    Map<String, Map<String, ColumnDefinition>> columnFamilies = schema.getFamilies();
    if (columnFamilies != null) {
      for (Map.Entry<String, Map<String, ColumnDefinition>> schemaEntry : columnFamilies.entrySet()) {
        Family family = new Family(schemaEntry.getKey());
        for (ColumnDefinition def : schemaEntry.getValue().values()) {
          Column column = new Column(def.getColumnName());
          column.setFullText(def.isFieldLessIndexed());
          //TODO: Rename this type
          column.setAnalyzer(def.getFieldType());
          //TODO: Do anything with subcolumns?
         
          family.getColumns().add(column);
        }
        columnDefs.add(family);
View Full Code Here

Examples of org.apache.blur.thrift.generated.Column

  private static Record getRecord(int numberOfColumns, int numberOfFamilies, int numberOfWords) {
    Record record = new Record();
    record.setRecordId(getRowId());
    record.setFamily(getFamily(numberOfFamilies));
    for (int i = 0; i < numberOfColumns; i++) {
      record.addToColumns(new Column("col" + i, getWords(numberOfWords)));
    }
    return record;
  }
View Full Code Here

Examples of org.apache.cassandra.avro.Column

            context.write(outputKey, Collections.singletonList(getMutation(word, sum)));
        }

        private static Mutation getMutation(Text word, int sum)
        {
            Column c = new Column();
            c.name = ByteBuffer.wrap(Arrays.copyOf(word.getBytes(), word.getLength()));
            c.value = ByteBufferUtil.bytes(String.valueOf(sum));
            c.timestamp = System.currentTimeMillis() * 1000;

            Mutation m = new Mutation();
View Full Code Here

Examples of org.apache.cassandra.db.Column

        {
            Map<String, ColumnFamily> map = new HashMap<String, ColumnFamily>();
            for (String key : keys)
            {
                ColumnFamily cf = ColumnFamily.create(ksname, cfname);
                cf.addColumn(new Column(ByteBufferUtil.bytes(key), ByteBufferUtil.bytes(key), 0));
                map.put(key, cf);
            }
            return write(map);
        }
View Full Code Here

Examples of org.apache.cassandra.hadoop.avro.Column

            context.write(outputKey, Collections.singletonList(getMutation(word, sum)));
        }

        private static Mutation getMutation(Text word, int sum)
        {
            Column c = new Column();
            c.name = ByteBuffer.wrap(Arrays.copyOf(word.getBytes(), word.getLength()));
            c.value = ByteBufferUtil.bytes(String.valueOf(sum));
            c.timestamp = System.currentTimeMillis() * 1000;

            Mutation m = new Mutation();
View Full Code Here

Examples of org.apache.cassandra.service.Column

            System.out.println("hosts with key " + row + " : " + hosts + "; choose " + endPoints.get(0));
       
            // now, read the row back directly from the host owning the row locally
            setup(endPoints.get(0).getHostAddress(), DatabaseDescriptor.getThriftPort());
            thriftClient.insert(table, row, col, "val1".getBytes(), 1, 1);
            Column column=thriftClient.get(table, row, col, 1).column;
            System.out.println("read row " + row + " " + new String(column.name) + ":" + new String(column.value) + ":" + column.timestamp);
        }
        System.exit(1);
    }
View Full Code Here

Examples of org.apache.cassandra.thrift.Column

                              new String(row.array()), StringUtils.join(endpoints, ","), firstEndpoint);

            // now, read the row back directly from the host owning the row locally
            tester.setup(firstEndpoint.getHostAddress(), DatabaseDescriptor.getRpcPort());
            tester.thriftClient.set_keyspace(keyspace);
            tester.thriftClient.insert(row, parent, new Column(ByteBufferUtil.bytes("col1"), ByteBufferUtil.bytes("val1"), 1), ConsistencyLevel.ONE);
            Column column = tester.thriftClient.get(row, col, ConsistencyLevel.ONE).column;
            System.out.println("read row " + new String(row.array()) + " " + new String(column.name.array()) + ":" + new String(column.value.array()) + ":" + column.timestamp);
        }

        System.exit(1);
    }
View Full Code Here

Examples of org.apache.click.control.Column

        // Setup customers table
        table.setClass("isi");
        table.setWidth("550px");
        table.setSortable(false);

        table.addColumn(new Column("name"));

        Column column = new Column("age");
        column.setTextAlign("center");
        table.addColumn(column);

        table.addColumn(new Column("investments"));

        column = new Column("holdings");
        column.setFormat("${0,number,#,##0.00}");
        column.setTextAlign("right");
        table.addColumn(column);

        column = new Column("dateJoined");
        column.setTextAlign("right");
        column.setFormat("{0, date,dd MMM yyyy}");
        table.addColumn(column);
    }
View Full Code Here

Examples of org.apache.commons.digester3.examples.api.dbinsert.Row.Column

        StringBuilder colnames = new StringBuilder();
        StringBuilder colvalues = new StringBuilder();

        for ( Iterator<Column> i = row.getColumns().iterator(); i.hasNext(); )
        {
            Column column = i.next();

            if ( colnames.length() > 0 )
            {
                colnames.append( ", " );
                colvalues.append( ", " );
            }

            colnames.append( "'" );
            colnames.append( column.getName() );
            colnames.append( "'" );

            colvalues.append( "'" );
            colvalues.append( column.getValue() );
            colvalues.append( "'" );
        }

        StringBuilder buf = new StringBuilder();
        buf.append( "insert into " );
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.