congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CompoundIndexes.value
Code IndexAdd Tabnine to your IDE (free)

How to use
value
method
in
org.springframework.data.mongodb.core.index.CompoundIndexes

Best Java code snippets using org.springframework.data.mongodb.core.index.CompoundIndexes.value (Showing top 2 results out of 315)

origin: spring-projects/spring-data-mongodb

/**
 * Create {@link IndexDefinition} wrapped in {@link IndexDefinitionHolder} for {@link CompoundIndexes} of given type.
 *
 * @param dotPath The properties {@literal "dot"} path representation from its document root.
 * @param fallbackCollection
 * @param type
 * @return
 */
protected List<IndexDefinitionHolder> createCompoundIndexDefinitions(String dotPath, String fallbackCollection,
    MongoPersistentEntity<?> entity) {
  List<IndexDefinitionHolder> indexDefinitions = new ArrayList<>();
  CompoundIndexes indexes = entity.findAnnotation(CompoundIndexes.class);
  if (indexes != null) {
    indexDefinitions = Arrays.stream(indexes.value())
        .map(index -> createCompoundIndexDefinition(dotPath, fallbackCollection, index, entity))
        .collect(Collectors.toList());
  }
  CompoundIndex index = entity.findAnnotation(CompoundIndex.class);
  if (index != null) {
    indexDefinitions.add(createCompoundIndexDefinition(dotPath, fallbackCollection, index, entity));
  }
  return indexDefinitions;
}
origin: org.springframework.data/spring-data-mongodb

/**
 * Create {@link IndexDefinition} wrapped in {@link IndexDefinitionHolder} for {@link CompoundIndexes} of given type.
 *
 * @param dotPath The properties {@literal "dot"} path representation from its document root.
 * @param fallbackCollection
 * @param type
 * @return
 */
protected List<IndexDefinitionHolder> createCompoundIndexDefinitions(String dotPath, String fallbackCollection,
    MongoPersistentEntity<?> entity) {
  List<IndexDefinitionHolder> indexDefinitions = new ArrayList<>();
  CompoundIndexes indexes = entity.findAnnotation(CompoundIndexes.class);
  if (indexes != null) {
    indexDefinitions = Arrays.stream(indexes.value())
        .map(index -> createCompoundIndexDefinition(dotPath, fallbackCollection, index, entity))
        .collect(Collectors.toList());
  }
  CompoundIndex index = entity.findAnnotation(CompoundIndex.class);
  if (index != null) {
    indexDefinitions.add(createCompoundIndexDefinition(dotPath, fallbackCollection, index, entity));
  }
  return indexDefinitions;
}
org.springframework.data.mongodb.core.indexCompoundIndexesvalue

Popular methods of CompoundIndexes

  • <init>

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Best IntelliJ plugins
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