All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.flipkart.hbaseobjectmapper.HBTable Maven / Gradle / Ivy

Go to download

HBase ORM is a light-weight, thread-safe and performant library that enables: [1] object-oriented access of HBase rows (Data Access Object) with minimal code and good testability [2] reading from and/or writing to HBase tables in Hadoop MapReduce jobs

There is a newer version: 1.19
Show newest version
package com.flipkart.hbaseobjectmapper;

import com.flipkart.hbaseobjectmapper.codec.Codec;

import java.io.Serializable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.lang.reflect.Type;
import java.util.Map;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Maps an entity class to a table in HBase
 */
@Target(TYPE)
@Retention(RUNTIME)
public @interface HBTable {
    /**
     * Name of the HBase table
     *
     * @return Name of the HBase table
     */
    String name();


    /**
     * Column families and their specs
     *
     * @return Column families and their specs
     */
    Family[] families() default {};

    /**
     * [optional] flags to be passed to codec's {@link Codec#serialize(Serializable, Map) serialize} and {@link Codec#deserialize(byte[], Type, Map) deserialize} methods
     * 

* Note: These flags will be passed as a Map<String, String> (param name and param value) * * @return Flags */ Flag[] rowKeyCodecFlags() default {}; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy