Class HBaseSubEntityResultParser<EK extends io.datarouter.model.key.entity.EntityKey<EK>,PK extends io.datarouter.model.key.primary.EntityPrimaryKey<EK,PK>,D extends io.datarouter.model.databean.Databean<PK,D>>
java.lang.Object
io.datarouter.client.hbase.node.subentity.HBaseSubEntityResultParser<EK,PK,D>
public class HBaseSubEntityResultParser<EK extends io.datarouter.model.key.entity.EntityKey<EK>,PK extends io.datarouter.model.key.primary.EntityPrimaryKey<EK,PK>,D extends io.datarouter.model.databean.Databean<PK,D>> extends Object
-
Constructor Summary
Constructors Modifier Constructor Description protectedHBaseSubEntityResultParser(Supplier<PK> primaryKeySupplier, Supplier<EK> entityKeySupplier, List<io.datarouter.model.field.Field<?>> ekFields, List<io.datarouter.model.field.Field<?>> ekPkKeyFields, List<io.datarouter.model.field.Field<?>> postEkPkFields, Map<String,io.datarouter.model.field.Field<?>> nonKeyFieldsByColumnNames, int numPrefixBytes, byte[] entityColumnPrefixBytes, Field keyJavaField, Supplier<D> databeanSupplier) -
Method Summary
Modifier and Type Method Description List<D>getDatabeansForKvsWithMatchingQualifierPrefix(List<org.apache.hadoop.hbase.Cell> cells, Integer limit)List<D>getDatabeansWithMatchingQualifierPrefix(org.apache.hadoop.hbase.client.Result row, Integer limit)List<D>getDatabeansWithMatchingQualifierPrefixMulti(org.apache.hadoop.hbase.client.Result[] rows)EKgetEkFromRowBytes(byte[] rowBytes)List<PK>getPrimaryKeysWithMatchingQualifierPrefix(List<org.apache.hadoop.hbase.Cell> cells, Integer limit)List<PK>getPrimaryKeysWithMatchingQualifierPrefix(org.apache.hadoop.hbase.client.Result row)List<PK>getPrimaryKeysWithMatchingQualifierPrefix(org.apache.hadoop.hbase.client.Result row, Integer limit)List<PK>getPrimaryKeysWithMatchingQualifierPrefixMulti(org.apache.hadoop.hbase.client.Result[] rows)io.datarouter.util.tuple.Pair<PK,String>parsePrimaryKeyAndFieldName(org.apache.hadoop.hbase.Cell cell)voidsetDatabeanField(D databean, String fieldName, byte[] bytesValue)
-
Constructor Details
-
HBaseSubEntityResultParser
protected HBaseSubEntityResultParser(Supplier<PK> primaryKeySupplier, Supplier<EK> entityKeySupplier, List<io.datarouter.model.field.Field<?>> ekFields, List<io.datarouter.model.field.Field<?>> ekPkKeyFields, List<io.datarouter.model.field.Field<?>> postEkPkFields, Map<String,io.datarouter.model.field.Field<?>> nonKeyFieldsByColumnNames, int numPrefixBytes, byte[] entityColumnPrefixBytes, Field keyJavaField, Supplier<D> databeanSupplier)
-
-
Method Details
-
getEkFromRowBytes
-
parsePrimaryKeyAndFieldName
-
getPrimaryKeysWithMatchingQualifierPrefixMulti
-
getDatabeansWithMatchingQualifierPrefixMulti
-
getPrimaryKeysWithMatchingQualifierPrefix
-
getPrimaryKeysWithMatchingQualifierPrefix
-
getPrimaryKeysWithMatchingQualifierPrefix
-
getDatabeansWithMatchingQualifierPrefix
-
getDatabeansForKvsWithMatchingQualifierPrefix
-
setDatabeanField
-