/// <summary>
 /// Create ToParentBlockJoinSortField.
 /// </summary>
 /// <param name="field"> The sort field on the nested / child level. </param>
 /// <param name="type"> The sort type on the nested / child level. </param>
 /// <param name="reverse"> Whether natural order should be reversed on the nested / child document level. </param>
 /// <param name="order"> Whether natural order should be reversed on the parent level. </param>
 /// <param name="parentFilter"> Filter that identifies the parent documents. </param>
 /// <param name="childFilter"> Filter that defines which child documents participates in sorting. </param>
 public ToParentBlockJoinSortField(string field, Type_e type, bool reverse, bool order, Filter parentFilter, Filter childFilter)
     : base(field, type, reverse)
 {
     Order        = order;
     ParentFilter = parentFilter;
     ChildFilter  = childFilter;
 }
 /// <summary>
 /// Create ToParentBlockJoinSortField.
 /// </summary>
 /// <param name="field"> The sort field on the nested / child level. </param>
 /// <param name="type"> The sort type on the nested / child level. </param>
 /// <param name="reverse"> Whether natural order should be reversed on the nested / child document level. </param>
 /// <param name="order"> Whether natural order should be reversed on the parent level. </param>
 /// <param name="parentFilter"> Filter that identifies the parent documents. </param>
 /// <param name="childFilter"> Filter that defines which child documents participates in sorting. </param>
 public ToParentBlockJoinSortField(string field, Type_e type, bool reverse, bool order, Filter parentFilter, Filter childFilter) 
     : base(field, type, reverse)
 {
     Order = order;
     ParentFilter = parentFilter;
     ChildFilter = childFilter;
 }
Esempio n. 3
0
 // Sets field & type, and ensures field is not NULL unless
 // type is SCORE or DOC
 private void InitFieldType(string field, Type_e type)
 {
     this.type = type;
     if (field == null)
     {
         if (type != Type_e.SCORE && type != Type_e.DOC)
         {
             throw new System.ArgumentException("field can only be null when type is SCORE or DOC");
         }
     }
     else
     {
         this.field = field;
     }
 }
Esempio n. 4
0
 public Pipe(int iD, Type_e type, Diameter_e diameter, Material_e material, decimal length_Geo, decimal start_X,
             decimal start_Y, decimal mid_X, decimal mid_Y, decimal end_X, decimal end_Y, decimal inside_X, decimal inside_Y)
 {
     Id         = iD;
     Type       = type;
     Diameter   = diameter;
     Material   = material;
     Length_Geo = length_Geo;
     Start_X    = start_X;
     Start_Y    = start_Y;
     Mid_X      = mid_X;
     Mid_Y      = mid_Y;
     End_X      = end_X;
     End_Y      = end_Y;
     Inside_X   = inside_X;
     Inside_Y   = inside_Y;
 }
Esempio n. 5
0
            internal virtual DocValuesFieldUpdates GetUpdates(string field, Type_e type)
            {
                switch (type)
                {
                case Type_e.NUMERIC:
                    NumericDocValuesFieldUpdates num;
                    NumericDVUpdates.TryGetValue(field, out num);
                    return(num);

                case Type_e.BINARY:
                    BinaryDocValuesFieldUpdates bin;
                    BinaryDVUpdates.TryGetValue(field, out bin);
                    return(bin);

                default:
                    throw new System.ArgumentException("unsupported type: " + type);
                }
            }
Esempio n. 6
0
            internal virtual DocValuesFieldUpdates NewUpdates(string field, Type_e type, int maxDoc)
            {
                switch (type)
                {
                case Type_e.NUMERIC:
                    NumericDocValuesFieldUpdates numericUpdates;
                    Debug.Assert(!NumericDVUpdates.TryGetValue(field, out numericUpdates));
                    numericUpdates          = new NumericDocValuesFieldUpdates(field, maxDoc);
                    NumericDVUpdates[field] = numericUpdates;
                    return(numericUpdates);

                case Type_e.BINARY:
                    BinaryDocValuesFieldUpdates binaryUpdates;
                    Debug.Assert(!BinaryDVUpdates.TryGetValue(field, out binaryUpdates));
                    binaryUpdates          = new BinaryDocValuesFieldUpdates(field, maxDoc);
                    BinaryDVUpdates[field] = binaryUpdates;
                    return(binaryUpdates);

                default:
                    throw new System.ArgumentException("unsupported type: " + type);
                }
            }
