public class OafHbaseUtils
extends eu.dnetlib.data.transform.OafUtils
| Constructor and Description |
|---|
OafHbaseUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Iterable<eu.dnetlib.data.proto.OafProtos.Oaf> |
asOaf(Iterable<ImmutableBytesWritable> in) |
static Put |
asPut(eu.dnetlib.data.proto.OafProtos.Oaf oaf) |
static eu.dnetlib.data.mapreduce.util.OafDecoder |
decode(ImmutableBytesWritable oaf) |
static com.google.common.base.Function<ImmutableBytesWritable,eu.dnetlib.data.mapreduce.util.OafDecoder> |
decoder() |
static eu.dnetlib.data.proto.OafProtos.Oaf |
getBody(Result value,
eu.dnetlib.data.proto.TypeProtos.Type type) |
static byte[] |
getBodyB(Result value,
eu.dnetlib.data.proto.TypeProtos.Type type) |
static <T> String |
getKey(Iterable<T> ts) |
static <T> String |
getKey(T t) |
static List<String> |
getPropertyValues(org.apache.hadoop.mapreduce.Mapper.Context context,
String name) |
static List<String> |
getPropertyValues(org.apache.hadoop.mapreduce.Reducer.Context context,
String name) |
static <T> String |
getValue(Iterable<T> ts) |
static <T> String |
getValue(T t) |
static <T> Set<String> |
hashSetKeys(Iterable<T> ts) |
static <T> Set<String> |
hashSetValues(Iterable<T> ts) |
static <T> List<String> |
listKeys(Iterable<T> ts) |
static <T> List<String> |
listObjects(Iterable<T> ts) |
static <T> List<String> |
listValues(Iterable<T> ts) |
static <T> String |
mapObject(T t) |
static <T> String |
mapValue(T t) |
static com.google.common.base.Function<ImmutableBytesWritable,eu.dnetlib.data.proto.OafProtos.Oaf> |
oafDecoder() |
static eu.dnetlib.data.proto.OafProtos.Oaf |
parse(ImmutableBytesWritable input) |
static eu.dnetlib.data.proto.OafProtos.Oaf |
parseProto(byte[] value) |
static List<eu.dnetlib.data.proto.OafProtos.Oaf> |
rel(Result value) |
public static eu.dnetlib.data.mapreduce.util.OafDecoder decode(ImmutableBytesWritable oaf)
public static com.google.common.base.Function<ImmutableBytesWritable,eu.dnetlib.data.mapreduce.util.OafDecoder> decoder()
public static Iterable<eu.dnetlib.data.proto.OafProtos.Oaf> asOaf(Iterable<ImmutableBytesWritable> in)
public static com.google.common.base.Function<ImmutableBytesWritable,eu.dnetlib.data.proto.OafProtos.Oaf> oafDecoder()
public static eu.dnetlib.data.proto.OafProtos.Oaf parse(ImmutableBytesWritable input)
public static <T> String getValue(T t)
public static <T> String getKey(T t)
public static <T> String mapValue(T t)
public static <T> String mapObject(T t)
public static List<String> getPropertyValues(org.apache.hadoop.mapreduce.Reducer.Context context, String name)
public static List<String> getPropertyValues(org.apache.hadoop.mapreduce.Mapper.Context context, String name)
public static eu.dnetlib.data.proto.OafProtos.Oaf parseProto(byte[] value)
public static Put asPut(eu.dnetlib.data.proto.OafProtos.Oaf oaf)
public static byte[] getBodyB(Result value, eu.dnetlib.data.proto.TypeProtos.Type type)
public static eu.dnetlib.data.proto.OafProtos.Oaf getBody(Result value, eu.dnetlib.data.proto.TypeProtos.Type type) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionCopyright © 2019. All rights reserved.