mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-25 20:55:59 +10:00
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-commons/trunk@753 84d0f5b1-2673-498c-a247-62c4ff18d310
64 lines
2.4 KiB
Java
64 lines
2.4 KiB
Java
package com.profiler.common.hbase;
|
|
|
|
import org.apache.hadoop.hbase.client.Delete;
|
|
import org.apache.hadoop.hbase.client.Put;
|
|
import org.springframework.data.hadoop.hbase.HbaseOperations;
|
|
import org.springframework.data.hadoop.hbase.RowMapper;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public interface HbaseOperations2 extends HbaseOperations {
|
|
/**
|
|
* Gets an individual row from the given table. The content is mapped by the given action.
|
|
*
|
|
* @param tableName target table
|
|
* @param rowName row name
|
|
* @param mapper row mapper
|
|
* @return object mapping the target row
|
|
*/
|
|
<T> T get(String tableName, byte[] rowName, final RowMapper<T> mapper);
|
|
|
|
/**
|
|
* Gets an individual row from the given table. The content is mapped by the given action.
|
|
*
|
|
* @param tableName target table
|
|
* @param rowName row name
|
|
* @param familyName column family
|
|
* @param mapper row mapper
|
|
* @return object mapping the target row
|
|
*/
|
|
<T> T get(String tableName, byte[] rowName, byte[] familyName, final RowMapper<T> mapper);
|
|
|
|
/**
|
|
* Gets an individual row from the given table. The content is mapped by the given action.
|
|
*
|
|
* @param tableName target table
|
|
* @param rowName row name
|
|
* @param familyName family
|
|
* @param qualifier column qualifier
|
|
* @param mapper row mapper
|
|
* @return object mapping the target row
|
|
*/
|
|
<T> T get(String tableName, final byte[] rowName, final byte[] familyName, final byte[] qualifier, final RowMapper<T> mapper);
|
|
|
|
|
|
void put(String tableName, final byte[] rowName, final byte[] familyName, final byte[] qualifier, final byte[] value);
|
|
|
|
void put(String tableName, final byte[] rowName, final byte[] familyName, final byte[] qualifier, final Long timestamp, final byte[] value);
|
|
|
|
<T> void put(String tableName, final byte[] rowName, final byte[] familyName, final byte[] qualifier, final T value, final ValueMapper<T> mapper);
|
|
|
|
<T> void put(String tableName, final byte[] rowName, final byte[] familyName, final byte[] qualifier, final Long timestamp, final T value, final ValueMapper<T> mapper);
|
|
|
|
void put(String tableName, final Put put);
|
|
|
|
void put(String tableName, final List<Put> puts);
|
|
|
|
void delete(String tableName, final Delete delete);
|
|
|
|
void delete(String tableName, final List<Delete> deletes);
|
|
}
|