public static IndexData create(TableImpl table,ByteBuffer tableBuffer,int number,JetFormat format) throws IOException {
  int uniqueEntryCountOffset=(format.OFFSET_INDEX_DEF_BLOCK + (number * format.SIZE_INDEX_DEFINITION) + 4);
  int uniqueEntryCount=tableBuffer.getInt(uniqueEntryCountOffset);
  return new IndexData(table,number,uniqueEntryCount,uniqueEntryCountOffset);
}

public static IndexData create ( TableImpl table , ByteBuffer tableBuffer , int number , JetFormat format ) throws IOException { int uniqueEntryCountOffset = ( format . OFFSET_INDEX_DEF_BLOCK + ( number * format . SIZE_INDEX_DEFINITION ) + 4 ) ; int uniqueEntryCount = tableBuffer . getInt ( uniqueEntryCountOffset ) ; return new IndexData ( table , number , uniqueEntryCount , uniqueEntryCountOffset ) ; }
creates an indexdata appropriate for the given table , using information from the given table definition buffer .
