Uses of Class
org.apache.hadoop.hbase.KeyValue
Packages that use org.apache.hadoop.hbase.KeyValue
Package
Description
Provides HBase MapReduce
Input/OutputFormats, a table indexing MapReduce job, and utility methods.
-
Uses of org.apache.hadoop.hbase.KeyValue in org.apache.hadoop.hbase
Subclasses of org.apache.hadoop.hbase.KeyValue in in org.apache.hadoop.hbaseModifier and TypeClassDescriptionstatic classorg.apache.hadoop.hbase.KeyValue.KeyOnlyKeyValueA simple form of KeyValue that creates a keyvalue with only the key part of the byte[] Mainly used in places where we need to compare two cells.classorg.apache.hadoop.hbase.NoTagsKeyValueAn extension of the KeyValue where the tags length is always 0classorg.apache.hadoop.hbase.SizeCachedKeyValueThis class is an extension to KeyValue where rowLen and keyLen are cached.classorg.apache.hadoop.hbase.SizeCachedNoTagsKeyValueThis class is an extension to ContentSizeCachedKeyValue where there are no tags in Cell.Fields in org.apache.hadoop.hbase declared as org.apache.hadoop.hbase.KeyValue in inModifier and TypeFieldDescriptionstatic final org.apache.hadoop.hbase.KeyValueKeyValue.LOWESTKEYLowest possible key.Methods in org.apache.hadoop.hbase that return org.apache.hadoop.hbase.KeyValue in inModifier and TypeMethodDescriptionorg.apache.hadoop.hbase.KeyValueKeyValue.clone()Clones a KeyValue.static org.apache.hadoop.hbase.KeyValueKeyValueUtil.copyToNewKeyValue(org.apache.hadoop.hbase.Cell cell) copy the cell to create a new keyvaluestatic org.apache.hadoop.hbase.KeyValueKeyValue.create(int length, DataInput in) Create a KeyValue readinglengthfrominstatic org.apache.hadoop.hbase.KeyValueKeyValue.create(DataInput in) Create a KeyValue reading frominstatic org.apache.hadoop.hbase.KeyValuestatic org.apache.hadoop.hbase.KeyValueKeyValueTestUtil.create(String row, String family, String qualifier, long timestamp, org.apache.hadoop.hbase.KeyValue.Type type, String value) static org.apache.hadoop.hbase.KeyValueKeyValueUtil.create(int length, DataInput in) Create a KeyValue readinglengthfrominstatic org.apache.hadoop.hbase.KeyValueKeyValueUtil.create(DataInput in) Where to read bytes from.static org.apache.hadoop.hbase.KeyValueKeyValueUtil.createFirstOnRow(byte[] row) Create a KeyValue that is smaller than all other possible KeyValues for the given row.static org.apache.hadoop.hbase.KeyValueKeyValueUtil.createFirstOnRow(byte[] row, byte[] family, byte[] qualifier) Create a KeyValue for the specified row, family and qualifier that would be smaller than all other possible KeyValues that have the same row,family,qualifier.static org.apache.hadoop.hbase.KeyValueKeyValueUtil.createFirstOnRow(byte[] buffer, byte[] row, byte[] family, byte[] qualifier) Create a KeyValue for the specified row, family and qualifier that would be smaller than all other possible KeyValues that have the same row, family, qualifier.static org.apache.hadoop.hbase.KeyValueKeyValueUtil.createFirstOnRow(byte[] row, byte[] f, byte[] q, long ts) Create a KeyValue for the specified row, family and qualifier that would be smaller than all other possible KeyValues that have the same row, family, qualifier.static org.apache.hadoop.hbase.KeyValueKeyValueUtil.createFirstOnRow(byte[] buffer, int boffset, byte[] row, int roffset, int rlength, byte[] family, int foffset, int flength, byte[] qualifier, int qoffset, int qlength) Create a KeyValue for the specified row, family and qualifier that would be smaller than all other possible KeyValues that have the same row, family, qualifier.static org.apache.hadoop.hbase.KeyValueKeyValueUtil.createFirstOnRow(byte[] row, int roffset, int rlength, byte[] family, int foffset, int flength, byte[] qualifier, int qoffset, int qlength) Create a KeyValue for the specified row, family and qualifier that would be smaller than all other possible KeyValues that have the same row, family, qualifier.static org.apache.hadoop.hbase.KeyValueKeyValueUtil.createFirstOnRow(byte[] row, int roffset, short rlength) Create a KeyValue that is smaller than all other possible KeyValues for the given row.static org.apache.hadoop.hbase.KeyValueKeyValueUtil.createFirstOnRow(byte[] row, long ts) Creates a KeyValue that is smaller than all other KeyValues that are older than the passed timestamp.org.apache.hadoop.hbase.KeyValueKeyValue.createKeyOnly(boolean lenAsVal) Creates a new KeyValue that only contains the key portion (the value is set to be null).static org.apache.hadoop.hbase.KeyValueKeyValueUtil.createKeyValueFromInputStream(InputStream in, boolean withTags) Create a KeyValue reading from the raw InputStream.static org.apache.hadoop.hbase.KeyValueKeyValueUtil.createKeyValueFromKey(byte[] b) Returns a KeyValue made of a byte array that holds the key-only part.static org.apache.hadoop.hbase.KeyValueKeyValueUtil.createKeyValueFromKey(byte[] b, int o, int l) Return a KeyValue made of a byte array that holds the key-only part.static org.apache.hadoop.hbase.KeyValueKeyValueUtil.createKeyValueFromKey(ByteBuffer bb) Return a KeyValue made of a byte buffer that holds the key-only part.static org.apache.hadoop.hbase.KeyValueKeyValueUtil.createLastOnRow(byte[] row) Creates a KeyValue that is last on the specified row id.static org.apache.hadoop.hbase.KeyValueKeyValueUtil.createLastOnRow(byte[] row, int roffset, int rlength, byte[] family, int foffset, int flength, byte[] qualifier, int qoffset, int qlength) Create a KeyValue for the specified row, family and qualifier that would be larger than or equal to all other possible KeyValues that have the same row, family, qualifier.static org.apache.hadoop.hbase.KeyValueKeyValueUtil.ensureKeyValue(org.apache.hadoop.hbase.Cell cell) Deprecated.without any replacement.static org.apache.hadoop.hbase.KeyValueKeyValueUtil.nextShallowCopy(ByteBuffer bb, boolean includesMvccVersion, boolean includesTags) Creates a new KeyValue object positioned in the supplied ByteBuffer and sets the ByteBuffer's position to the start of the next KeyValue.static org.apache.hadoop.hbase.KeyValueKeyValueUtil.previousKey(org.apache.hadoop.hbase.KeyValue in) Decrement the timestamp.org.apache.hadoop.hbase.KeyValueKeyValue.shallowCopy()Creates a shallow copy of this KeyValue, reusing the data byte buffer.static org.apache.hadoop.hbase.KeyValueKeyValueUtil.toNewKeyCell(org.apache.hadoop.hbase.Cell cell) Copies the key to a new KeyValueMethods in org.apache.hadoop.hbase that return types with arguments of type org.apache.hadoop.hbase.KeyValue in inModifier and TypeMethodDescriptionstatic List<org.apache.hadoop.hbase.KeyValue>KeyValueUtil.ensureKeyValues(List<org.apache.hadoop.hbase.Cell> cells) Deprecated.static List<org.apache.hadoop.hbase.KeyValue>KeyValueTestUtil.rewindThenToList(ByteBuffer bb, boolean includesMemstoreTS, boolean useTags) Methods in org.apache.hadoop.hbase with parameters of type org.apache.hadoop.hbase.KeyValue in inModifier and TypeMethodDescriptionstatic voidKeyValueUtil.appendToByteBuffer(ByteBuffer bb, org.apache.hadoop.hbase.KeyValue kv, boolean includeMvccVersion) protected intCellComparatorImpl.compareFamilies(org.apache.hadoop.hbase.KeyValue left, int leftFamilyPosition, int leftFamilyLength, org.apache.hadoop.hbase.ByteBufferKeyValue right, int rightFamilyPosition, int rightFamilyLength) This method will be overridden when we compare cells inner store to bypass family comparing.protected intCellComparatorImpl.compareFamilies(org.apache.hadoop.hbase.KeyValue left, int leftFamilyPosition, int leftFamilyLength, org.apache.hadoop.hbase.KeyValue right, int rightFamilyPosition, int rightFamilyLength) This method will be overridden when we compare cells inner store to bypass family comparing.protected intInnerStoreCellComparator.compareFamilies(org.apache.hadoop.hbase.KeyValue left, int leftFamilyPosition, int leftFamilyLength, org.apache.hadoop.hbase.ByteBufferKeyValue right, int rightFamilyPosition, int rightFamilyLength) protected intInnerStoreCellComparator.compareFamilies(org.apache.hadoop.hbase.KeyValue left, int leftFamilyPosition, int leftFamilyLength, org.apache.hadoop.hbase.KeyValue right, int rightFamilyPosition, int rightFamilyLength) protected static StringKeyValueTestUtil.getFamilyString(org.apache.hadoop.hbase.KeyValue kv) protected static StringKeyValueTestUtil.getQualifierString(org.apache.hadoop.hbase.KeyValue kv) protected static StringKeyValueTestUtil.getRowString(org.apache.hadoop.hbase.KeyValue kv) protected static StringKeyValueTestUtil.getTimestampString(org.apache.hadoop.hbase.KeyValue kv) protected static StringKeyValueTestUtil.getTypeString(org.apache.hadoop.hbase.KeyValue kv) protected static StringKeyValueTestUtil.getValueString(org.apache.hadoop.hbase.KeyValue kv) static intKeyValueUtil.lengthWithMvccVersion(org.apache.hadoop.hbase.KeyValue kv, boolean includeMvccVersion) static longKeyValue.oswrite(org.apache.hadoop.hbase.KeyValue kv, OutputStream out, boolean withTags) Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0.static org.apache.hadoop.hbase.KeyValueKeyValueUtil.previousKey(org.apache.hadoop.hbase.KeyValue in) Decrement the timestamp.protected static StringKeyValueTestUtil.toStringWithPadding(org.apache.hadoop.hbase.KeyValue kv, int maxRowLength, int maxFamilyLength, int maxQualifierLength, int maxTimestampLength, boolean includeMeta) static longKeyValue.write(org.apache.hadoop.hbase.KeyValue kv, DataOutput out) Write out a KeyValue in the manner in which we used to when KeyValue was a Writable.static longKeyValueUtil.write(org.apache.hadoop.hbase.KeyValue kv, DataOutput out) Write out a KeyValue in the manner in which we used to when KeyValue was a Writable.Method parameters in org.apache.hadoop.hbase with type arguments of type org.apache.hadoop.hbase.KeyValue in inModifier and TypeMethodDescriptionstatic ByteBufferKeyValueTestUtil.toByteBufferAndRewind(Iterable<? extends org.apache.hadoop.hbase.KeyValue> kvs, boolean includeMemstoreTS) static StringKeyValueTestUtil.toStringWithPadding(Collection<? extends org.apache.hadoop.hbase.KeyValue> kvs, boolean includeMeta) toStringstatic intKeyValueUtil.totalLengthWithMvccVersion(Iterable<? extends org.apache.hadoop.hbase.KeyValue> kvs, boolean includeMvccVersion) -
Uses of org.apache.hadoop.hbase.KeyValue in org.apache.hadoop.hbase.mapreduce
Methods in org.apache.hadoop.hbase.mapreduce that return org.apache.hadoop.hbase.KeyValue in inModifier and TypeMethodDescriptionorg.apache.hadoop.hbase.KeyValueCellSerialization.CellDeserializer.deserialize(org.apache.hadoop.hbase.Cell ignore) org.apache.hadoop.hbase.KeyValueExtendedCellSerialization.ExtendedCellDeserializer.deserialize(org.apache.hadoop.hbase.ExtendedCell ignore) org.apache.hadoop.hbase.KeyValueKeyValueSerialization.KeyValueDeserializer.deserialize(org.apache.hadoop.hbase.KeyValue ignore) Methods in org.apache.hadoop.hbase.mapreduce with parameters of type org.apache.hadoop.hbase.KeyValue in inModifier and TypeMethodDescriptionorg.apache.hadoop.hbase.KeyValueKeyValueSerialization.KeyValueDeserializer.deserialize(org.apache.hadoop.hbase.KeyValue ignore) intImport.KeyValueWritableComparablePartitioner.getPartition(org.apache.hadoop.hbase.mapreduce.Import.KeyValueWritableComparable key, org.apache.hadoop.hbase.KeyValue value, int numPartitions) Deprecated.voidKeyValueSerialization.KeyValueSerializer.serialize(org.apache.hadoop.hbase.KeyValue kv) Method parameters in org.apache.hadoop.hbase.mapreduce with type arguments of type org.apache.hadoop.hbase.KeyValue in inModifier and TypeMethodDescriptionorg.apache.hadoop.hbase.mapreduce.KeyValueSerialization.KeyValueDeserializerKeyValueSerialization.getDeserializer(Class<org.apache.hadoop.hbase.KeyValue> t) Deprecated.org.apache.hadoop.hbase.mapreduce.KeyValueSerialization.KeyValueSerializerKeyValueSerialization.getSerializer(Class<org.apache.hadoop.hbase.KeyValue> c) Deprecated.protected voidImport.KeyValueReducer.reduce(org.apache.hadoop.hbase.mapreduce.Import.KeyValueWritableComparable row, Iterable<org.apache.hadoop.hbase.KeyValue> kvs, org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.hbase.mapreduce.Import.KeyValueWritableComparable, org.apache.hadoop.hbase.KeyValue, org.apache.hadoop.hbase.io.ImmutableBytesWritable, org.apache.hadoop.hbase.KeyValue>.org.apache.hadoop.mapreduce.Reducer.Context context) Deprecated.protected voidKeyValueSortReducer.reduce(org.apache.hadoop.hbase.io.ImmutableBytesWritable row, Iterable<org.apache.hadoop.hbase.KeyValue> kvs, org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.hbase.io.ImmutableBytesWritable, org.apache.hadoop.hbase.KeyValue, org.apache.hadoop.hbase.io.ImmutableBytesWritable, org.apache.hadoop.hbase.KeyValue>.org.apache.hadoop.mapreduce.Reducer.Context context) Deprecated.Constructors in org.apache.hadoop.hbase.mapreduce with parameters of type org.apache.hadoop.hbase.KeyValue in inModifierConstructorDescriptionKeyValueWritableComparable(org.apache.hadoop.hbase.KeyValue kv) -
Uses of org.apache.hadoop.hbase.KeyValue in org.apache.hadoop.hbase.regionserver
Methods in org.apache.hadoop.hbase.regionserver that return org.apache.hadoop.hbase.KeyValue in inModifier and TypeMethodDescriptionorg.apache.hadoop.hbase.KeyValueStoreScanner.next()Methods in org.apache.hadoop.hbase.regionserver with parameters of type org.apache.hadoop.hbase.KeyValue in inModifier and TypeMethodDescriptionIterator<org.apache.hadoop.hbase.regionserver.HStoreFile>StoreFileManager.getCandidateFilesForRowKeyBefore(org.apache.hadoop.hbase.KeyValue targetKey) Gets initial, full list of candidate store files to check for row-key-before.Iterator<org.apache.hadoop.hbase.regionserver.HStoreFile>StripeStoreFileManager.getCandidateFilesForRowKeyBefore(org.apache.hadoop.hbase.KeyValue targetKey) SeeStoreFileManager.getCandidateFilesForRowKeyBefore(KeyValue)for details on this methods.Iterator<org.apache.hadoop.hbase.regionserver.HStoreFile>StoreFileManager.updateCandidateFilesForRowKeyBefore(Iterator<org.apache.hadoop.hbase.regionserver.HStoreFile> candidateFiles, org.apache.hadoop.hbase.KeyValue targetKey, org.apache.hadoop.hbase.Cell candidate) Updates the candidate list for finding row key before.Iterator<org.apache.hadoop.hbase.regionserver.HStoreFile>StripeStoreFileManager.updateCandidateFilesForRowKeyBefore(Iterator<org.apache.hadoop.hbase.regionserver.HStoreFile> candidateFiles, org.apache.hadoop.hbase.KeyValue targetKey, org.apache.hadoop.hbase.Cell candidate) SeeStoreFileManager.getCandidateFilesForRowKeyBefore(KeyValue)andStoreFileManager.updateCandidateFilesForRowKeyBefore(Iterator, KeyValue, Cell)for details on this methods.