org.apache.hcatalog.data
Interface HCatRecordable

All Superinterfaces:
java.lang.Comparable<java.lang.Object>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<java.lang.Object>
All Known Implementing Classes:
DefaultHCatRecord, HCatRecord

public interface HCatRecordable
extends org.apache.hadoop.io.WritableComparable<java.lang.Object>

Interface that determines whether we can implement a HCatRecord on top of it


Method Summary
 java.lang.Object get(int fieldNum)
          Gets the field at the specified index.
 java.util.List<java.lang.Object> getAll()
          Gets all the fields of the hcat record.
 void set(int fieldNum, java.lang.Object value)
          Sets the field at the specified index.
 int size()
          Gets the size of the hcat record.
 
Methods inherited from interface org.apache.hadoop.io.Writable
readFields, write
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

get

java.lang.Object get(int fieldNum)
Gets the field at the specified index.

Parameters:
fieldNum - the field number
Returns:
the object at the specified index

getAll

java.util.List<java.lang.Object> getAll()
Gets all the fields of the hcat record.

Returns:
the list of fields

set

void set(int fieldNum,
         java.lang.Object value)
Sets the field at the specified index.

Parameters:
fieldNum - the field number
value - the value to set

size

int size()
Gets the size of the hcat record.

Returns:
the size