public class Column extends Object implements org.apache.hadoop.io.WritableComparable<Column>
Modifier and Type | Field and Description |
---|---|
byte[] |
columnFamily |
byte[] |
columnQualifier |
byte[] |
columnVisibility |
Constructor and Description |
---|
Column()
Creates a new blank column.
|
Column(byte[] columnFamily,
byte[] columnQualifier,
byte[] columnVisibility)
Creates a new column.
|
Column(org.apache.accumulo.core.data.thrift.TColumn tcol)
Creates a new column.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Column that)
Compares this column to another.
|
boolean |
equals(Column that)
Checks if this column equals another.
|
boolean |
equals(Object that) |
byte[] |
getColumnFamily()
Gets the column family.
|
byte[] |
getColumnQualifier()
Gets the column qualifier.
|
byte[] |
getColumnVisibility()
Gets the column visibility.
|
int |
hashCode() |
void |
readFields(DataInput in) |
String |
toString()
Gets a string representation of this column.
|
org.apache.accumulo.core.data.thrift.TColumn |
toThrift()
Converts this column to Thrift.
|
void |
write(DataOutput out) |
public byte[] columnFamily
public byte[] columnQualifier
public byte[] columnVisibility
public Column()
public Column(byte[] columnFamily, byte[] columnQualifier, byte[] columnVisibility)
columnFamily
- familycolumnQualifier
- qualifiercolumnVisibility
- visibilitypublic Column(org.apache.accumulo.core.data.thrift.TColumn tcol)
tcol
- Thrift columnpublic int compareTo(Column that)
compareTo
in interface Comparable<Column>
that
- column to comparepublic void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public boolean equals(Column that)
that
- column to comparepublic byte[] getColumnFamily()
public byte[] getColumnQualifier()
public byte[] getColumnVisibility()
public String toString()
public org.apache.accumulo.core.data.thrift.TColumn toThrift()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.