[12/50] [abbrv] ignite git commit: ignite-1462: hid portable API in 1.4 release

2015-09-15 Thread vozerov
http://git-wip-us.apache.org/repos/asf/ignite/blob/71379a80/modules/indexing/src/test/java/org/apache/ignite/testsuites/IgnitePortableCacheQueryTestSuite.java
--
diff --git 
a/modules/indexing/src/test/java/org/apache/ignite/testsuites/IgnitePortableCacheQueryTestSuite.java
 
b/modules/indexing/src/test/java/org/apache/ignite/testsuites/IgnitePortableCacheQueryTestSuite.java
deleted file mode 100644
index 27ac436..000
--- 
a/modules/indexing/src/test/java/org/apache/ignite/testsuites/IgnitePortableCacheQueryTestSuite.java
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.testsuites;
-
-import junit.framework.TestSuite;
-import 
org.apache.ignite.internal.processors.cache.CacheLocalQueryMetricsSelfTest;
-import 
org.apache.ignite.internal.processors.cache.CachePartitionedQueryMetricsDistributedSelfTest;
-import 
org.apache.ignite.internal.processors.cache.CachePartitionedQueryMetricsLocalSelfTest;
-import 
org.apache.ignite.internal.processors.cache.CacheReplicatedQueryMetricsDistributedSelfTest;
-import 
org.apache.ignite.internal.processors.cache.CacheReplicatedQueryMetricsLocalSelfTest;
-import 
org.apache.ignite.internal.processors.cache.GridCacheQueryIndexDisabledSelfTest;
-import 
org.apache.ignite.internal.processors.cache.GridCacheQueryIndexingDisabledSelfTest;
-import 
org.apache.ignite.internal.processors.cache.GridCacheReduceQueryMultithreadedSelfTest;
-import 
org.apache.ignite.internal.processors.cache.IgniteCacheFieldsQueryNoDataSelfTest;
-import 
org.apache.ignite.internal.processors.cache.IgniteCacheLargeResultSelfTest;
-import 
org.apache.ignite.internal.processors.cache.IgniteCacheOffheapTieredMultithreadedSelfTest;
-import 
org.apache.ignite.internal.processors.cache.IgniteCacheP2pUnmarshallingQueryErrorTest;
-import 
org.apache.ignite.internal.processors.cache.IgniteCachePartitionedQueryMultiThreadedSelfTest;
-import 
org.apache.ignite.internal.processors.cache.IgniteCacheQueryEvictsMultiThreadedSelfTest;
-import 
org.apache.ignite.internal.processors.cache.IgniteCacheQueryMultiThreadedSelfTest;
-import 
org.apache.ignite.internal.processors.cache.IgniteCacheQueryOffheapMultiThreadedSelfTest;
-import 
org.apache.ignite.internal.processors.cache.portable.distributed.dht.GridCachePortableDuplicateIndexObjectPartitionedAtomicSelfTest;
-import 
org.apache.ignite.internal.processors.cache.portable.distributed.dht.GridCachePortableDuplicateIndexObjectPartitionedTransactionalSelfTest;
-import 
org.apache.ignite.internal.processors.cache.query.continuous.GridCacheContinuousQueryAtomicNearEnabledSelfTest;
-import 
org.apache.ignite.internal.processors.cache.query.continuous.GridCacheContinuousQueryAtomicP2PDisabledSelfTest;
-import 
org.apache.ignite.internal.processors.cache.query.continuous.GridCacheContinuousQueryAtomicSelfTest;
-import 
org.apache.ignite.internal.processors.cache.query.continuous.GridCacheContinuousQueryLocalAtomicSelfTest;
-import 
org.apache.ignite.internal.processors.cache.query.continuous.GridCacheContinuousQueryPartitionedOnlySelfTest;
-import 
org.apache.ignite.internal.processors.cache.query.continuous.GridCacheContinuousQueryReplicatedAtomicSelfTest;
-import 
org.apache.ignite.internal.processors.query.h2.sql.BaseH2CompareQueryTest;
-import org.apache.ignite.internal.processors.query.h2.sql.GridQueryParsingTest;
-import 
org.apache.ignite.internal.processors.query.h2.sql.H2CompareBigQueryTest;
-import org.apache.ignite.marshaller.portable.PortableMarshaller;
-import 
org.apache.ignite.spi.communication.tcp.GridOrderedMessageCancelSelfTest;
-import org.apache.ignite.testframework.config.GridTestProperties;
-
-/**
- * Cache query suite with portable marshaller.
- */
-public class IgnitePortableCacheQueryTestSuite extends TestSuite {
-/**
- * @return Suite.
- * @throws Exception In case of error.
- */
-public static TestSuite suite() throws Exception {
-GridTestProperties.setProperty(GridTestProperties.MARSH_CLASS_NAME, 
PortableMarshaller.class.getName());
-
-TestSuite suite = new TestSuite("Grid Cache Query Test Suite using 
PortableMarshaller");
-

[12/50] [abbrv] ignite git commit: ignite-1462: hid portable API in 1.4 release

2015-09-15 Thread sboikov
http://git-wip-us.apache.org/repos/asf/ignite/blob/71379a80/modules/core/src/main/java/org/apache/ignite/IgnitePortables.java
--
diff --git a/modules/core/src/main/java/org/apache/ignite/IgnitePortables.java 
b/modules/core/src/main/java/org/apache/ignite/IgnitePortables.java
deleted file mode 100644
index ee0a4ec..000
--- a/modules/core/src/main/java/org/apache/ignite/IgnitePortables.java
+++ /dev/null
@@ -1,370 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite;
-
-import java.sql.Timestamp;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.TreeMap;
-import java.util.UUID;
-import org.apache.ignite.marshaller.portable.PortableMarshaller;
-import org.apache.ignite.portable.PortableBuilder;
-import org.apache.ignite.portable.PortableException;
-import org.apache.ignite.portable.PortableIdMapper;
-import org.apache.ignite.portable.PortableMarshalAware;
-import org.apache.ignite.portable.PortableMetadata;
-import org.apache.ignite.portable.PortableObject;
-import org.apache.ignite.portable.PortableSerializer;
-import org.apache.ignite.portable.PortableTypeConfiguration;
-import org.jetbrains.annotations.Nullable;
-
-/**
- * Defines portable objects functionality. With portable objects you are able 
to:
- * 
- * Seamlessly interoperate between Java, .NET, and C++.
- * Make any object portable with zero code change to your existing 
code.
- * Nest portable objects within each other.
- * Automatically handle {@code circular} or {@code null} references.
- * Automatically convert collections and maps between Java, .NET, and 
C++.
- * 
- *  Optionally avoid deserialization of objects on the server side
- *  (objects are stored in {@link PortableObject} format).
- * 
- * Avoid need to have concrete class definitions on the server side.
- * Dynamically change structure of the classes without having to restart 
the cluster.
- * Index into portable objects for querying purposes.
- * 
- * Working With Portables Directly
- * Once an object is defined as portable,
- * Ignite will always store it in memory in the portable (i.e. binary) format.
- * User can choose to work either with the portable format or with the 
deserialized form
- * (assuming that class definitions are present in the classpath).
- * 
- * To work with the portable format directly, user should create a special 
cache projection
- * using {@link IgniteCache#withKeepPortable()} method and then retrieve 
individual fields as needed:
- * 
- * IgniteCache prj = 
cache.withKeepPortable();
- *
- * // Convert instance of MyKey to portable format.
- * // We could also use PortableBuilder to create the key in portable format 
directly.
- * PortableObject key = grid.portables().toPortable(new MyKey());
- *
- * PortableObject val = prj.get(key);
- *
- * String field = val.field("myFieldName");
- * 
- * Alternatively, if we have class definitions in the classpath, we may choose 
to work with deserialized
- * typed objects at all times. In this case we do incur the deserialization 
cost. However, if
- * {@link PortableMarshaller#isKeepDeserialized()} is {@code true} then Ignite 
will only deserialize on the first access
- * and will cache the deserialized object, so it does not have to be 
deserialized again:
- * 
- * IgniteCache cache = grid.cache(null);
- *
- * MyValue val = cache.get(new MyKey());
- *
- * // Normal java getter.
- * String fieldVal = val.getMyFieldName();
- * 
- * If we used, for example, one of the automatically handled portable types 
for a key, like integer,
- * and still wanted to work with binary portable format for values, then we 
would declare cache projection
- * as follows:
- * 
- * IgniteCache prj = 
cache.withKeepPortable();
- * 
- * Automatic Portable Types
- * Note that only portable classes are converted to {@link PortableObject} 
format. Following
- * classes are never converted (e.g., {@link #toPortable(Object)} method will 
return original
- * object, and instances of