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

com.flipkart.hbaseobjectmapper.exceptions.BothHBColumnAnnotationsPresentException 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. This can also be used as an ORM for Bigtable.

The newest version!
package com.flipkart.hbaseobjectmapper.exceptions;

import com.flipkart.hbaseobjectmapper.HBColumn;
import com.flipkart.hbaseobjectmapper.HBColumnMultiVersion;

import java.lang.reflect.Field;

public class BothHBColumnAnnotationsPresentException extends IllegalArgumentException {

    public BothHBColumnAnnotationsPresentException(Field field) {
        super(String.format("Class %s has a field %s that's annotated with both @%s and @%s (you can use only one of them on a field)", field.getDeclaringClass(), field.getName(), HBColumn.class.getName(), HBColumnMultiVersion.class.getName()));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy