Beispiel #1
0
        public CustomSortField(string typeName, IndexQuery indexQuery, bool reverse)
            : base(String.Empty, INT, reverse)
        {
            var clrType = System.Type.GetType(typeName, throwOnError: true);

            generator = (IndexEntriesToComparablesGenerator)Activator.CreateInstance(clrType, new object[] { indexQuery });
        }
Beispiel #2
0
 public CustomSortField(string typeName, IndexQuery indexQuery, bool reverse)
     : base(String.Empty, INT,reverse)
 {
     var clrType = System.Type.GetType(typeName, throwOnError: true);
     generator = (IndexEntriesToComparablesGenerator)Activator.CreateInstance(clrType, new object[] {indexQuery});
 }
 public CustomSortFieldCompartor(IndexEntriesToComparablesGenerator generator, int numHits)
 {
     this.generator = generator;
     values         = new IComparable[numHits];
 }
 public CustomSortFieldCompartor(IndexEntriesToComparablesGenerator generator, int numHits)
 {
     this.generator = generator;
     values= new IComparable[numHits];
 }