Example usage for org.apache.lucene.document FieldType.NumericType equals

List of usage examples for org.apache.lucene.document FieldType.NumericType equals

Introduction

In this page you can find the example usage for org.apache.lucene.document FieldType.NumericType equals.

Prototype

@Override
    public boolean equals(Object obj) 

Source Link

Usage

From source file:com.tuplejump.stargate.cassandra.JsonDocumentTest.java

License:Apache License

private int numberOfFieldsWithNumericType(FieldType.NumericType fieldType, List<Field> fields) {
    int size = 0;
    for (Field field : fields) {
        if (fieldType.equals(field.fieldType().numericType()))
            size++;//from ww  w . jav  a  2  s  .co  m
    }
    System.out.println("Fields with type[" + fieldType + "]:" + size);
    return size;
}