public class RecordIdentifier extends Object implements org.apache.hadoop.io.WritableComparable<RecordIdentifier>
Modifier and Type | Class and Description |
---|---|
static class |
RecordIdentifier.Field
This is in support of
VirtualColumn.ROWID
Contains metadata about each field in RecordIdentifier that needs to be part of ROWID
which is represented as a struct RecordIdentifier.StructInfo . |
static class |
RecordIdentifier.StructInfo
RecordIdentifier is passed along the operator tree as a struct.
|
Constructor and Description |
---|
RecordIdentifier() |
RecordIdentifier(long transactionId,
int bucket,
long rowId) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RecordIdentifier other) |
protected int |
compareToInternal(RecordIdentifier other) |
boolean |
equals(Object other) |
int |
getBucketId()
What was the original bucket id for the last row?
|
long |
getRowId()
What was the original row id for the last row?
|
long |
getTransactionId()
What was the original transaction id for the last row?
|
void |
readFields(DataInput dataInput) |
void |
set(RecordIdentifier other)
Set this object to match the given object.
|
void |
setRowId(long rowId) |
void |
setValues(long transactionId,
int bucketId,
long rowId)
Set the identifier.
|
String |
toString() |
void |
write(DataOutput dataOutput) |
public RecordIdentifier()
public RecordIdentifier(long transactionId, int bucket, long rowId)
public void setValues(long transactionId, int bucketId, long rowId)
transactionId
- the transaction idbucketId
- the bucket idrowId
- the row idpublic void set(RecordIdentifier other)
other
- the object to copy frompublic void setRowId(long rowId)
public long getTransactionId()
public int getBucketId()
public long getRowId()
protected int compareToInternal(RecordIdentifier other)
public int compareTo(RecordIdentifier other)
compareTo
in interface Comparable<RecordIdentifier>
public void write(DataOutput dataOutput) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput dataInput) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2016 The Apache Software Foundation. All rights reserved.