Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for startOffset (0.12 sec)

  1. src/test/java/org/codelibs/opensearch/extension/analysis/NGramSynonymTokenizer.java

        }
    
        void tokenizePartialBlock(final int startOffset, final int endOffset, final boolean afterSynonymProduced) {
            if (startOffset >= endOffset) {
                return;
            }
    
            int posInc = afterSynonymProduced ? 0 : 1;
            if (endOffset - startOffset < n) {
                queue.add(new MyToken(block.substring(startOffset, endOffset), startOffset, endOffset, posInc));
                return;
            }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 17K bytes
    - Viewed (0)
  2. docs/debugging/xl-meta/main.go

    	for shardsIdx, ok := range shardConfig {
    		if ok == 0 {
    			copy(splitData[shardsIdx][startOffset:], shards[shardsIdx])
    			for i := range shards[shardsIdx] {
    				if splitFilled[shardsIdx][startOffset+i] == 1 {
    					fmt.Println("Internal error: Found filled data at", startOffset+i)
    				}
    				splitFilled[shardsIdx][startOffset+i] = 1
    			}
    			reconstructed += len(shards[shardsIdx])
    		} else {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  3. cmd/object-api-utils_test.go

    	}
    	for i, test := range testCases {
    		startOffset, snappyStartOffset, firstPart, _, _ := getCompressedOffsets(test.objInfo, test.offset, nil)
    		if startOffset != test.startOffset {
    			t.Errorf("Test %d - expected startOffset %d but received %d",
    				i, test.startOffset, startOffset)
    		}
    		if snappyStartOffset != test.snappyStartOffset {
    			t.Errorf("Test %d - expected snappyOffset %d but received %d",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  4. cmd/warm-backend-s3.go

    	gopts := minio.GetObjectOptions{}
    
    	if rv != "" {
    		gopts.VersionID = string(rv)
    	}
    	if opts.startOffset >= 0 && opts.length > 0 {
    		if err := gopts.SetRange(opts.startOffset, opts.startOffset+opts.length-1); err != nil {
    			return nil, s3.ToObjectError(err, object)
    		}
    	}
    	c := &minio.Core{Client: s3.client}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/SourceSinkFactories.java

          public byte[] getExpected(byte[] bytes) {
            byte[] baseExpected = factory.getExpected(bytes);
            int startOffset = (int) min(off, baseExpected.length);
            int actualLen = (int) min(len, baseExpected.length - startOffset);
            return Arrays.copyOfRange(baseExpected, startOffset, startOffset + actualLen);
          }
    
          @Override
          public void tearDown() throws IOException {
            factory.tearDown();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/SourceSinkFactories.java

          public byte[] getExpected(byte[] bytes) {
            byte[] baseExpected = factory.getExpected(bytes);
            int startOffset = (int) min(off, baseExpected.length);
            int actualLen = (int) min(len, baseExpected.length - startOffset);
            return Arrays.copyOfRange(baseExpected, startOffset, startOffset + actualLen);
          }
    
          @Override
          public void tearDown() throws IOException {
            factory.tearDown();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  7. cmd/object-api-interface.go

    func GetObject(ctx context.Context, api ObjectLayer, bucket, object string, startOffset int64, length int64, writer io.Writer, etag string, opts ObjectOptions) (err error) {
    	var header http.Header
    	if etag != "" {
    		header.Set("ETag", etag)
    	}
    	Range := &HTTPRangeSpec{Start: startOffset, End: startOffset + length}
    
    	reader, err := api.GetObjectNInfo(ctx, bucket, object, Range, header, opts)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 22 21:57:20 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  8. cmd/warm-backend-azure.go

    	if opts.startOffset < 0 {
    		return nil, InvalidRange{}
    	}
    	resp, err := az.clnt.DownloadStream(ctx, az.Bucket, az.getDest(object), &azblob.DownloadStreamOptions{
    		Range: blob.HTTPRange{Offset: opts.startOffset, Count: opts.length},
    	})
    	if err != nil {
    		return nil, azureToObjectError(err, az.Bucket, az.getDest(object))
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. cmd/erasure-coding.go

    }
    
    // ShardFileOffset - returns the effective offset where erasure reading begins.
    func (e *Erasure) ShardFileOffset(startOffset, length, totalLength int64) int64 {
    	shardSize := e.ShardSize()
    	shardFileSize := e.ShardFileSize(totalLength)
    	endShard := (startOffset + length) / e.blockSize
    	tillOffset := endShard*shardSize + shardSize
    	if tillOffset > shardFileSize {
    		tillOffset = shardFileSize
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. cmd/erasure-object.go

    	if length < 0 {
    		length = fi.Size - startOffset
    	}
    
    	// Reply back invalid range if the input offset and length fall out of range.
    	if startOffset > fi.Size || startOffset+length > fi.Size {
    		return InvalidRange{startOffset, length, fi.Size}
    	}
    
    	// Get start part index and offset.
    	partIndex, partOffset, err := fi.ObjectToPartOffset(ctx, startOffset)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
Back to top