@InterfaceAudience.Private public final class ProcedureWALFormat extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProcedureWALFormat.InvalidWALDataException |
| Modifier and Type | Method and Description |
|---|---|
static void |
load(Iterator<ProcedureWALFile> logs,
ProcedureStoreTracker tracker,
org.apache.hadoop.hbase.procedure2.store.wal.ProcedureWALFormat.Loader loader)
Load all the procedures in these ProcedureWALFiles, and rebuild the given
tracker if
needed, i.e, the tracker is a partial one. |
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 |
writeDelete(ByteSlot slot,
Procedure<?> proc,
long[] subprocs) |
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 long |
writeTrailer(org.apache.hadoop.fs.FSDataOutputStream stream,
ProcedureStoreTracker tracker) |
static void |
writeUpdate(ByteSlot slot,
Procedure<?> proc) |
public static void load(Iterator<ProcedureWALFile> logs, ProcedureStoreTracker tracker, org.apache.hadoop.hbase.procedure2.store.wal.ProcedureWALFormat.Loader loader) throws IOException
tracker if
needed, i.e, the tracker is a partial one.
The method in the give loader will be called at the end after we load all the
procedures and construct the hierarchy.
And we will call the ProcedureStoreTracker.resetModified() method for the given
tracker before returning, as it will be used to track the next proc wal file's modified
procedures.IOExceptionpublic static void writeHeader(OutputStream stream, ProcedureProtos.ProcedureWALHeader header) throws IOException
IOExceptionpublic static long writeTrailer(org.apache.hadoop.fs.FSDataOutputStream stream,
ProcedureStoreTracker tracker)
throws IOException
IOExceptionpublic static ProcedureProtos.ProcedureWALHeader readHeader(InputStream stream) throws IOException
IOExceptionpublic static ProcedureProtos.ProcedureWALTrailer readTrailer(org.apache.hadoop.fs.FSDataInputStream stream, long startPos, long size) throws IOException
IOExceptionpublic static ProcedureProtos.ProcedureWALEntry readEntry(InputStream stream) throws IOException
IOExceptionpublic static void writeEntry(ByteSlot slot, ProcedureProtos.ProcedureWALEntry.Type type, Procedure<?> proc, Procedure<?>[] subprocs) throws IOException
IOExceptionpublic static void writeInsert(ByteSlot slot, Procedure<?> proc) throws IOException
IOExceptionpublic static void writeInsert(ByteSlot slot, Procedure<?> proc, Procedure<?>[] subprocs) throws IOException
IOExceptionpublic static void writeUpdate(ByteSlot slot, Procedure<?> proc) throws IOException
IOExceptionpublic static void writeDelete(ByteSlot slot, long procId) throws IOException
IOExceptionpublic static void writeDelete(ByteSlot slot, Procedure<?> proc, long[] subprocs) throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.