Exemple #1
0
        public IEnumerable <PaEntry> Search(string sample)
        {
            PaEntry entry_table = table.Element(0);

            return(key_index.SearchAll(sample).Select(ent =>
            {
                object[] v3 = (object[])ent.Get();
                entry_table.offset = (long)v3[1];
                return entry_table;
            }));
        }
Exemple #2
0
        public IEnumerable <PaEntry> Search(string sample, string predicate)
        {
            PaEntry entry_table = table.Element(0);

            return(key_index.SearchAll(sample).Select(ent =>
            {
                object[] v4 = (object[])ent.Get();
                if ((string)v4[3] != predicate)
                {
                    entry_table.offset = Int64.MinValue;
                }
                else
                {
                    entry_table.offset = (long)v4[1];
                }
                return entry_table;
            })
                   .Where(ent => ent.offset != Int64.MinValue));
        }
Exemple #3
0
 public IEnumerable <PValue> Search(string sample)
 {
     return(name_index.SearchAll(sample).Select(ent => ent.GetValue()));
 }