test_class.file: code/src/test/java/com/googlecode/cqengine/index/unique/UniqueIndexTest.java
test_class.identifier: UniqueIndexTest
test_case.body: @Test(expected = UniqueIndex.UniqueConstraintViolatedException.class)
      public void testDuplicateObjectDetection_SimpleAttribute() {
          IndexedCollection<Car> cars = new ConcurrentIndexedCollection<Car>();
  
          // Add some indexes...
          cars.addIndex(UniqueIndex.onAttribute(Car.CAR_ID));
  
          // Add some objects to the collection...
          cars.add(new Car(1, "ford focus", "great condition, low mileage", Arrays.asList("spare tyre", "sunroof")));
          cars.add(new Car(2, "ford taurus", "dirty and unreliable, flat tyre", Arrays.asList("spare tyre", "radio")));
          cars.add(new Car(3, "honda civic", "has a flat tyre and high mileage", Arrays.asList("radio")));
  
          cars.add(new Car(2, "some other car", "foo", Arrays.asList("bar")));
      }
test_case.class_method_signature: UniqueIndexTest.testDuplicateObjectDetection_SimpleAttribute()
test_case.full_signature: @Test(expected = UniqueIndex.UniqueConstraintViolatedException.class) public void testDuplicateObjectDetection_SimpleAttribute()
test_case.identifier: testDuplicateObjectDetection_SimpleAttribute
test_case.invocations: addIndex onAttribute add asList add asList add asList add asList
test_case.modifiers: @Test(expected = UniqueIndex.UniqueConstraintViolatedException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDuplicateObjectDetection_SimpleAttribute()
focal_class.declarator: INDEX_RETRIEVAL_COST = 25
focal_class.modifier: protected static final
focal_class.original_string: protected static final int INDEX_RETRIEVAL_COST = 25;
focal_class.type: int
focal_class.var_name: INDEX_RETRIEVAL_COST
focal_class.declarator: indexMapFactory
focal_class.modifier: protected final
focal_class.original_string: protected final Factory<ConcurrentMap<A,O>> indexMapFactory;
focal_class.type: Factory<ConcurrentMap<A,O>>
focal_class.var_name: indexMapFactory
focal_class.declarator: indexMap
focal_class.modifier: protected final
focal_class.original_string: protected final ConcurrentMap<A,O> indexMap;
focal_class.type: ConcurrentMap<A,O>
focal_class.var_name: indexMap
focal_class.file: code/src/main/java/com/googlecode/cqengine/index/unique/UniqueIndex.java
focal_class.identifier: UniqueIndex
focal_class.interfaces: implements OnHeapTypeIndex
focal_class.class_method_signature: UniqueIndex.UniqueIndex(Factory<ConcurrentMap<A,O>> indexMapFactory, Attribute<O, A> attribute)
focal_class.full_signature: protected  UniqueIndex(Factory<ConcurrentMap<A,O>> indexMapFactory, Attribute<O, A> attribute)
focal_class.identifier: UniqueIndex
focal_class.modifiers: protected
focal_class.parameters: (Factory<ConcurrentMap<A,O>> indexMapFactory, Attribute<O, A> attribute)
focal_class.signature:  UniqueIndex(Factory<ConcurrentMap<A,O>> indexMapFactory, Attribute<O, A> attribute)
focal_class.class_method_signature: UniqueIndex.supportsQuery(Query<O> query, QueryOptions queryOptions)
focal_class.full_signature: @Override public boolean supportsQuery(Query<O> query, QueryOptions queryOptions)
focal_class.identifier: supportsQuery
focal_class.modifiers: @Override public
focal_class.parameters: (Query<O> query, QueryOptions queryOptions)
focal_class.return: boolean
focal_class.signature: boolean supportsQuery(Query<O> query, QueryOptions queryOptions)
focal_class.class_method_signature: UniqueIndex.isMutable()
focal_class.full_signature: @Override public boolean isMutable()
focal_class.identifier: isMutable
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isMutable()
focal_class.class_method_signature: UniqueIndex.isQuantized()
focal_class.full_signature: @Override public boolean isQuantized()
focal_class.identifier: isQuantized
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isQuantized()
focal_class.class_method_signature: UniqueIndex.getEffectiveIndex()
focal_class.full_signature: @Override public Index<O> getEffectiveIndex()
focal_class.identifier: getEffectiveIndex
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Index<O>
focal_class.signature: Index<O> getEffectiveIndex()
focal_class.class_method_signature: UniqueIndex.retrieve(final Query<O> query, final QueryOptions queryOptions)
focal_class.full_signature: @Override public ResultSet<O> retrieve(final Query<O> query, final QueryOptions queryOptions)
focal_class.identifier: retrieve
focal_class.modifiers: @Override public
focal_class.parameters: (final Query<O> query, final QueryOptions queryOptions)
focal_class.return: ResultSet<O>
focal_class.signature: ResultSet<O> retrieve(final Query<O> query, final QueryOptions queryOptions)
focal_class.class_method_signature: UniqueIndex.retrieveIn(final In<O, A> in, final QueryOptions queryOptions, final ConcurrentMap<A, O> indexMap)
focal_class.full_signature: protected ResultSet<O> retrieveIn(final In<O, A> in, final QueryOptions queryOptions, final ConcurrentMap<A, O> indexMap)
focal_class.identifier: retrieveIn
focal_class.modifiers: protected
focal_class.parameters: (final In<O, A> in, final QueryOptions queryOptions, final ConcurrentMap<A, O> indexMap)
focal_class.return: ResultSet<O>
focal_class.signature: ResultSet<O> retrieveIn(final In<O, A> in, final QueryOptions queryOptions, final ConcurrentMap<A, O> indexMap)
focal_class.class_method_signature: UniqueIndex.retrieveEqual(final Equal<O, A> equal, final QueryOptions queryOptions, final ConcurrentMap<A, O> indexMap)
focal_class.full_signature: protected ResultSet<O> retrieveEqual(final Equal<O, A> equal, final QueryOptions queryOptions, final ConcurrentMap<A, O> indexMap)
focal_class.identifier: retrieveEqual
focal_class.modifiers: protected
focal_class.parameters: (final Equal<O, A> equal, final QueryOptions queryOptions, final ConcurrentMap<A, O> indexMap)
focal_class.return: ResultSet<O>
focal_class.signature: ResultSet<O> retrieveEqual(final Equal<O, A> equal, final QueryOptions queryOptions, final ConcurrentMap<A, O> indexMap)
focal_class.class_method_signature: UniqueIndex.addAll(ObjectSet<O> objectSet, QueryOptions queryOptions)
focal_class.full_signature: @Override public boolean addAll(ObjectSet<O> objectSet, QueryOptions queryOptions)
focal_class.identifier: addAll
focal_class.modifiers: @Override public
focal_class.parameters: (ObjectSet<O> objectSet, QueryOptions queryOptions)
focal_class.return: boolean
focal_class.signature: boolean addAll(ObjectSet<O> objectSet, QueryOptions queryOptions)
focal_class.class_method_signature: UniqueIndex.removeAll(ObjectSet<O> objectSet, QueryOptions queryOptions)
focal_class.full_signature: @Override public boolean removeAll(ObjectSet<O> objectSet, QueryOptions queryOptions)
focal_class.identifier: removeAll
focal_class.modifiers: @Override public
focal_class.parameters: (ObjectSet<O> objectSet, QueryOptions queryOptions)
focal_class.return: boolean
focal_class.signature: boolean removeAll(ObjectSet<O> objectSet, QueryOptions queryOptions)
focal_class.class_method_signature: UniqueIndex.init(ObjectStore<O> objectStore, QueryOptions queryOptions)
focal_class.full_signature: @Override public void init(ObjectStore<O> objectStore, QueryOptions queryOptions)
focal_class.identifier: init
focal_class.modifiers: @Override public
focal_class.parameters: (ObjectStore<O> objectStore, QueryOptions queryOptions)
focal_class.return: void
focal_class.signature: void init(ObjectStore<O> objectStore, QueryOptions queryOptions)
focal_class.class_method_signature: UniqueIndex.destroy(QueryOptions queryOptions)
focal_class.full_signature: @Override public void destroy(QueryOptions queryOptions)
focal_class.identifier: destroy
focal_class.modifiers: @Override public
focal_class.parameters: (QueryOptions queryOptions)
focal_class.return: void
focal_class.signature: void destroy(QueryOptions queryOptions)
focal_class.class_method_signature: UniqueIndex.clear(QueryOptions queryOptions)
focal_class.full_signature: @Override public void clear(QueryOptions queryOptions)
focal_class.identifier: clear
focal_class.modifiers: @Override public
focal_class.parameters: (QueryOptions queryOptions)
focal_class.return: void
focal_class.signature: void clear(QueryOptions queryOptions)
focal_class.class_method_signature: UniqueIndex.onAttribute(Attribute<O, A> attribute)
focal_class.full_signature: public static UniqueIndex<A, O> onAttribute(Attribute<O, A> attribute)
focal_class.identifier: onAttribute
focal_class.modifiers: public static
focal_class.parameters: (Attribute<O, A> attribute)
focal_class.return: UniqueIndex<A, O>
focal_class.signature: UniqueIndex<A, O> onAttribute(Attribute<O, A> attribute)
focal_class.class_method_signature: UniqueIndex.onAttribute(Factory<ConcurrentMap<A, O>> indexMapFactory, Attribute<O, A> attribute)
focal_class.full_signature: public static UniqueIndex<A, O> onAttribute(Factory<ConcurrentMap<A, O>> indexMapFactory, Attribute<O, A> attribute)
focal_class.identifier: onAttribute
focal_class.modifiers: public static
focal_class.parameters: (Factory<ConcurrentMap<A, O>> indexMapFactory, Attribute<O, A> attribute)
focal_class.return: UniqueIndex<A, O>
focal_class.signature: UniqueIndex<A, O> onAttribute(Factory<ConcurrentMap<A, O>> indexMapFactory, Attribute<O, A> attribute)
focal_class.superclass: extends AbstractAttributeIndex<A,O>
focal_method.body: public static <A, O> UniqueIndex<A, O> onAttribute(Attribute<O, A> attribute) {
          return onAttribute(new DefaultIndexMapFactory<A, O>(), attribute);
      }
focal_method.class_method_signature: UniqueIndex.onAttribute(Attribute<O, A> attribute)
focal_method.full_signature: public static UniqueIndex<A, O> onAttribute(Attribute<O, A> attribute)
focal_method.identifier: onAttribute
focal_method.invocations: onAttribute
focal_method.modifiers: public static
focal_method.parameters: (Attribute<O, A> attribute)
focal_method.return: UniqueIndex<A, O>
focal_method.signature: UniqueIndex<A, O> onAttribute(Attribute<O, A> attribute)