org.apache.hadoop.vertica
Class VerticaRecord

java.lang.Object
  extended by org.apache.hadoop.vertica.VerticaRecord
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public class VerticaRecord
extends Object
implements org.apache.hadoop.io.Writable

Serializable record for records returned from and written to Vertica


Constructor Summary
VerticaRecord()
           
VerticaRecord(List<Object> values, boolean parseTypes)
           
VerticaRecord(List<String> names, List<Integer> types)
           
VerticaRecord(List<String> names, List<Integer> types, List<Object> values, boolean dateString)
          Test interface for junit tests that do not require a database
 
Method Summary
 Object get(int i)
           
 Object get(String name)
           
 List<Integer> getTypes()
           
 List<Object> getValues()
           
 boolean next()
           
 void readFields(DataInput in)
           
 void set(Integer i, Object value)
          set a value, 0 indexed
 void set(Integer i, Object value, boolean validate)
          set a value, 0 indexed
 void set(String name, Object value)
           
 String toSQLString()
           
 String toSQLString(String delimiterArg, String terminatorArg)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerticaRecord

public VerticaRecord()

VerticaRecord

public VerticaRecord(List<String> names,
                     List<Integer> types)

VerticaRecord

public VerticaRecord(List<Object> values,
                     boolean parseTypes)

VerticaRecord

public VerticaRecord(List<String> names,
                     List<Integer> types,
                     List<Object> values,
                     boolean dateString)
Test interface for junit tests that do not require a database

Parameters:
types -
values -
dateString -
Method Detail

getValues

public List<Object> getValues()

getTypes

public List<Integer> getTypes()

get

public Object get(String name)
           throws Exception
Throws:
Exception

get

public Object get(int i)

set

public void set(String name,
                Object value)
         throws Exception
Throws:
Exception

set

public void set(Integer i,
                Object value)
set a value, 0 indexed

Parameters:
i -

set

public void set(Integer i,
                Object value,
                boolean validate)
set a value, 0 indexed

Parameters:
i -

next

public boolean next()
             throws SQLException
Throws:
SQLException

toSQLString

public String toSQLString()

toSQLString

public String toSQLString(String delimiterArg,
                          String terminatorArg)

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException


Copyright © 2009 The Apache Software Foundation