Esempio n. 7
0
 // Sets field & type, and ensures field is not NULL unless
 // type is SCORE or DOC
 private void InitFieldType(string field, Type_e type)
 {
     this.type = type;
     if (field == null)
     {
         if (type != Type_e.SCORE && type != Type_e.DOC)
         {
             throw new System.ArgumentException("field can only be null when type is SCORE or DOC");
         }
     }
     else
     {
         this.field = field;
     }
 }
Esempio n. 8
0
 /// <summary>
 /// Creates a sort, possibly in reverse, by terms in the given field with the
 /// type of term values explicitly given. </summary>
 /// <param name="field">  Name of field to sort by.  Can be <code>null</code> if
 ///               <code>type</code> is SCORE or DOC. </param>
 /// <param name="type">   Type of values in the terms. </param>
 /// <param name="reverse"> True if natural order should be reversed. </param>
 public SortField(string field, Type_e type, bool reverse)
 {
     InitFieldType(field, type);
     this.reverse = reverse;
 }
Esempio n. 9
0
 /// <summary>
 /// Creates a sort by terms in the given field with the type of term
 /// values explicitly given. </summary>
 /// <param name="field">  Name of field to sort by.  Can be <code>null</code> if
 ///               <code>type</code> is SCORE or DOC. </param>
 /// <param name="type">   Type of values in the terms. </param>
 public SortField(string field, Type_e type)
 {
     InitFieldType(field, type);
 }
Esempio n. 10
0
 /// <summary>
 /// Creates a sort, possibly in reverse, by terms in the given field with the
 /// type of term values explicitly given. </summary>
 /// <param name="field">  Name of field to sort by.  Can be <code>null</code> if
 ///               <code>type</code> is SCORE or DOC. </param>
 /// <param name="type">   Type of values in the terms. </param>
 /// <param name="reverse"> True if natural order should be reversed. </param>
 public SortField(string field, Type_e type, bool reverse)
 {
     InitFieldType(field, type);
     this.reverse = reverse;
 }
Esempio n. 11
0
 /// <summary>
 /// Creates a sort by terms in the given field with the type of term
 /// values explicitly given. </summary>
 /// <param name="field">  Name of field to sort by.  Can be <code>null</code> if
 ///               <code>type</code> is SCORE or DOC. </param>
 /// <param name="type">   Type of values in the terms. </param>
 public SortField(string field, Type_e type)
 {
     InitFieldType(field, type);
 }
Esempio n. 12
0
 protected internal DocValuesFieldUpdates(string field, Type_e type)
 {
     this.Field = field;
     this.Type  = type;
 }
Esempio n. 13
0
 public void setType(Type_e Type)
 {
     this.Type = Type;
 }
Esempio n. 14
0
 protected internal DocValuesFieldUpdates(string field, Type_e type)
 {
     this.Field = field;
     this.Type = type;
 }
Esempio n. 15
0
            internal virtual DocValuesFieldUpdates NewUpdates(string field, Type_e type, int maxDoc)
            {
                switch (type)
                {
                    case Type_e.NUMERIC:
                        NumericDocValuesFieldUpdates numericUpdates;
                        Debug.Assert(!NumericDVUpdates.TryGetValue(field, out numericUpdates));
                        numericUpdates = new NumericDocValuesFieldUpdates(field, maxDoc);
                        NumericDVUpdates[field] = numericUpdates;
                        return numericUpdates;

                    case Type_e.BINARY:
                        BinaryDocValuesFieldUpdates binaryUpdates;
                        Debug.Assert(!BinaryDVUpdates.TryGetValue(field, out binaryUpdates));
                        binaryUpdates = new BinaryDocValuesFieldUpdates(field, maxDoc);
                        BinaryDVUpdates[field] = binaryUpdates;
                        return binaryUpdates;

                    default:
                        throw new System.ArgumentException("unsupported type: " + type);
                }
            }
Esempio n. 16
0
            internal virtual DocValuesFieldUpdates GetUpdates(string field, Type_e type)
            {
                switch (type)
                {
                    case Type_e.NUMERIC:
                        NumericDocValuesFieldUpdates num;
                        NumericDVUpdates.TryGetValue(field, out num);
                        return num;

                    case Type_e.BINARY:
                        BinaryDocValuesFieldUpdates bin;
                        BinaryDVUpdates.TryGetValue(field, out bin);
                        return bin;

                    default:
                        throw new System.ArgumentException("unsupported type: " + type);
                }
            }