@InterfaceAudience.Private @InterfaceStability.Evolving public final class ProcedureWALFormat extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProcedureWALFormat.InvalidWALDataException |
Modifier and Type | Method and Description |
---|---|
static Iterator<Procedure> |
load(Iterator<ProcedureWALFile> logs,
ProcedureStoreTracker tracker,
org.apache.hadoop.hbase.procedure2.store.wal.ProcedureWALFormat.Loader loader) |
static ProcedureProtos.ProcedureWALEntry |
readEntry(InputStream stream) |
static ProcedureProtos.ProcedureWALHeader |
readHeader(InputStream stream) |
static 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,
ProcedureProtos.ProcedureWALEntry.Type type,
Procedure proc,
Procedure[] subprocs) |
static void |
writeHeader(OutputStream stream,
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) |
public static Iterator<Procedure> load(Iterator<ProcedureWALFile> logs, ProcedureStoreTracker tracker, org.apache.hadoop.hbase.procedure2.store.wal.ProcedureWALFormat.Loader loader) throws IOException
IOException
public static void writeHeader(OutputStream stream, ProcedureProtos.ProcedureWALHeader header) throws IOException
IOException
public static void writeTrailer(org.apache.hadoop.fs.FSDataOutputStream stream, ProcedureStoreTracker tracker) throws IOException
IOException
public static ProcedureProtos.ProcedureWALHeader readHeader(InputStream stream) throws IOException
IOException
public static ProcedureProtos.ProcedureWALTrailer readTrailer(org.apache.hadoop.fs.FSDataInputStream stream, long startPos, long size) throws IOException
IOException
public static ProcedureProtos.ProcedureWALEntry readEntry(InputStream stream) throws IOException
IOException
public static void writeEntry(ByteSlot slot, 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-2016 The Apache Software Foundation. All Rights Reserved.