Java Code Examples for org.apache.hadoop.hbase.client.Put.isEmpty()

The following are Jave code examples for showing how to use isEmpty() of the org.apache.hadoop.hbase.client.Put class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: aliyun-maxcompute-data-collectors   File:   Source Code and License Vote up 6 votes
 * Processes a record by extracting its field map and converting
 * it into a list of Put commands into HBase.
public void accept(FieldMappable record)
    throws IOException, ProcessingException {
  Map<String, Object> fields = record.getFieldMap();

  List<Put> putList = putTransformer.getPutCommand(fields);
  if (null != putList) {
    for (Put put : putList) {
      if (put!=null) {
        if (put.isEmpty()) {
          LOG.warn("Could not insert row with no columns "
              + "for row-key column: " + Bytes.toString(put.getRow()));
        } else {