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 writeId,
int bucket,
long rowId) |
Modifier and Type | Method and Description |
---|---|
protected String |
bucketToString() |
int |
compareTo(RecordIdentifier other) |
protected int |
compareToInternal(RecordIdentifier other) |
boolean |
equals(Object other) |
int |
getBucketProperty()
See
BucketCodec for details |
long |
getRowId()
What was the original row id for the last row?
|
long |
getWriteId()
What was the original write id for the last row?
|
int |
hashCode() |
void |
readFields(DataInput dataInput) |
void |
set(RecordIdentifier other)
Set this object to match the given object.
|
void |
setRowId(long rowId) |
void |
setValues(long writeId,
int bucketId,
long rowId)
Set the identifier.
|
String |
toString() |
void |
write(DataOutput dataOutput) |
public RecordIdentifier()
public RecordIdentifier(long writeId, int bucket, long rowId)
public void setValues(long writeId, int bucketId, long rowId)
writeId
- the write idbucketId
- the bucket idrowId
- the row idpublic void set(RecordIdentifier other)
other
- the object to copy frompublic void setRowId(long rowId)
public long getWriteId()
public int getBucketProperty()
BucketCodec
for detailspublic 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
protected String bucketToString()
Copyright © 2022 The Apache Software Foundation. All rights reserved.