@InterfaceAudience.Private @InterfaceStability.Evolving public final class ProcedureWALFormat extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProcedureWALFormat.InvalidWALDataException |
(package private) static interface |
ProcedureWALFormat.Loader |
Modifier and Type | Field and Description |
---|---|
(package private) static long |
HEADER_MAGIC |
(package private) static byte |
HEADER_VERSION |
(package private) static byte |
LOG_TYPE_COMPACTED |
(package private) static byte |
LOG_TYPE_MAX_VALID |
(package private) static byte |
LOG_TYPE_STREAM |
(package private) static long |
TRAILER_MAGIC |
(package private) static byte |
TRAILER_VERSION |
Modifier | Constructor and Description |
---|---|
private |
ProcedureWALFormat() |
Modifier and Type | Method and Description |
---|---|
static void |
load(Iterator<ProcedureWALFile> logs,
ProcedureStoreTracker tracker,
ProcedureWALFormat.Loader loader) |
static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry |
readEntry(InputStream stream) |
static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader |
readHeader(InputStream stream) |
static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer |
readTrailer(org.apache.hadoop.fs.FSDataInputStream stream,
long startPos,
long size) |
static void |
writeDelete(ByteSlot slot,
long procId) |
static void |
writeEntry(ByteSlot slot,
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.Type type,
Procedure proc,
Procedure[] subprocs) |
static void |
writeHeader(OutputStream stream,
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader header) |
static void |
writeInsert(ByteSlot slot,
Procedure proc) |
static void |
writeInsert(ByteSlot slot,
Procedure proc,
Procedure[] subprocs) |
static void |
writeTrailer(org.apache.hadoop.fs.FSDataOutputStream stream,
ProcedureStoreTracker tracker) |
static void |
writeUpdate(ByteSlot slot,
Procedure proc) |
static final byte LOG_TYPE_STREAM
static final byte LOG_TYPE_COMPACTED
static final byte LOG_TYPE_MAX_VALID
static final byte HEADER_VERSION
static final byte TRAILER_VERSION
static final long HEADER_MAGIC
static final long TRAILER_MAGIC
public static void load(Iterator<ProcedureWALFile> logs, ProcedureStoreTracker tracker, ProcedureWALFormat.Loader loader) throws IOException
IOException
public static void writeHeader(OutputStream stream, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader header) throws IOException
IOException
public static void writeTrailer(org.apache.hadoop.fs.FSDataOutputStream stream, ProcedureStoreTracker tracker) throws IOException
IOException
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader readHeader(InputStream stream) throws IOException
IOException
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer readTrailer(org.apache.hadoop.fs.FSDataInputStream stream, long startPos, long size) throws IOException
IOException
public static org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry readEntry(InputStream stream) throws IOException
IOException
public static void writeEntry(ByteSlot slot, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALEntry.Type type, Procedure proc, Procedure[] subprocs) throws IOException
IOException
public static void writeInsert(ByteSlot slot, Procedure proc) throws IOException
IOException
public static void writeInsert(ByteSlot slot, Procedure proc, Procedure[] subprocs) throws IOException
IOException
public static void writeUpdate(ByteSlot slot, Procedure proc) throws IOException
IOException
public static void writeDelete(ByteSlot slot, long procId) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.