1 package com.daffodilwoods.daffodildb.server.sql99.fulltext.dml; 2 3 import com.daffodilwoods.fulltext.common._FullTextAdapter; 4 import com.daffodilwoods.fulltext.common._FullTextModifications; 5 import com.daffodilwoods.database.resource.DException; 6 import com.daffodilwoods.daffodildb.server.datasystem.interfaces._IndexTable; 7 8 17 public class DaffodilFullTextAdapter implements _FullTextAdapter{ 18 19 23 private boolean unicode; 24 27 private _IndexTable tokenTable; 28 31 private _IndexTable locationTable; 32 35 private int []columnIndex; 36 37 public DaffodilFullTextAdapter(_IndexTable tokenTable0,_IndexTable locationTable0,boolean unicode0,int[] columnIndex0) { 38 tokenTable = tokenTable0; 39 locationTable = locationTable0; 40 unicode = unicode0; 41 columnIndex = columnIndex0; 42 } 43 44 49 public boolean encoding(){ 50 return unicode; 51 } 52 53 59 public _FullTextModifications getTokenTable() throws DException{ 60 return new DaffodilFullTextModifications(tokenTable); 61 } 62 63 69 public _FullTextModifications getLocationTable() throws DException{ 70 return new DaffodilFullTextModifications(locationTable); 71 } 72 77 public int[] getColumnIndex()throws DException{ 78 return this.columnIndex ; 79 } 80 } 81 | Popular Tags |