Tabnine Logo
SortField.equals
Code IndexAdd Tabnine to your IDE (free)

How to use
equals
method
in
org.apache.lucene.search.SortField

Best Java code snippets using org.apache.lucene.search.SortField.equals (Showing top 16 results out of 315)

origin: org.apache.lucene/lucene-core

@Override
public boolean equals(Object obj) {
 if (this == obj) return true;
 if (!super.equals(obj)) return false;
 if (getClass() != obj.getClass()) return false;
 SortedNumericSortField other = (SortedNumericSortField) obj;
 if (selector != other.selector) return false;
 if (type != other.type) return false;
 return true;
}
origin: org.apache.lucene/lucene-core

@Override
public boolean equals(Object obj) {
 if (this == obj) return true;
 if (!super.equals(obj)) return false;
 if (getClass() != obj.getClass()) return false;
 SortedSetSortField other = (SortedSetSortField) obj;
 if (selector != other.selector) return false;
 return true;
}

origin: org.apache.lucene/lucene-core

@Override
public boolean equals(Object obj) {
 if (this == obj) return true;
 if (!super.equals(obj)) return false;
 if (getClass() != obj.getClass()) return false;
 LatLonPointSortField other = (LatLonPointSortField) obj;
 if (Double.doubleToLongBits(latitude) != Double.doubleToLongBits(other.latitude)) return false;
 if (Double.doubleToLongBits(longitude) != Double.doubleToLongBits(other.longitude)) return false;
 return true;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

@Override
public boolean equals(Object obj) {
 if (this == obj) return true;
 if (!super.equals(obj)) return false;
 if (getClass() != obj.getClass()) return false;
 SortedSetSortField other = (SortedSetSortField) obj;
 if (selector != other.selector) return false;
 return true;
}

origin: org.infinispan/infinispan-embedded-query

@Override
public boolean equals(Object obj) {
 if (this == obj) return true;
 if (!super.equals(obj)) return false;
 if (getClass() != obj.getClass()) return false;
 SortedSetSortField other = (SortedSetSortField) obj;
 if (selector != other.selector) return false;
 return true;
}

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

@Override
public boolean equals(Object obj) {
 if (this == obj) return true;
 if (!super.equals(obj)) return false;
 if (getClass() != obj.getClass()) return false;
 SortedNumericSortField other = (SortedNumericSortField) obj;
 if (selector != other.selector) return false;
 if (type != other.type) return false;
 return true;
}
origin: org.infinispan/infinispan-embedded-query

@Override
public boolean equals(Object obj) {
 if (this == obj) return true;
 if (!super.equals(obj)) return false;
 if (getClass() != obj.getClass()) return false;
 SortedNumericSortField other = (SortedNumericSortField) obj;
 if (selector != other.selector) return false;
 if (type != other.type) return false;
 return true;
}
origin: harbby/presto-connectors

@Override
public boolean equals(Object obj) {
 if (this == obj) return true;
 if (!super.equals(obj)) return false;
 if (getClass() != obj.getClass()) return false;
 SortedSetSortField other = (SortedSetSortField) obj;
 if (selector != other.selector) return false;
 return true;
}

origin: harbby/presto-connectors

@Override
public boolean equals(Object obj) {
 if (this == obj) return true;
 if (!super.equals(obj)) return false;
 if (getClass() != obj.getClass()) return false;
 SortedNumericSortField other = (SortedNumericSortField) obj;
 if (selector != other.selector) return false;
 if (type != other.type) return false;
 return true;
}
origin: org.apache.lucene/lucene-spatial3d

@Override
public boolean equals(Object obj) {
 if (this == obj) return true;
 if (!super.equals(obj)) return false;
 if (getClass() != obj.getClass()) return false;
 final Geo3DPointSortField other = (Geo3DPointSortField) obj;
 return distanceShape.equals(other.distanceShape);
}
origin: org.apache.lucene/lucene-spatial3d

@Override
public boolean equals(Object obj) {
 if (this == obj) return true;
 if (!super.equals(obj)) return false;
 if (getClass() != obj.getClass()) return false;
 final Geo3DPointSortField other = (Geo3DPointSortField) obj;
 return distanceShape.equals(other.distanceShape);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

@Override
public boolean equals(Object obj) {
 if (this == obj) return true;
 if (!super.equals(obj)) return false;
 if (getClass() != obj.getClass()) return false;
 LatLonPointSortField other = (LatLonPointSortField) obj;
 if (Double.doubleToLongBits(latitude) != Double.doubleToLongBits(other.latitude)) return false;
 if (Double.doubleToLongBits(longitude) != Double.doubleToLongBits(other.longitude)) return false;
 return true;
}
origin: com.senseidb/sensei-core

public static String convertSortField(SortField field) {
 String result;
 if (field.equals(SenseiRequest.FIELD_SCORE)) {
  result = SenseiSearchServletParams.PARAM_SORT_SCORE;
 } else if (field.equals(SenseiRequest.FIELD_SCORE_REVERSE)) {
  result = SenseiSearchServletParams.PARAM_SORT_SCORE_REVERSE;
 } else if (field.equals(SenseiRequest.FIELD_DOC)) {
  result = SenseiSearchServletParams.PARAM_SORT_DOC;
 } else if (field.equals(SenseiRequest.FIELD_DOC_REVERSE)) {
  result = SenseiSearchServletParams.PARAM_SORT_DOC_REVERSE;
 } else {
  result = String.format("%s:%s", field.getField(),
   field.getReverse() ? SenseiSearchServletParams.PARAM_SORT_DESC
     : SenseiSearchServletParams.PARAM_SORT_ASC);
 }
 return result;
}
origin: msokolov/lux

private SortField[] combineSortFields(XPathQuery precursor) {
  if (sortFields != null) {
    if (precursor.sortFields != null) {
      ArrayList<SortField> combined = new ArrayList<SortField>(Arrays.asList(sortFields));
      SortField prevSort = combined.get(combined.size()-1);
      for (SortField sortField : precursor.sortFields) {
        if (! sortField.equals(prevSort)) {
          combined.add(sortField);
        }
      }
      return combined.toArray(new SortField[combined.size()]);
    } else {
      return sortFields;
    }
  } else if (precursor.sortFields != null) {
    return precursor.sortFields;
  } else {
    return null;
  }
}
origin: org.apache.clerezza/rdf.cris.core

@Override
public boolean equals(Object obj) {
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof SortEntry)) {
    return false;
  }
  return getSortField().equals(((SortEntry) obj).getSortField());
}
origin: senseidb/bobo

