Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 427 for asStream (0.9 sec)

  1. docs/debugging/inspect/decrypt-v2.go

    	}
    	extracted := false
    	for {
    		stream, err := sr.NextStream()
    		if err != nil {
    			if err == io.EOF {
    				if extracted {
    					return nil
    				}
    				return errors.New("no data found on stream")
    			}
    			if errors.Is(err, estream.ErrNoKey) {
    				if stream.Name == "inspect.zip" {
    					return errors.New("incorrect private key")
    				}
    				if err := stream.Skip(); err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  2. internal/s3select/json/preader.go

    					continue
    				}
    				dst, ok := r.kvDstPool.Get().([]jstream.KVS)
    				if !ok {
    					dst = make([]jstream.KVS, 0, 1000)
    				}
    
    				d := jstream.NewDecoder(bytes.NewBuffer(in.input), 0).ObjectAsKVS()
    				stream := d.Stream()
    				all := dst[:0]
    				for mv := range stream {
    					var kvs jstream.KVS
    					if mv.ValueType == jstream.Object {
    						// This is a JSON object type (that preserves key
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 05 04:57:35 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  3. internal/s3select/json/reader.go

    		}
    		return nil, io.EOF
    	}
    
    	var kvs jstream.KVS
    	if v.ValueType == jstream.Object {
    		// This is a JSON object type (that preserves key
    		// order)
    		kvs = v.Value.(jstream.KVS)
    	} else {
    		// To be AWS S3 compatible Select for JSON needs to
    		// output non-object JSON as single column value
    		// i.e. a map with `_1` as key and value as the
    		// non-object.
    		kvs = jstream.KVS{jstream.KV{Key: "_1", Value: v.Value}}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 24 03:58:53 GMT 2022
    - 3K bytes
    - Viewed (0)
  4. internal/s3select/sql/jsonpath_test.go

    	"io"
    	"os"
    	"path/filepath"
    	"reflect"
    	"testing"
    
    	"github.com/alecthomas/participle"
    	"github.com/bcicen/jstream"
    )
    
    func getJSONStructs(b []byte) ([]interface{}, error) {
    	dec := jstream.NewDecoder(bytes.NewBuffer(b), 0).ObjectAsKVS()
    	var result []interface{}
    	for parsedVal := range dec.Stream() {
    		result = append(result, parsedVal.Value)
    	}
    	if err := dec.Err(); err != nil {
    		return nil, err
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 2.8K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_helper.cc

    #include <stdio.h>
    
    #include <fstream>
    #include <string>
    #include <utility>
    
    TempFile::TempFile(const std::string& temp_file_name, std::ios::openmode mode)
        : std::fstream(temp_file_name, mode), name_(temp_file_name) {}
    
    TempFile::TempFile(TempFile&& rhs)
        : std::fstream(std::move(rhs)), name_(std::move(rhs.name_)) {}
    
    TempFile::~TempFile() {
      std::fstream::close();
      std::remove(name_.c_str());
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Jun 26 14:56:58 GMT 2020
    - 1.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/stream/StreamUtil.java

        }
    
        public static class StreamOf<T> {
    
            private final Supplier<Stream<T>> supplier;
    
            public StreamOf(final Supplier<Stream<T>> supplier) {
                this.supplier = supplier;
            }
    
            public void of(final Consumer<Stream<T>> stream) {
                try (Stream<T> s = supplier.get()) {
                    stream.accept(s);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/collect/StreamsBenchmark.java

          @Override
          Object operate(Stream<?> stream) {
            return Streams.findLast(stream);
          }
        },
        REDUCE_LAST {
          @Override
          Object operate(Stream<?> stream) {
            return stream.reduce((a, b) -> b);
          }
        },
        REDUCE_LAST_PARALLEL {
          @Override
          Object operate(Stream<?> stream) {
            return stream.parallel().reduce((a, b) -> b);
          }
        };
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 03 19:39:41 GMT 2016
    - 2.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Serialization.java

          Map<K, V> map, ObjectOutputStream stream) throws IOException {
        stream.writeInt(map.size());
        for (Map.Entry<K, V> entry : map.entrySet()) {
          stream.writeObject(entry.getKey());
          stream.writeObject(entry.getValue());
        }
      }
    
      /**
       * Populates a map by reading an input stream, as part of deserialization. See {@link #writeMap}
       * for the data format.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

        if (canceled) {
          stream!!.closeLater(ErrorCode.CANCEL)
          throw IOException("Canceled")
        }
        stream!!.readTimeout().timeout(chain.readTimeoutMillis.toLong(), TimeUnit.MILLISECONDS)
        stream!!.writeTimeout().timeout(chain.writeTimeoutMillis.toLong(), TimeUnit.MILLISECONDS)
      }
    
      override fun flushRequest() {
        http2Connection.flush()
      }
    
      override fun finishRequest() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/http2/FrameLogTest.kt

        assertThat(formattedFlags).containsExactly(
          "",
          "END_STREAM",
          "00000010",
          "00000011",
          "END_HEADERS",
          "END_STREAM|END_HEADERS",
          "00000110",
          "00000111",
          "PADDED",
          "END_STREAM|PADDED",
          "00001010",
          "00001011",
          "00001100",
          "END_STREAM|END_HEADERS|PADDED",
          "00001110",
          "00001111",
          "00010000",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (0)
Back to top