Uses of Interface
org.apache.hadoop.hbase.Tag
Package
Description
Provides HBase Client
Provides row-level filters applied to HRegion scan results during calls to
ResultScanner.next()
.Provides HBase MapReduce
Input/OutputFormats, a table indexing MapReduce job, and utility methods.
-
Uses of Tag in org.apache.hadoop.hbase
Modifier and TypeClassDescriptionclass
This is aTag
implementation in which value is backed by an on heap byte array.class
This is aTag
implementation in which value is backed byByteBuffer
Modifier and TypeMethodDescriptionTagUtil.asList
(byte[] b, int offset, int length) Creates list of tags from given byte array, expected that it is in the expected tag format.TagUtil.carryForwardTags
(List<Tag> tagsOrNull, ExtendedCell cell) Add totagsOrNull
any Tagscell
is carrying or null if none.TagUtil.carryForwardTags
(ExtendedCell cell) Returns A List<Tag> of any Tags found incell
else null.TagUtil.carryForwardTTLTag
(List<Tag> tagsOrNull, long ttl) Returns Carry forward the TTL tag.ByteBufferKeyOnlyKeyValue.getTag
(byte type) PrivateCellUtil.getTag
(ExtendedCell cell, byte type) Retrieve Cell's first tag, matching the passed in typeRawCell.getTag
(byte type) Returns the specific tag of the given typeByteBufferKeyOnlyKeyValue.getTags()
PrivateCellUtil.getTags
(ExtendedCell cell) Return tags in the given Cell as a ListRawCell.getTags()
Creates a list of tags in the current cellPrivateCellUtil.tagsIterator
(ByteBuffer tags, int offset, int length) PrivateCellUtil.tagsIterator
(ExtendedCell cell) Utility method to iterate through the tags in the given cell.Modifier and TypeMethodDescriptionstatic byte[]
Tag.cloneValue
(Tag tag) Returns tag value in a new byte array.static void
Tag.copyValueTo
(Tag tag, byte[] out, int offset) Copies the tag's value bytes to the given byte arraystatic byte
Tag.getValueAsByte
(Tag tag) Converts the value bytes of the given tag into a byte valuestatic long
Tag.getValueAsLong
(Tag tag) Converts the value bytes of the given tag into a long valuestatic String
Tag.getValueAsString
(Tag tag) Converts the value bytes of the given tag into a String valuestatic boolean
Tag.matchingValue
(Tag t1, Tag t2) Matches the value part of given tagsTagUtil.readVIntValuePart
(Tag tag, int offset) Reads an int value stored as a VInt at tag's given offset.static int
KeyValue.writeByteArray
(byte[] buffer, int boffset, byte[] row, int roffset, int rlength, byte[] family, int foffset, int flength, byte[] qualifier, int qoffset, int qlength, long timestamp, KeyValue.Type type, byte[] value, int voffset, int vlength, Tag[] tags) Write KeyValue format into the provided byte array.Modifier and TypeMethodDescriptionTagUtil.carryForwardTags
(List<Tag> tagsOrNull, ExtendedCell cell) Add totagsOrNull
any Tagscell
is carrying or null if none.TagUtil.carryForwardTTLTag
(List<Tag> tagsOrNull, long ttl) Returns Carry forward the TTL tag.private static byte[]
KeyValue.createByteArray
(byte[] row, int roffset, int rlength, byte[] family, int foffset, int flength, Object qualifier, int qoffset, int qlength, long timestamp, KeyValue.Type type, Object value, int voffset, int vlength, List<Tag> tags) static ExtendedCell
PrivateCellUtil.createCell
(ExtendedCell cell, List<Tag> tags) Returns A new cell which is having the extra tags also added to it.static Cell
RawCell.createCell
(Cell cell, List<Tag> tags) Returns A new cell which is having the extra tags also added to it.static byte[]
Write a list of tags into a byte array Note : these are all purely internal APIs.ModifierConstructorDescriptionConstructs KeyValue structure filled with specified values.KeyValue
(byte[] buffer, int boffset, byte[] row, int roffset, int rlength, byte[] family, int foffset, int flength, byte[] qualifier, int qoffset, int qlength, long timestamp, KeyValue.Type type, byte[] value, int voffset, int vlength, Tag[] tags) Constructs KeyValue structure filled with specified values.ModifierConstructorDescriptionKeyValue
(byte[] row, byte[] family, byte[] qualifier, int qoffset, int qlength, long timestamp, KeyValue.Type type, byte[] value, int voffset, int vlength, List<Tag> tags) Constructs KeyValue structure filled with specified values.Constructs KeyValue structure filled with specified values.KeyValue
(byte[] row, byte[] family, byte[] qualifier, long timestamp, KeyValue.Type type, byte[] value, List<Tag> tags) Constructs KeyValue structure filled with specified values.KeyValue
(byte[] row, int roffset, int rlength, byte[] family, int foffset, int flength, byte[] qualifier, int qoffset, int qlength, long timestamp, KeyValue.Type type, byte[] value, int voffset, int vlength, List<Tag> tags) Constructs KeyValue structure filled with specified values.KeyValue
(byte[] row, int roffset, int rlength, byte[] family, int foffset, int flength, ByteBuffer qualifier, long ts, KeyValue.Type type, ByteBuffer value, List<Tag> tags) -
Uses of Tag in org.apache.hadoop.hbase.client
Modifier and TypeMethodDescription(package private) KeyValue
Mutation.createPutKeyValue
(byte[] family, byte[] qualifier, long ts, byte[] value, Tag[] tags) Create a KeyValue with this objects row key and the Put identifier.(package private) KeyValue
Mutation.createPutKeyValue
(byte[] family, ByteBuffer qualifier, long ts, ByteBuffer value, Tag[] tags) Create a KeyValue with this objects row key and the Put identifier. -
Uses of Tag in org.apache.hadoop.hbase.filter
-
Uses of Tag in org.apache.hadoop.hbase.mapreduce
Modifier and TypeMethodDescriptionDefaultVisibilityExpressionResolver.createVisibilityExpTags
(String visExpression) VisibilityExpressionResolver.createVisibilityExpTags
(String visExpression) Convert visibility expression into tags to be serialized. -
Uses of Tag in org.apache.hadoop.hbase.mob
Modifier and TypeMethodDescriptionMobUtils.getTableNameTag
(ExtendedCell cell) Gets the table name tag.Modifier and TypeMethodDescriptionstatic ExtendedCell
MobUtils.createMobRefCell
(ExtendedCell cell, byte[] fileName, Tag tableNameTag) Creates a mob reference KeyValue.Modifier and TypeMethodDescriptionstatic boolean
MobUtils.hasMobReferenceTag
(List<Tag> tags) Whether the tag list has a mob reference tag. -
Uses of Tag in org.apache.hadoop.hbase.security.visibility
Modifier and TypeFieldDescriptionprivate static final Tag[]
DefaultVisibilityLabelServiceImpl.LABELS_TABLE_TAGS
static final Tag
VisibilityUtils.SORTED_ORDINAL_SERIALIZATION_FORMAT_TAG
Modifier and TypeFieldDescriptionVisibilityController.DeleteVersionVisibilityExpressionFilter.deleteCellVisTags
VisibilityScanDeleteTracker.EMPTY_TAG
This tag is used for the DELETE cell which has no visibility label.VisibilityNewVersionBehaivorTracker.TagInfo.tags
VisibilityScanDeleteTracker.visibilityTagsDeleteColumns
VisibilityScanDeleteTracker.visibilityTagsDeleteFamily
VisibilityScanDeleteTracker.visibilityTagsDeleteFamilyVersion
VisibilityScanDeleteTracker.visiblityTagsDeleteColumnVersion
Modifier and TypeMethodDescriptionVisibilityController.checkForReservedVisibilityTagPresence
(ExtendedCell cell, Pair<Boolean, Tag> pair) Checks whether cell contains any tag with type as VISIBILITY_TAG_TYPE.DefaultVisibilityLabelServiceImpl.createVisibilityExpTags
(String visExpression, boolean withSerializationFormat, boolean checkAuths) VisibilityLabelService.createVisibilityExpTags
(String visExpression, boolean withSerializationFormat, boolean checkAuths) Creates tags corresponding to given visibility expression.VisibilityUtils.createVisibilityExpTags
(String visExpression, boolean withSerializationFormat, boolean checkAuths, Set<Integer> auths, VisibilityLabelOrdinalProvider ordinalProvider) Modifier and TypeMethodDescriptionprivate static void
DefaultVisibilityLabelServiceImpl.getSortedTagOrdinals
(List<List<Integer>> fullTagsList, Tag tag) Modifier and TypeMethodDescriptionVisibilityController.checkForReservedVisibilityTagPresence
(ExtendedCell cell, Pair<Boolean, Tag> pair) Checks whether cell contains any tag with type as VISIBILITY_TAG_TYPE.private byte[]
DefaultVisibilityLabelServiceImpl.createModifiedVisExpression
(List<Tag> tags) - all the visibility tags associated with the current Cellbyte[]
DefaultVisibilityLabelServiceImpl.encodeVisibilityForReplication
(List<Tag> tags, Byte serializationFormat) byte[]
VisibilityLabelService.encodeVisibilityForReplication
(List<Tag> visTags, Byte serializationFormat) Provides a way to modify the visibility tags of typeTagType
.VISIBILITY_TAG_TYPE, that are part of the cell created from the WALEdits that are prepared for replication while callingReplicationEndpoint
.replicate().static Byte
VisibilityUtils.extractAndPartitionTags
(ExtendedCell cell, List<Tag> visTags, List<Tag> nonVisTags) Extracts and partitions the visibility tags and nonVisibility Tagsstatic Byte
VisibilityUtils.extractVisibilityTags
(ExtendedCell cell, List<Tag> tags) Extract the visibility tags of the given Cell into the given Listprivate static boolean
DefaultVisibilityLabelServiceImpl.matchOrdinalSortedVisibilityTags
(List<Tag> putVisTags, List<Tag> deleteVisTags) private static boolean
DefaultVisibilityLabelServiceImpl.matchUnSortedVisibilityTags
(List<Tag> putVisTags, List<Tag> deleteVisTags) boolean
DefaultVisibilityLabelServiceImpl.matchVisibility
(List<Tag> putVisTags, Byte putTagsFormat, List<Tag> deleteVisTags, Byte deleteTagsFormat) boolean
VisibilityLabelService.matchVisibility
(List<Tag> putVisTags, Byte putVisTagFormat, List<Tag> deleteVisTags, Byte deleteVisTagFormat) System uses this for deciding whether a Cell can be deleted by matching visibility expression in Delete mutation and the cell in consideration.private void
VisibilityController.removeReplicationVisibilityTag
(List<Tag> tags) DefaultVisibilityLabelServiceImpl.sortTagsBasedOnOrdinal
(List<Tag> tags) ModifierConstructorDescriptionDeleteVersionVisibilityExpressionFilter
(List<Tag> deleteCellVisTags, Byte deleteCellVisTagsFormat)