Class ProcedureWALFormat
java.lang.Object
org.apache.hadoop.hbase.procedure2.store.wal.ProcedureWALFormat
Deprecated.
Since 2.3.0, will be removed in 4.0.0. Keep here only for rolling upgrading, now we
use the new region based procedure store.
Helper class that contains the WAL serialization utils.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Deprecated.(package private) static interface
Deprecated. -
Field Summary
Modifier and TypeFieldDescription(package private) static final long
Deprecated.(package private) static final byte
Deprecated.(package private) static final byte
Deprecated.(package private) static final byte
Deprecated.(package private) static final byte
Deprecated.(package private) static final long
Deprecated.(package private) static final byte
Deprecated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
load
(Iterator<ProcedureWALFile> logs, ProcedureStoreTracker tracker, ProcedureWALFormat.Loader loader) Deprecated.Load all the procedures in these ProcedureWALFiles, and rebuild the giventracker
if needed, i.e, thetracker
is a partial one.static org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALEntry
readEntry
(InputStream stream) Deprecated.static org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALHeader
readHeader
(InputStream stream) Deprecated.static org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALTrailer
readTrailer
(org.apache.hadoop.fs.FSDataInputStream stream, long startPos, long size) Deprecated.static void
writeDelete
(ByteSlot slot, long procId) Deprecated.static void
writeDelete
(ByteSlot slot, Procedure<?> proc, long[] subprocs) Deprecated.static void
writeEntry
(ByteSlot slot, org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALEntry.Type type, Procedure<?> proc, Procedure<?>[] subprocs) Deprecated.static void
writeHeader
(OutputStream stream, org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALHeader header) Deprecated.static void
writeInsert
(ByteSlot slot, Procedure<?> proc) Deprecated.static void
writeInsert
(ByteSlot slot, Procedure<?> proc, Procedure<?>[] subprocs) Deprecated.static long
writeTrailer
(org.apache.hadoop.fs.FSDataOutputStream stream, ProcedureStoreTracker tracker) Deprecated.static void
writeUpdate
(ByteSlot slot, Procedure<?> proc) Deprecated.
-
Field Details
-
LOG_TYPE_STREAM
Deprecated.- See Also:
-
LOG_TYPE_COMPACTED
Deprecated.- See Also:
-
LOG_TYPE_MAX_VALID
Deprecated.- See Also:
-
HEADER_VERSION
Deprecated.- See Also:
-
TRAILER_VERSION
Deprecated.- See Also:
-
HEADER_MAGIC
Deprecated.- See Also:
-
TRAILER_MAGIC
Deprecated.- See Also:
-
-
Constructor Details
-
ProcedureWALFormat
private ProcedureWALFormat()Deprecated.
-
-
Method Details
-
load
public static void load(Iterator<ProcedureWALFile> logs, ProcedureStoreTracker tracker, ProcedureWALFormat.Loader loader) throws IOException Deprecated.Load all the procedures in these ProcedureWALFiles, and rebuild the giventracker
if needed, i.e, thetracker
is a partial one. The method in the giveloader
will be called at the end after we load all the procedures and construct the hierarchy. And we will call theProcedureStoreTracker.resetModified()
method for the giventracker
before returning, as it will be used to track the next proc wal file's modified procedures.- Throws:
IOException
-
writeHeader
public static void writeHeader(OutputStream stream, org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALHeader header) throws IOException Deprecated.- Throws:
IOException
-
writeTrailer
public static long writeTrailer(org.apache.hadoop.fs.FSDataOutputStream stream, ProcedureStoreTracker tracker) throws IOException Deprecated.- Throws:
IOException
-
readHeader
public static org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALHeader readHeader(InputStream stream) throws IOException Deprecated.- Throws:
IOException
-
readTrailer
public static org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALTrailer readTrailer(org.apache.hadoop.fs.FSDataInputStream stream, long startPos, long size) throws IOException Deprecated.- Throws:
IOException
-
readEntry
public static org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALEntry readEntry(InputStream stream) throws IOException Deprecated.- Throws:
IOException
-
writeEntry
public static void writeEntry(ByteSlot slot, org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.ProcedureWALEntry.Type type, Procedure<?> proc, Procedure<?>[] subprocs) throws IOException Deprecated.- Throws:
IOException
-
writeInsert
Deprecated.- Throws:
IOException
-
writeInsert
public static void writeInsert(ByteSlot slot, Procedure<?> proc, Procedure<?>[] subprocs) throws IOException Deprecated.- Throws:
IOException
-
writeUpdate
Deprecated.- Throws:
IOException
-
writeDelete
Deprecated.- Throws:
IOException
-
writeDelete
public static void writeDelete(ByteSlot slot, Procedure<?> proc, long[] subprocs) throws IOException Deprecated.- Throws:
IOException
-