@InterfaceAudience.Private public class WALUtil extends Object
WAL.public static long writeCompactionMarker(WAL wal, HTableDescriptor htd, HRegionInfo hri, org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor c, MultiVersionConcurrencyControl mvcc) throws IOException
mvcc - Used by WAL to get sequence Id for the waledit.IOExceptionpublic static long writeFlushMarker(WAL wal, HTableDescriptor htd, HRegionInfo hri, org.apache.hadoop.hbase.protobuf.generated.WALProtos.FlushDescriptor f, boolean sync, MultiVersionConcurrencyControl mvcc) throws IOException
IOExceptionpublic static long writeRegionEventMarker(WAL wal, HTableDescriptor htd, HRegionInfo hri, org.apache.hadoop.hbase.protobuf.generated.WALProtos.RegionEventDescriptor r, MultiVersionConcurrencyControl mvcc) throws IOException
IOExceptionpublic static long writeBulkLoadMarkerAndSync(WAL wal, HTableDescriptor htd, HRegionInfo hri, org.apache.hadoop.hbase.protobuf.generated.WALProtos.BulkLoadDescriptor desc, MultiVersionConcurrencyControl mvcc) throws IOException
wal - The log to write into.htd - A description of the table that we are bulk loading into.hri - A description of the region in the table that we are bulk loading into.desc - A protocol buffers based description of the client's bulk loading requestIOException - We will throw an IOException if we can not append to the HLog.Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.