|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.record.TableInfo
public class TableInfo
The metadata about a table and its records.
Constructor Summary | |
---|---|
TableInfo(String tblname,
Schema schema)
Creates a TableInfo object, given a table name and schema. |
|
TableInfo(String tblname,
Schema schema,
Map<String,Integer> offsets,
int recordlen)
Creates a TableInfo object from the specified metadata. |
Method Summary | |
---|---|
String |
fileName()
Returns the filename assigned to this table. |
int |
offset(String fldname)
Returns the offset of a specified field within a record |
int |
recordLength()
Returns the length of a record, in bytes. |
Schema |
schema()
Returns the schema of the table's records |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableInfo(String tblname, Schema schema)
tblname
- the name of the tableschema
- the schema of the table's recordspublic TableInfo(String tblname, Schema schema, Map<String,Integer> offsets, int recordlen)
tblname
- the name of the tableschema
- the schema of the table's recordsoffsets
- the already-calculated offsets of the fields within a recordrecordlen
- the already-calculated length of each recordMethod Detail |
---|
public String fileName()
public Schema schema()
public int offset(String fldname)
fldname
- the name of the field
public int recordLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |