@InterfaceAudience.Private public class WALUtil extends Object
WAL
.Constructor and Description |
---|
WALUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
writeCompactionMarker(WAL log,
HTableDescriptor htd,
HRegionInfo info,
WALProtos.CompactionDescriptor c,
AtomicLong sequenceId)
Write the marker that a compaction has succeeded and is about to be committed.
|
static long |
writeFlushMarker(WAL log,
HTableDescriptor htd,
HRegionInfo info,
WALProtos.FlushDescriptor f,
AtomicLong sequenceId,
boolean sync)
Write a flush marker indicating a start / abort or a complete of a region flush
|
static long |
writeRegionEventMarker(WAL log,
HTableDescriptor htd,
HRegionInfo info,
WALProtos.RegionEventDescriptor r,
AtomicLong sequenceId)
Write a region open marker indicating that the region is opened
|
public static void writeCompactionMarker(WAL log, HTableDescriptor htd, HRegionInfo info, WALProtos.CompactionDescriptor c, AtomicLong sequenceId) throws IOException
sequenceId
- Used by WAL to get sequence Id for the waledit.IOException
public static long writeFlushMarker(WAL log, HTableDescriptor htd, HRegionInfo info, WALProtos.FlushDescriptor f, AtomicLong sequenceId, boolean sync) throws IOException
IOException
public static long writeRegionEventMarker(WAL log, HTableDescriptor htd, HRegionInfo info, WALProtos.RegionEventDescriptor r, AtomicLong sequenceId) throws IOException
IOException
Copyright © 2015 The Apache Software Foundation. All rights reserved.