Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 149 for asSerialized (0.48 seconds)

  1. benchmarks/src/main/java/org/elasticsearch/benchmark/search/aggregations/bucket/terms/StringTermsSerializationBenchmark.java

                false,
                100000,
                resultBuckets,
                null
            );
        }
    
        @Benchmark
        public DelayableWriteable<InternalAggregations> serialize() {
            return results.asSerialized(InternalAggregations::readFrom, REGISTRY);
        }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Aug 12 21:50:17 GMT 2021
    - 3K bytes
    - Click Count (0)
  2. tensorflow/c/eager/c_api_distributed_test.cc

      TFE_Context* ctx = TFE_NewContext(opts, status);
      EXPECT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
      TFE_DeleteContextOptions(opts);
    
      TFE_ContextSetServerDef(ctx, 0, serialized.data(), serialized.size(), status);
      EXPECT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
    
      const char task0_name[] = "/job:localhost/replica:0/task:0/device:CPU:0";
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 12 05:11:17 GMT 2024
    - 23.4K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/crawler/serializer/DataSerializerTest.java

            String original = "Hello, World!";
    
            byte[] serialized = serializer.fromObjectToBinary(original);
            assertNotNull(serialized, "Serialized data should not be null");
            assertTrue("Serialized data should not be empty", serialized.length > 0);
    
            Object deserialized = serializer.fromBinaryToObject(serialized);
            assertNotNull(deserialized, "Deserialized object should not be null");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 21.6K bytes
    - Click Count (0)
  4. tensorflow/c/eager/c_api_cluster_test.cc

      EXPECT_EQ(tensorflow::unwrap(var_handle0)->DeviceName(&status2), dev0_name);
    
      // Rename local device
      // This server def has the task index set to 0.
      string serialized = server_def.SerializeAsString();
      TFE_ContextSetServerDef(ctx, 0, serialized.data(), serialized.size(), status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      const string dev1_name =
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Oct 09 05:56:18 GMT 2025
    - 19.2K bytes
    - Click Count (0)
  5. guava-testlib/src/com/google/common/testing/SerializableTester.java

       *
       * @return the re-serialized object
       * @throws RuntimeException if the specified object was not successfully serialized or
       *     deserialized
       */
      @CanIgnoreReturnValue
      public static <T> T reserialize(T object) {
        return Platform.reserialize(object);
      }
    
      /**
       * Serializes and deserializes the specified object and verifies that the re-serialized object is
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 14:50:24 GMT 2024
    - 4.1K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/core/io/SerializeUtil.java

                }
            }
    
            // Reject everything else
            return ObjectInputFilter.Status.REJECTED;
        };
    
        /**
         * Tests if the object can be serialized.
         *
         * @param obj the object to be serialized (must not be {@literal null})
         * @return the deserialized object
         */
        public static Object serialize(final Object obj) {
            assertArgumentNotNull("obj", obj);
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Feb 12 12:10:45 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/crawler/serializer/DataSerializer.java

         * <p>
         * Uses the thread-local Kryo instance to serialize the object along with
         * its class information. The serialized data is written to a byte array
         * output stream.
         * </p>
         *
         * @param obj the object to serialize
         * @return the serialized object as a byte array
         * @throws IORuntimeException if an I/O error occurs during serialization
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Jan 10 01:54:09 GMT 2026
    - 10.5K bytes
    - Click Count (3)
  8. android/guava-testlib/src/com/google/common/testing/SerializableTester.java

       *
       * @return the re-serialized object
       * @throws RuntimeException if the specified object was not successfully serialized or
       *     deserialized
       */
      @CanIgnoreReturnValue
      public static <T> T reserialize(T object) {
        return Platform.reserialize(object);
      }
    
      /**
       * Serializes and deserializes the specified object and verifies that the re-serialized object is
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 14:50:24 GMT 2024
    - 4.1K bytes
    - Click Count (0)
  9. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/io/SettingsWriter.java

         * @param settings The settings to serialize, must not be {@code null}.
         * @throws IOException If the settings could not be serialized.
         */
        void write(File output, Map<String, Object> options, Settings settings) throws IOException;
    
        /**
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3K bytes
    - Click Count (0)
  10. fastapi/sse.py

        For example, `data="hello"` produces `data: "hello"` on the wire (with
        quotes).
        """
    
        data: Annotated[
            Any,
            Doc(
                """
                The event payload.
    
                Can be any JSON-serializable value: a Pydantic model, dict, list,
                string, number, etc. It is **always** serialized to JSON: strings
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 6.2K bytes
    - Click Count (0)
Back to Top