Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for isHit (0.03 sec)

  1. platforms/core-execution/build-cache/src/main/java/org/gradle/caching/internal/controller/operations/LoadOperationMissResult.java

        public static final BuildCacheRemoteLoadBuildOperationType.Result INSTANCE = new LoadOperationMissResult();
    
        private LoadOperationMissResult() {
        }
    
        @Override
        public boolean isHit() {
            return false;
        }
    
        @Override
        public long getArchiveSize() {
            return 0;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. platforms/enterprise/enterprise-operations/src/main/java/org/gradle/caching/internal/operations/BuildCacheLocalLoadBuildOperationType.java

             */
            String getCacheKey();
    
        }
    
        public interface Result {
    
            /**
             * Whether the load has been a hit.
             *
             * @since 8.6
             */
            boolean isHit();
    
            /**
             * The number of bytes of the cache artifact if it was a hit.
             * Else undetermined.
             *
             * @since 8.6
             */
            long getArchiveSize();
    
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 09:42:42 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. platforms/core-execution/build-cache/src/main/java/org/gradle/caching/internal/controller/operations/LoadOperationHitResult.java

        private final long size;
    
        public LoadOperationHitResult(long size) {
            this.size = size;
        }
    
        @Override
        public boolean isHit() {
            return true;
        }
    
        @Override
        public long getArchiveSize() {
            return size;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. platforms/enterprise/enterprise-operations/src/main/java/org/gradle/caching/internal/operations/BuildCacheRemoteLoadBuildOperationType.java

             * The cache key.
             */
            String getCacheKey();
    
        }
    
        public interface Result {
    
            /**
             * Whether the load has been a hit.
             */
            boolean isHit();
    
            /**
             * The number of bytes of the loaded cache artifact if it was a hit.
             * Else undetermined.
             */
            long getArchiveSize();
    
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 09:42:42 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  5. platforms/core-execution/build-cache/src/main/java/org/gradle/caching/internal/controller/service/OpFiringLocalBuildCacheServiceHandle.java

                this.result = result;
                this.archiveSize = archiveSize;
            }
    
            @Override
            public boolean isHit() {
                return result.isPresent();
            }
    
            @Override
            public long getArchiveSize() {
                return archiveSize.get();
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 15 16:21:33 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. src/go/printer/printer.go

    // writeString writes the string s to p.output and updates p.pos, p.out,
    // and p.last. If isLit is set, s is escaped w/ tabwriter.Escape characters
    // to protect s from being interpreted by the tabwriter.
    //
    // Note: writeString is only used to write Go tokens, literals, and
    // comments, all of which must be written literally. Thus, it is correct
    // to always set isLit = true. However, setting it explicitly only when
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 41.6K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/noderesources/fit.go

    	return framework.QueueSkip, nil
    }
    
    // isFit checks if the pod fits the node. If the node is nil, it returns false.
    // It constructs a fake NodeInfo object for the node and checks if the pod fits the node.
    func isFit(pod *v1.Pod, node *v1.Node) bool {
    	if node == nil {
    		return false
    	}
    	nodeInfo := framework.NewNodeInfo()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/complit.go

    			}
    
    		case ir.OARRAYLIT, ir.OSTRUCTLIT:
    			value := value.(*ir.CompLitExpr)
    			fixedlit(ctxt, kind, value, a, init)
    			continue
    		}
    
    		islit := ir.IsConstNode(value)
    		if (kind == initKindStatic && !islit) || (kind == initKindDynamic && islit) {
    			continue
    		}
    
    		// build list of assignments: var[index] = expr
    		ir.SetPos(a)
    		as := ir.NewAssignStmt(base.Pos, a, value)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:03:54 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/noderesources/fit_test.go

    			node:     st.MakeNode().Capacity(map[v1.ResourceName]string{v1.ResourceCPU: "2"}).Obj(),
    			expected: true,
    		},
    	}
    
    	for name, tc := range testCases {
    		t.Run(name, func(t *testing.T) {
    			if got := isFit(tc.pod, tc.node); got != tc.expected {
    				t.Errorf("expected: %v, got: %v", tc.expected, got)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 57.4K bytes
    - Viewed (0)
Back to top