@InterfaceAudience.LimitedPrivate(value="Replication") @Deprecated public class HLogKey extends WALKey implements org.apache.hadoop.io.Writable
Some Transactional edits (START, COMMIT, ABORT) will not have an associated row.
WALKey.Version
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
LOG
Deprecated.
|
clusterIds, compressionContext, EMPTY_UUIDS, encodedRegionName, logSeqNum, NO_SEQUENCE_ID, tablename, VERSION, writeTime
Constructor and Description |
---|
HLogKey()
Deprecated.
|
HLogKey(byte[] encodedRegionName,
TableName tablename)
Deprecated.
|
HLogKey(byte[] encodedRegionName,
TableName tablename,
long now)
Deprecated.
|
HLogKey(byte[] encodedRegionName,
TableName tablename,
long now,
List<UUID> clusterIds,
long nonceGroup,
long nonce,
MultiVersionConcurrencyControl mvcc)
Deprecated.
Create the log key for writing to somewhere.
|
HLogKey(byte[] encodedRegionName,
TableName tablename,
long logSeqNum,
long now,
List<UUID> clusterIds,
long nonceGroup,
long nonce,
MultiVersionConcurrencyControl mvcc)
Deprecated.
Create the log key for writing to somewhere.
|
HLogKey(byte[] encodedRegionName,
TableName tablename,
long logSeqNum,
long nonceGroup,
long nonce,
MultiVersionConcurrencyControl mvcc)
Deprecated.
Create the log key for writing to somewhere.
|
HLogKey(byte[] encodedRegionName,
TableName tablename,
long logSeqNum,
long now,
UUID clusterId)
Deprecated.
|
HLogKey(byte[] encodedRegionName,
TableName tablename,
long now,
MultiVersionConcurrencyControl mvcc)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
readFields(DataInput in)
Deprecated.
|
void |
write(DataOutput out)
Deprecated.
Don't use these Writables methods. Use PB instead.
|
addClusterId, compareTo, equals, getBuilder, getClusterIds, getEncodedRegionName, getLogSeqNum, getMvcc, getNonce, getNonceGroup, getOriginatingClusterId, getOrigLogSeqNum, getScopes, getSequenceId, getSequenceId, getTablename, getWriteEntry, getWriteTime, hashCode, init, readFieldsFromPb, readOlderScopes, setCompressionContext, setLogSeqNum, setOrigLogSeqNum, setScopes, setWriteEntry, toString, toStringMap
public HLogKey()
public HLogKey(byte[] encodedRegionName, TableName tablename, long logSeqNum, long now, UUID clusterId)
public HLogKey(byte[] encodedRegionName, TableName tablename)
public HLogKey(byte[] encodedRegionName, TableName tablename, long now)
public HLogKey(byte[] encodedRegionName, TableName tablename, long now, MultiVersionConcurrencyControl mvcc)
public HLogKey(byte[] encodedRegionName, TableName tablename, long logSeqNum, long now, List<UUID> clusterIds, long nonceGroup, long nonce, MultiVersionConcurrencyControl mvcc)
Used by log splitting and snapshots.
encodedRegionName
- Encoded name of the region as returned by
HRegionInfo#getEncodedNameAsBytes()
.tablename
- - name of tablelogSeqNum
- - log sequence numbernow
- Time at which this edit was written.clusterIds
- the clusters that have consumed the change(used in Replication)public HLogKey(byte[] encodedRegionName, TableName tablename, long now, List<UUID> clusterIds, long nonceGroup, long nonce, MultiVersionConcurrencyControl mvcc)
encodedRegionName
- Encoded name of the region as returned by
HRegionInfo#getEncodedNameAsBytes()
.tablename
- now
- Time at which this edit was written.clusterIds
- the clusters that have consumed the change(used in Replication)nonceGroup
- nonce
- public HLogKey(byte[] encodedRegionName, TableName tablename, long logSeqNum, long nonceGroup, long nonce, MultiVersionConcurrencyControl mvcc)
encodedRegionName
- Encoded name of the region as returned by
HRegionInfo#getEncodedNameAsBytes()
.tablename
- logSeqNum
- nonceGroup
- nonce
- @Deprecated public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.