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