public class CalculatePersonDistributionUtils extends Object
| Constructor and Description |
|---|
CalculatePersonDistributionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
createDsTypeValue(eu.dnetlib.data.proto.DatasourceProtos.Datasource ds) |
static String |
createPersonValue(eu.dnetlib.data.proto.PersonProtos.Person p) |
static org.apache.hadoop.io.Text |
getDsIdFromHdfsValue(org.apache.hadoop.io.Text text) |
static org.apache.hadoop.io.Text |
getNameFromHdfsValue(org.apache.hadoop.io.Text text) |
static String |
getPersonName(byte[] b) |
static String |
getType(byte[] b) |
static boolean |
isDsType(byte[] b) |
static boolean |
isPerson(byte[] b) |
static org.apache.hadoop.io.Text |
prepareHdfsKey(String dsId,
int count) |
static org.apache.hadoop.io.Text |
prepareHdfsValue(String dsId,
String name) |
public static final String SEPARATOR
public static String createPersonValue(eu.dnetlib.data.proto.PersonProtos.Person p)
public static String createDsTypeValue(eu.dnetlib.data.proto.DatasourceProtos.Datasource ds)
public static boolean isPerson(byte[] b)
public static boolean isDsType(byte[] b)
public static String getPersonName(byte[] b)
public static String getType(byte[] b)
public static org.apache.hadoop.io.Text prepareHdfsKey(String dsId, int count)
public static org.apache.hadoop.io.Text getDsIdFromHdfsValue(org.apache.hadoop.io.Text text)
public static org.apache.hadoop.io.Text getNameFromHdfsValue(org.apache.hadoop.io.Text text)
Copyright © 2017. All rights reserved.