Examples of AggregationField


Examples of org.springframework.data.mongodb.core.aggregation.Fields.AggregationField

     * (non-Javadoc)
     * @see org.springframework.data.mongodb.core.aggregation.AggregationOperationContext#getReference(java.lang.String)
     */
    @Override
    public FieldReference getReference(String name) {
      return new FieldReference(new ExposedField(new AggregationField(name), true));
    }
View Full Code Here

Examples of org.springframework.data.mongodb.core.aggregation.Fields.AggregationField

  }

  @Test
  public void createsFieldsFromFieldInstances() {

    AggregationField reference = new AggregationField("foo");
    Fields fields = Fields.from(reference);

    assertThat(fields, is(Matchers.<Field> iterableWithSize(1)));
    assertThat(fields, hasItem(reference));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.