private static DocComparatorSource getComparatorSource(Browsable browser, SortField sf) {
 DocComparatorSource compSource = null;
 if (SortField.FIELD_DOC.equals(sf)) {
  compSource = new DocIdDocComparatorSource();
 } else if (SortField.FIELD_SCORE.equals(sf) || sf.getType() == SortField.Type.SCORE) {
org.apache.lucene.searchSortFieldequals

Javadoc

Returns true if o is equal to this. If a FieldComparatorSource was provided, it must properly implement equals (unless a singleton is always used).

Popular methods of SortField

  • <init>
    Creates a sort, possibly in reverse, by terms in the given field where the type of term value is det
  • getField
    Returns the name of the field. Could return null if the sort is by SCORE or DOC.
  • getReverse
    Returns whether the sort should be reversed.
  • getType
    Returns the type of contents in the field.
  • setMissingValue
    Set the value to use for documents that don't have a value.
  • getComparator
    Returns the FieldComparator to use for sorting.
  • getComparatorSource
    Returns the FieldComparatorSource used for custom sorting
  • getMissingValue
    Return the value to use for documents that don't have a value. A value of null indicates that defaul
  • toString
  • hashCode
    Returns a hash code for this SortField instance. If a FieldComparatorSource was provided, it must pr
  • needsScores
    Whether the relevance score is needed to sort documents.
  • getFactory
  • needsScores,
  • getFactory,
  • getLocale,
  • initFieldType,
  • rewrite

Popular in Java

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • putExtra (Intent)
  • startActivity (Activity)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now