1 package com.daffodilwoods.daffodildb.server.datadictionarysystem.information; 2 3 import java.io.*; 4 import java.util.*; 5 6 public class FullTextIndexInformation implements _FullTextIndexInformation { 7 8 private _FullTextIndexInfo[] indexInfo; 9 10 public FullTextIndexInformation(_FullTextIndexInfo[] indexInfo) { 11 this.indexInfo = indexInfo; 12 } 13 14 public FullTextIndexInformation() { 15 } 16 17 public _FullTextIndexInfo getIndexInfo(int index) { 18 return indexInfo[index]; 19 } 20 21 ArrayList getAllIndexes() { 22 ArrayList indexesList = new ArrayList(); 23 for (int i = 0; i < indexInfo.length; i++) 24 indexesList.add(indexInfo[i].getName()); 25 return indexesList; 26 } 27 28 public void readExternal(ObjectInput objectInput) throws IOException, ClassNotFoundException { 29 indexInfo = (_FullTextIndexInfo[]) objectInput.readObject(); 30 } 31 32 public void writeExternal(ObjectOutput objectOutput) throws IOException { 33 objectOutput.writeObject(indexInfo); 34 } 35 } 36 | Popular Tags |