public static class ReplicationSchema.OrderSection extends Object
encodedTimeOfClosure\x00hdfs://localhost:8020/accumulo/wal/tserver+port/WAL order:source_table_id [] -> Status Protobuf
Modifier and Type | Field and Description |
---|---|
static org.apache.hadoop.io.Text |
NAME |
static org.apache.hadoop.io.Text |
ROW_SEPARATOR |
Constructor and Description |
---|
ReplicationSchema.OrderSection() |
Modifier and Type | Method and Description |
---|---|
static Mutation |
add(Mutation m,
String tableId,
Value v)
Add a column update to the given mutation with the provided tableId and value
|
static Mutation |
createMutation(String file,
long timeInMillis)
Creates the Mutation for the Order section for the given file and time
|
static String |
getFile(Key k) |
static String |
getFile(Key k,
org.apache.hadoop.io.Text buff) |
static String |
getTableId(Key k)
Extract the table ID from the given key (inefficiently if called repeatedly)
|
static void |
getTableId(Key k,
org.apache.hadoop.io.Text buff)
Extract the table ID from the given key
|
static long |
getTimeClosed(Key k) |
static long |
getTimeClosed(Key k,
org.apache.hadoop.io.Text buff) |
static void |
limit(ScannerBase scanner)
Limit the scanner to only return Order records
|
public static final org.apache.hadoop.io.Text NAME
public static final org.apache.hadoop.io.Text ROW_SEPARATOR
public static String getTableId(Key k)
k
- OrderSection Keypublic static void getTableId(Key k, org.apache.hadoop.io.Text buff)
k
- OrderSection keybuff
- Text to place table ID intopublic static void limit(ScannerBase scanner)
public static Mutation createMutation(String file, long timeInMillis)
file
- FilenametimeInMillis
- Time in millis that the file was closedpublic static Mutation add(Mutation m, String tableId, Value v)
m
- Mutation for OrderSectiontableId
- Source table idv
- Serialized Status msgpublic static long getTimeClosed(Key k)
public static long getTimeClosed(Key k, org.apache.hadoop.io.Text buff)
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.