Package org.apache.hadoop.hbase.thrift2
Class TestThriftHBaseServiceHandlerWithLabels
java.lang.Object
org.apache.hadoop.hbase.thrift2.TestThriftHBaseServiceHandlerWithLabels
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static org.apache.hadoop.conf.Configurationprivate static final Stringprivate static org.apache.hadoop.hbase.HColumnDescriptor[]private static byte[]private static byte[]private static final org.slf4j.Loggerprivate static final Stringprivate static final Stringprivate static byte[]private static byte[]private static final Stringprivate static org.apache.hadoop.hbase.security.Userprivate static byte[]private static final Stringprivate static final HBaseTestingUtilityprivate static byte[]private static byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvoidassertTColumnValuesEqual(List<org.apache.hadoop.hbase.thrift2.generated.TColumnValue> columnValuesA, List<org.apache.hadoop.hbase.thrift2.generated.TColumnValue> columnValuesB) static voidprivate org.apache.hadoop.hbase.thrift2.ThriftHBaseServiceHandlerprivate static voidprivate Stringpad(int n, byte pad) Padding numbers to make comparison of sort order easier in a for loop The number to pad.private static voidsetAuths()voidsetup()voidvoidvoidvoidvoidvoid
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
tableAname
-
familyAname
-
familyBname
-
qualifierAname
-
qualifierBname
-
valueAname
-
valueBname
-
families
-
TOPSECRET
- See Also:
-
PUBLIC
- See Also:
-
PRIVATE
- See Also:
-
CONFIDENTIAL
- See Also:
-
SECRET
- See Also:
-
SUPERUSER
-
conf
-
-
Constructor Details
-
TestThriftHBaseServiceHandlerWithLabels
-
-
Method Details
-
assertTColumnValuesEqual
public void assertTColumnValuesEqual(List<org.apache.hadoop.hbase.thrift2.generated.TColumnValue> columnValuesA, List<org.apache.hadoop.hbase.thrift2.generated.TColumnValue> columnValuesB) -
beforeClass
- Throws:
Exception
-
createLabels
- Throws:
IOExceptionInterruptedException
-
setAuths
- Throws:
IOException
-
afterClass
- Throws:
Exception
-
setup
- Throws:
Exception
-
createHandler
private org.apache.hadoop.hbase.thrift2.ThriftHBaseServiceHandler createHandler() throws IOException- Throws:
IOException
-
testScanWithVisibilityLabels
- Throws:
Exception
-
testGetScannerResultsWithAuthorizations
- Throws:
Exception
-
testGetsWithLabels
- Throws:
Exception
-
testIncrementWithTags
- Throws:
Exception
-
testIncrementWithTagsWithNotMatchLabels
- Throws:
Exception
-
testAppend
- Throws:
Exception
-
pad
Padding numbers to make comparison of sort order easier in a for loop The number to pad.- Parameters:
n- The number to pad.pad- The length to pad up to.- Returns:
- The padded number as a string.
-