@InterfaceAudience.LimitedPrivate(value={"Replication","Coprocesssor"}) public class WALEdit extends Object implements org.apache.hadoop.io.Writable, HeapSize
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
BULK_LOAD |
static WALEdit |
EMPTY_WALEDIT |
static org.apache.commons.logging.Log |
LOG |
static byte[] |
METAFAMILY |
public static final org.apache.commons.logging.Log LOG
public static final byte[] METAFAMILY
public static final byte[] BULK_LOAD
public static final WALEdit EMPTY_WALEDIT
public static boolean isMetaEditFamily(byte[] f)
f - f is METAFAMILYpublic static boolean isMetaEditFamily(Cell cell)
public boolean isMetaEdit()
public boolean isReplay()
public void setCompressionContext(CompressionContext compressionContext)
public boolean isEmpty()
public int size()
public NavigableMap<byte[],Integer> getAndRemoveScopes()
public void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic int readFromCells(Codec.Decoder cellDecoder, int expectedCount) throws IOException
cellDecoder - Cell decoder.expectedCount - Expected cell count.IOExceptionpublic static WALEdit createFlushWALEdit(HRegionInfo hri, org.apache.hadoop.hbase.protobuf.generated.WALProtos.FlushDescriptor f)
public static org.apache.hadoop.hbase.protobuf.generated.WALProtos.FlushDescriptor getFlushDescriptor(Cell cell) throws IOException
IOExceptionpublic static WALEdit createRegionEventWALEdit(HRegionInfo hri, org.apache.hadoop.hbase.protobuf.generated.WALProtos.RegionEventDescriptor regionEventDesc)
public static org.apache.hadoop.hbase.protobuf.generated.WALProtos.RegionEventDescriptor getRegionEventDescriptor(Cell cell) throws IOException
IOExceptionpublic static WALEdit createCompaction(HRegionInfo hri, org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor c)
c - c serialized as its valuepublic static org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor getCompaction(Cell kv) throws IOException
kv - the key valueIOExceptionpublic static WALEdit createBulkLoadEvent(HRegionInfo hri, org.apache.hadoop.hbase.protobuf.generated.WALProtos.BulkLoadDescriptor bulkLoadDescriptor)
hri - The HRegionInfo for the region in which we are bulk loadingbulkLoadDescriptor - The descriptor for the Bulk Loaderpublic static org.apache.hadoop.hbase.protobuf.generated.WALProtos.BulkLoadDescriptor getBulkLoadDescriptor(Cell cell) throws IOException
cell - the key valueIOExceptionCopyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.