gov.nasa.pds.objectAccess.table
Class TableBinaryAdapter

java.lang.Object
  extended by gov.nasa.pds.objectAccess.table.TableBinaryAdapter
All Implemented Interfaces:
TableAdapter

public class TableBinaryAdapter
extends Object
implements TableAdapter


Constructor Summary
TableBinaryAdapter(TableBinary table)
          Creates a new instance for a particular table.
 
Method Summary
 FieldDescription getField(int index)
          Returns the field at a given index.
 int getFieldCount()
          Gets the number of fields in each record.
 FieldDescription[] getFields()
          Gets the definitions of fields from the table.
 long getOffset()
          Gets the offset into the data file where the table starts.
 int getRecordCount()
          Gets the number of records in the table.
 int getRecordLength()
          Gets the length of each record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableBinaryAdapter

public TableBinaryAdapter(TableBinary table)
Creates a new instance for a particular table.

Parameters:
table - the table
Method Detail

getRecordCount

public int getRecordCount()
Description copied from interface: TableAdapter
Gets the number of records in the table.

Specified by:
getRecordCount in interface TableAdapter
Returns:
the number of records

getFieldCount

public int getFieldCount()
Description copied from interface: TableAdapter
Gets the number of fields in each record.

Specified by:
getFieldCount in interface TableAdapter
Returns:
the number of fields

getField

public FieldDescription getField(int index)
Description copied from interface: TableAdapter
Returns the field at a given index. This field will be a simple field or a bit field. All grouped fields will have been expanded to their instances.

Specified by:
getField in interface TableAdapter
Parameters:
index - the field index
Returns:
the field description

getFields

public FieldDescription[] getFields()
Description copied from interface: TableAdapter
Gets the definitions of fields from the table. The fields will be a simple field or a bit field. All grouped fiels will have been expanded to their instances.

Specified by:
getFields in interface TableAdapter
Returns:
an array of field descriptions

getOffset

public long getOffset()
Description copied from interface: TableAdapter
Gets the offset into the data file where the table starts.

Specified by:
getOffset in interface TableAdapter
Returns:
the table offset

getRecordLength

public int getRecordLength()
Description copied from interface: TableAdapter
Gets the length of each record. For delimited tables the record length is not defined, so zero is returned.

Specified by:
getRecordLength in interface TableAdapter
Returns:
the record length, or zero for a delimited table


Copyright © 2014. All Rights Reserved.