code stringlengths 227 324k | indentifier stringlengths 171 323k | lang stringclasses 2
values |
|---|---|---|
published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the L... | published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the L... | java |
hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy ... | hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy ... | java |
FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., ... | FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., ... | java |
/* * 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 us... | /* * 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 us... | java |
* 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 co... | * 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 co... | java |
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 ... | 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 ... | java |
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.kafka.server.share.context; imp... | 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.kafka.server.share.context; imp... | java |
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.kafka.server.share.context; import org.apache.kafka.co... | 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.kafka.server.share.context; import org.apache.kafka.co... | java |
specific language governing permissions and * limitations under the License. */ package org.apache.kafka.server.share.context; import org.apache.kafka.common.TopicIdPartition; import org.apache.kafka.common.TopicPartition; import org.apache.kafka.common.Uuid; import org.apache.kafka.common.message.ShareFetchResponseDat... | specific language governing permissions and * limitations under the License. */ package org.apache.kafka.server.share.context; import org.apache.kafka.common.TopicIdPartition; import org.apache.kafka.common.TopicPartition; import org.apache.kafka.common.Uuid; import org.apache.kafka.common.message.ShareFetchResponseDat... | java |
sessionEpoch); return new ShareFetchResponse(ShareFetchResponse.toMessage(Errors.INVALID_SHARE_SESSION_EPOCH, throttleTimeMs, Collections.emptyIterator(), Collections.emptyList())); } return new ShareFetchResponse(ShareFetchResponse.toMessage(Errors.NONE, throttleTimeMs, Collections.emptyIterator(), Collections.emptyLi... | sessionEpoch); return new ShareFetchResponse(ShareFetchResponse.toMessage(Errors.INVALID_SHARE_SESSION_EPOCH, throttleTimeMs, Collections.emptyIterator(), Collections.emptyList())); } return new ShareFetchResponse(ShareFetchResponse.toMessage(Errors.NONE, throttleTimeMs, Collections.emptyIterator(), Collections.emptyLi... | java |
unselected ones as they are encountered. */ private class PartitionIterator implements Iterator<Entry<TopicIdPartition, PartitionData>> { private final Iterator<Map.Entry<TopicIdPartition, ShareFetchResponseData.PartitionData>> iterator; private final boolean updateShareContextAndRemoveUnselected; private Map.Entry<Top... | unselected ones as they are encountered. */ private class PartitionIterator implements Iterator<Entry<TopicIdPartition, PartitionData>> { private final Iterator<Map.Entry<TopicIdPartition, ShareFetchResponseData.PartitionData>> iterator; private final boolean updateShareContextAndRemoveUnselected; private Map.Entry<Top... | java |
in this case, we need to perform a remove and then a mustAdd to maintain the correct order session.partitionMap().remove(cachedPart); session.partitionMap().mustAdd(cachedPart); } } else { if (updateShareContextAndRemoveUnselected) { iterator.remove(); } } } } return nextElement != null; } @Override public Map.Entry<To... | in this case, we need to perform a remove and then a mustAdd to maintain the correct order session.partitionMap().remove(cachedPart); session.partitionMap().mustAdd(cachedPart); } } else { if (updateShareContextAndRemoveUnselected) { iterator.remove(); } } } } return nextElement != null; } @Override public Map.Entry<To... | java |
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/... | 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/... | java |
(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, * WITHO... | (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, * WITHO... | java |
* 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 permis... | * 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 permis... | java |
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.flink.runtime.scheduler; import org.apache.flink.runtime.clusterframework.types.AllocationID; import org.apache.flink.runtime.clusterframewor... | 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.flink.runtime.scheduler; import org.apache.flink.runtime.clusterframework.types.AllocationID; import org.apache.flink.runtime.clusterframewor... | java |
import org.apache.flink.runtime.scheduler.strategy.ExecutionVertexID; import org.apache.flink.util.FlinkException; import org.apache.flink.util.function.BiConsumerWithException; import org.junit.jupiter.api.Test; import java.time.Duration; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection... | import org.apache.flink.runtime.scheduler.strategy.ExecutionVertexID; import org.apache.flink.util.FlinkException; import org.apache.flink.util.function.BiConsumerWithException; import org.junit.jupiter.api.Test; import java.time.Duration; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection... | java |
java.util.List; import java.util.Map; import java.util.Optional; import java.util.Set; import java.util.concurrent.CancellationException; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; import java.util.stream.Collectors; import static org.apache.flink.runtime.executiongra... | java.util.List; import java.util.Map; import java.util.Optional; import java.util.Set; import java.util.concurrent.CancellationException; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; import java.util.stream.Collectors; import static org.apache.flink.runtime.executiongra... | java |
createRandomExecutionVertexId(); private static final ExecutionVertexID EV3 = createRandomExecutionVertexId(); private static final ExecutionVertexID EV4 = createRandomExecutionVertexId(); @Test void testSlotProfileRequestAskedBulkAndGroup() { AllocationContext context = AllocationContext. <mask> <mask> <mask> <mask> (... | createRandomExecutionVertexId(); private static final ExecutionVertexID EV3 = createRandomExecutionVertexId(); private static final ExecutionVertexID EV4 = createRandomExecutionVertexId(); @Test void testSlotProfileRequestAskedBulkAndGroup() { AllocationContext context = AllocationContext. newBuilder ().addGroup(EV1, E... | java |
share a slot, therefore only one physical slot allocation should happen assertThat(assignIds).containsExactly(EV2); assertThat(context.getSlotProvider().getRequests()).hasSize(1); } @Test void testDuplicateAllocationDoesNotRecreateLogicalSlotFuture() throws ExecutionException, InterruptedException { AllocationContext c... | share a slot, therefore only one physical slot allocation should happen assertThat(assignIds).containsExactly(EV2); assertThat(context.getSlotProvider().getRequests()).hasSize(1); } @Test void testDuplicateAllocationDoesNotRecreateLogicalSlotFuture() throws ExecutionException, InterruptedException { AllocationContext c... | java |
physicalSlot = context.getSlotProvider().getResponses().get(slotRequest.getSlotRequestId()).get(); assertThat(physicalSlot.getPayload()).isNotNull(); assertThat(physicalSlot.getPayload().willOccupySlotIndefinitely()) .isEqualTo(slotWillBeOccupiedIndefinitely); } @Test void testReturningLogicalSlotsRemovesSharedSlot() t... | physicalSlot = context.getSlotProvider().getResponses().get(slotRequest.getSlotRequestId()).get(); assertThat(physicalSlot.getPayload()).isNotNull(); assertThat(physicalSlot.getPayload().willOccupySlotIndefinitely()) .isEqualTo(slotWillBeOccupiedIndefinitely); } @Test void testReturningLogicalSlotsRemovesSharedSlot() t... | java |
TestingPhysicalSlotRequestBulkChecker(); AllocationContext context = createBulkCheckerContextWithEv12GroupAndEv3Group(bulkChecker); context.allocateSlotsFor(EV1, EV3); PhysicalSlotRequestBulk bulk = bulkChecker.getBulk(); assertThat(bulk.getPendingRequests()).hasSize(2); assertThat(bulk.getPendingRequests()) .containsE... | TestingPhysicalSlotRequestBulkChecker(); AllocationContext context = createBulkCheckerContextWithEv12GroupAndEv3Group(bulkChecker); context.allocateSlotsFor(EV1, EV3); PhysicalSlotRequestBulk bulk = bulkChecker.getBulk(); assertThat(bulk.getPendingRequests()).hasSize(2); assertThat(bulk.getPendingRequests()) .containsE... | java |
{ TestingPhysicalSlotRequestBulkChecker bulkChecker = new TestingPhysicalSlotRequestBulkChecker(); AllocationContext context = createBulkCheckerContextWithEv12GroupAndEv3Group(bulkChecker); // allocate 2 physical slots for 2 groups Map<ExecutionAttemptID, ExecutionSlotAssignment> assignments1 = context.allocateSlotsFor... | { TestingPhysicalSlotRequestBulkChecker bulkChecker = new TestingPhysicalSlotRequestBulkChecker(); AllocationContext context = createBulkCheckerContextWithEv12GroupAndEv3Group(bulkChecker); // allocate 2 physical slots for 2 groups Map<ExecutionAttemptID, ExecutionSlotAssignment> assignments1 = context.allocateSlotsFor... | java |
= bulkChecker.getBulk(); Map<ExecutionAttemptID, ExecutionSlotAssignment> assignments2 = context.allocateSlotsFor(EV2); // cancelling of (EV1, EV3) releases assignments1 and only one physical slot for EV3 // the second physical slot is held by sharing EV2 from the next bulk bulk1.cancel(new Throwable()); // return comp... | = bulkChecker.getBulk(); Map<ExecutionAttemptID, ExecutionSlotAssignment> assignments2 = context.allocateSlotsFor(EV2); // cancelling of (EV1, EV3) releases assignments1 and only one physical slot for EV3 // the second physical slot is held by sharing EV2 from the next bulk bulk1.cancel(new Throwable()); // return comp... | java |
is held by sharing EV2 from the next bulk bulk1.cancel(new Throwable()); // return completed logical slot to clear shared slot and release physical slot assertThat(assignments1).hasSize(2); CompletableFuture<LogicalSlot> ev1slot = getAssignmentByExecutionVertexId(assignments1, EV1).getLogicalSlotFuture(); boolean ev1fa... | is held by sharing EV2 from the next bulk bulk1.cancel(new Throwable()); // return completed logical slot to clear shared slot and release physical slot assertThat(assignments1).hasSize(2); CompletableFuture<LogicalSlot> ev1slot = getAssignmentByExecutionVertexId(assignments1, EV1).getLogicalSlotFuture(); boolean ev1fa... | java |
context.allocateSlotsFor(EV1, EV2); for (ExecutionSlotAssignment allocatedSlot : allocatedSlots.values()) { assertThat(allocatedSlot.getLogicalSlotFuture()).isCompletedExceptionally(); } assertThat(bulkChecker.getBulk().getPendingRequests()).isEmpty(); final Set<SlotRequestId> requests = context.getSlotProvider().getRe... | context.allocateSlotsFor(EV1, EV2); for (ExecutionSlotAssignment allocatedSlot : allocatedSlots.values()) { assertThat(allocatedSlot.getLogicalSlotFuture()).isCompletedExceptionally(); } assertThat(bulkChecker.getBulk().getPendingRequests()).isEmpty(); final Set<SlotRequestId> requests = context.getSlotProvider().getRe... | java |
/* * 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 us... | /* * 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 us... | java |
/* * 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 us... | /* * 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 us... | java |
ArrayList<>(); for (String listener : listeners) { Connector connector = createConnector(listener); connectors.add(connector); log.info("Added connector for {}", listener); } jettyServer.setConnectors(connectors.toArray(new Connector[0])); if (adminListeners != null && !adminListeners.isEmpty()) { for (String adminList... | ArrayList<>(); for (String listener : listeners) { Connector connector = createConnector(listener); connectors.add(connector); log.info("Added connector for {}", listener); } jettyServer.setConnectors(connectors.toArray(new Connector[0])); if (adminListeners != null && !adminListeners.isEmpty()) { for (String adminList... | java |
initialize REST server", e); } log.info("REST server listening at " + jettyServer.getURI() + ", advertising URL " + advertisedUrl()); URI adminUrl = adminUrl(); if (adminUrl != null) log.info("REST admin endpoints at " + adminUrl); } protected final void initializeResources() { log.info("Initializing REST resources"); ... | initialize REST server", e); } log.info("REST server listening at " + jettyServer.getURI() + ", advertising URL " + advertisedUrl()); URI adminUrl = adminUrl(); if (adminUrl != null) log.info("REST admin endpoints at " + adminUrl); } protected final void initializeResources() { log.info("Initializing REST resources"); ... | java |
null) log.info("REST admin endpoints at " + adminUrl); } protected final void initializeResources() { log.info("Initializing REST resources"); ResourceConfig resourceConfig = newResourceConfig(); Collection<Class<?>> regularResources = regularResources(); regularResources.forEach(resourceConfig::register); configureReg... | null) log.info("REST admin endpoints at " + adminUrl); } protected final void initializeResources() { log.info("Initializing REST resources"); ResourceConfig resourceConfig = newResourceConfig(); Collection<Class<?>> regularResources = regularResources(); regularResources.forEach(resourceConfig::register); configureReg... | java |
!= null && adminListeners.isEmpty()) { log.info("Skipping adding admin resources"); // set up adminResource but add no handlers to it adminResourceConfig = resourceConfig; } else { if (adminListeners == null) { log.info("Adding admin resources to main listener"); adminResourceConfig = resourceConfig; } else { // TODO: ... | != null && adminListeners.isEmpty()) { log.info("Skipping adding admin resources"); // set up adminResource but add no handlers to it adminResourceConfig = resourceConfig; } else { if (adminListeners == null) { log.info("Adding admin resources to main listener"); adminResourceConfig = resourceConfig; } else { // TODO: ... | java |
registered with the given {@link ResourceConfig}. * This may be used to, for example, add REST extensions via {@link #registerRestExtensions(Herder, ResourceConfig)}. * <p> * <em>N.B.: Classes do <b>not</b> need to register the resources provided in {@link #regularResources()} with * the {@link ResourceConfig} paramete... | registered with the given {@link ResourceConfig}. * This may be used to, for example, add REST extensions via {@link #registerRestExtensions(Herder, ResourceConfig)}. * <p> * <em>N.B.: Classes do <b>not</b> need to register the resources provided in {@link #regularResources()} with * the {@link ResourceConfig} paramete... | java |
/* * Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa... | /* * Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa... | java |
synchronized (BootstrapLogger.class) { return useSurrogateLoggers(); } } // Called by LazyLoggerAccessor. This method will determine whether // to create a BootstrapLogger (if the VM is not yet booted), // a SurrogateLogger (if JUL is the default backend and there // is no custom JUL configuration and LogManager is not... | synchronized (BootstrapLogger.class) { return useSurrogateLoggers(); } } // Called by LazyLoggerAccessor. This method will determine whether // to create a BootstrapLogger (if the VM is not yet booted), // a SurrogateLogger (if JUL is the default backend and there // is no custom JUL configuration and LogManager is not... | java |
{ if (useSurrogateLoggers()) { return createSurrogateLogger(accessor); } } } // Already booted. Return the real logger. return accessor.createLogger(); } } // trigger class initialization outside of holding lock static void ensureBackendDetected() { assert VM.isBooted() : "VM is not booted"; // triggers detection of th... | { if (useSurrogateLoggers()) { return createSurrogateLogger(accessor); } } } // Already booted. Return the real logger. return accessor.createLogger(); } } // trigger class initialization outside of holding lock static void ensureBackendDetected() { assert VM.isBooted() : "VM is not booted"; // triggers detection of th... | java |
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.compute.operator; import org.elasticsearch.Tra... | /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.compute.operator; import org.elasticsearch.Tra... | java |
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.compute.operator; import org.elasticsearch.Tra... | /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.compute.operator; import org.elasticsearch.Tra... | java |
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.compute.operator; import org.elasticsearch.Tra... | /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.compute.operator; import org.elasticsearch.Tra... | java |
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.compute.operator; import org.elasticsearch.Tra... | /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.compute.operator; import org.elasticsearch.Tra... | java |
file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.compute.operator; import org.elasticsearch.TransportVersion; import org.elasticsearch.TransportVersions; import org.elasticsearch.common.Strings; import org.elasticsearch.common.io.stream.NamedWriteableRegistry; import org.elasticsea... | file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.compute.operator; import org.elasticsearch.TransportVersion; import org.elasticsearch.TransportVersions; import org.elasticsearch.common.Strings; import org.elasticsearch.common.io.stream.NamedWriteableRegistry; import org.elasticsea... | java |
import org.elasticsearch.compute.aggregation.AggregatorMode; import org.elasticsearch.compute.aggregation. <mask> <mask> <mask> <mask> <mask> <mask> <mask> ; import org.elasticsearch.compute.aggregation. <mask> <mask> <mask> <mask> <mask> <mask> <mask> Function; import org.elasticsearch.compute.aggregation.blockhash.Bl... | import org.elasticsearch.compute.aggregation.AggregatorMode; import org.elasticsearch.compute.aggregation. GroupingAggregator ; import org.elasticsearch.compute.aggregation. GroupingAggregator Function; import org.elasticsearch.compute.aggregation.blockhash.BlockHash; import org.elasticsearch.compute.data.Block; import... | java |
static java.util.Objects.requireNonNull; import static java.util.stream.Collectors.joining; public class HashAggregationOperator implements Operator { public record HashAggregationOperatorFactory( List<BlockHash.GroupSpec> groups, AggregatorMode aggregatorMode, List< <mask> <mask> <mask> <mask> <mask> <mask> <mask> .Fa... | static java.util.Objects.requireNonNull; import static java.util.stream.Collectors.joining; public class HashAggregationOperator implements Operator { public record HashAggregationOperatorFactory( List<BlockHash.GroupSpec> groups, AggregatorMode aggregatorMode, List< GroupingAggregator .Factory> aggregators, int maxPag... | java |
public class HashAggregationOperator implements Operator { public record HashAggregationOperatorFactory( List<BlockHash.GroupSpec> groups, AggregatorMode aggregatorMode, List< <mask> <mask> <mask> <mask> <mask> <mask> <mask> .Factory> aggregators, int maxPageSize, AnalysisRegistry analysisRegistry ) implements Operator... | public class HashAggregationOperator implements Operator { public record HashAggregationOperatorFactory( List<BlockHash.GroupSpec> groups, AggregatorMode aggregatorMode, List< GroupingAggregator .Factory> aggregators, int maxPageSize, AnalysisRegistry analysisRegistry ) implements OperatorFactory { @Override public Ope... | java |
{ public record HashAggregationOperatorFactory( List<BlockHash.GroupSpec> groups, AggregatorMode aggregatorMode, List< <mask> <mask> <mask> <mask> <mask> <mask> <mask> .Factory> aggregators, int maxPageSize, AnalysisRegistry analysisRegistry ) implements OperatorFactory { @Override public Operator get(DriverContext dri... | { public record HashAggregationOperatorFactory( List<BlockHash.GroupSpec> groups, AggregatorMode aggregatorMode, List< GroupingAggregator .Factory> aggregators, int maxPageSize, AnalysisRegistry analysisRegistry ) implements OperatorFactory { @Override public Operator get(DriverContext driverContext) { if (groups.strea... | java |
-> BlockHash.buildCategorizeBlockHash( groups, aggregatorMode, driverContext.blockFactory(), analysisRegistry, maxPageSize ), driverContext ); } return new HashAggregationOperator( aggregators, () -> BlockHash.build(groups, driverContext.blockFactory(), maxPageSize, false), driverContext ); } @Override public String de... | -> BlockHash.buildCategorizeBlockHash( groups, aggregatorMode, driverContext.blockFactory(), analysisRegistry, maxPageSize ), driverContext ); } return new HashAggregationOperator( aggregators, () -> BlockHash.build(groups, driverContext.blockFactory(), maxPageSize, false), driverContext ); } @Override public String de... | java |
} @Override public String describe() { return "HashAggregationOperator[mode = " + "<not-needed>" + ", aggs = " + aggregators.stream().map(Describable::describe).collect(joining(", ")) + "]"; } } private boolean finished; private Page output; private final BlockHash blockHash; private final List< <mask> <mask> <mask> <m... | } @Override public String describe() { return "HashAggregationOperator[mode = " + "<not-needed>" + ", aggs = " + aggregators.stream().map(Describable::describe).collect(joining(", ")) + "]"; } } private boolean finished; private Page output; private final BlockHash blockHash; private final List< GroupingAggregator > ag... | java |
if (success == false) { close(); } } } @Override public boolean needsInput() { return finished == false; } @Override public void addInput(Page page) { try { <mask> <mask> <mask> <mask> <mask> <mask> <mask> Function.AddInput[] prepared = new <mask> <mask> <mask> <mask> <mask> <mask> <mask> Function.AddInput[aggregators.... | if (success == false) { close(); } } } @Override public boolean needsInput() { return finished == false; } @Override public void addInput(Page page) { try { GroupingAggregator Function.AddInput[] prepared = new GroupingAggregator Function.AddInput[aggregators.size()]; class AddInput implements GroupingAggregator Functi... | java |
Protobuf type {@code DoRoguelikeDungeonCardGachaReq} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:DoRoguelikeDungeonCardGachaReq) emu.grasscutter.net.proto.DoRoguelikeDungeonCardGachaReqOuterClass.DoRogueli... | Protobuf type {@code DoRoguelikeDungeonCardGachaReq} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:DoRoguelikeDungeonCardGachaReq) emu.grasscutter.net.proto.DoRoguelikeDungeonCardGachaReqOuterClass.DoRogueli... | java |
if (other.getDungeonId() != 0) { setDungeonId(other.getDungeonId()); } if (other.getCellId() != 0) { setCellId(other.getCellId()); } this. <mask> <mask> <mask> <mask> <mask> <mask> <mask> (other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.l... | if (other.getDungeonId() != 0) { setDungeonId(other.getDungeonId()); } if (other.getCellId() != 0) { setCellId(other.getCellId()); } this. mergeUnknownFields (other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder me... | java |
(other.getCellId() != 0) { setCellId(other.getCellId()); } this. <mask> <mask> <mask> <mask> <mask> <mask> <mask> (other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStrea... | (other.getCellId() != 0) { setCellId(other.getCellId()); } this. mergeUnknownFields (other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.E... | java |
package ai.chat2db.server.test.domain.data.service; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.alibaba.fastjson2.JSON; import ai.chat2db.server.domain.api.param.ConsoleConnectParam; import ai.chat2db.server.domain.api.param.DlExecuteParam; import ai.chat2db.server.domain.api.par... | package ai.chat2db.server.test.domain.data.service; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.alibaba.fastjson2.JSON; import ai.chat2db.server.domain.api.param.ConsoleConnectParam; import ai.chat2db.server.domain.api.param.DlExecuteParam; import ai.chat2db.server.domain.api.par... | java |
package ai.chat2db.server.test.domain.data.service; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.alibaba.fastjson2.JSON; import ai.chat2db.server.domain.api.param.ConsoleConnectParam; import ai.chat2db.server.domain.api.param.DlExecuteParam; import ai.chat2db.server.domain.api.par... | package ai.chat2db.server.test.domain.data.service; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.alibaba.fastjson2.JSON; import ai.chat2db.server.domain.api.param.ConsoleConnectParam; import ai.chat2db.server.domain.api.param.DlExecuteParam; import ai.chat2db.server.domain.api.par... | java |
package ai.chat2db.server.test.domain.data.service; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.alibaba.fastjson2.JSON; import ai.chat2db.server.domain.api.param.ConsoleConnectParam; import ai.chat2db.server.domain.api.param.DlExecuteParam; import ai.chat2db.server.domain.api.par... | package ai.chat2db.server.test.domain.data.service; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.alibaba.fastjson2.JSON; import ai.chat2db.server.domain.api.param.ConsoleConnectParam; import ai.chat2db.server.domain.api.param.DlExecuteParam; import ai.chat2db.server.domain.api.par... | java |
ai.chat2db.server.test.domain.data.service; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.alibaba.fastjson2.JSON; import ai.chat2db.server.domain.api.param.ConsoleConnectParam; import ai.chat2db.server.domain.api.param.DlExecuteParam; import ai.chat2db.server.domain.api.param.DropP... | ai.chat2db.server.test.domain.data.service; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.alibaba.fastjson2.JSON; import ai.chat2db.server.domain.api.param.ConsoleConnectParam; import ai.chat2db.server.domain.api.param.DlExecuteParam; import ai.chat2db.server.domain.api.param.DropP... | java |
import com.alibaba.fastjson2.JSON; import ai.chat2db.server.domain.api.param.ConsoleConnectParam; import ai.chat2db.server.domain.api.param.DlExecuteParam; import ai.chat2db.server.domain.api.param.DropParam; import ai.chat2db.server.domain.api.param.ShowCreateTableParam; import ai.chat2db.server.domain.api.param.Table... | import com.alibaba.fastjson2.JSON; import ai.chat2db.server.domain.api.param.ConsoleConnectParam; import ai.chat2db.server.domain.api.param.DlExecuteParam; import ai.chat2db.server.domain.api.param.DropParam; import ai.chat2db.server.domain.api.param.ShowCreateTableParam; import ai.chat2db.server.domain.api.param.Table... | java |
ai.chat2db.server.domain.api.param.DropParam; import ai.chat2db.server.domain.api.param.ShowCreateTableParam; import ai.chat2db.server.domain.api.param.TablePageQueryParam; import ai.chat2db.server.domain.api.param.TableQueryParam; import ai.chat2db.server.domain.api.param.TableSelector; import ai.chat2db.server.domain... | ai.chat2db.server.domain.api.param.DropParam; import ai.chat2db.server.domain.api.param.ShowCreateTableParam; import ai.chat2db.server.domain.api.param.TablePageQueryParam; import ai.chat2db.server.domain.api.param.TableQueryParam; import ai.chat2db.server.domain.api.param.TableSelector; import ai.chat2db.server.domain... | java |
(DialectProperties dialectProperties : dialectPropertiesList) { String dbTypeEnum = dialectProperties.getDbType(); Long dataSourceId = TestUtils.nextLong(); Long consoleId = TestUtils.nextLong(); // Prepare context putConnect(dialectProperties.getUrl(), dialectProperties.getUsername(), dialectProperties.getPassword(), ... | (DialectProperties dialectProperties : dialectPropertiesList) { String dbTypeEnum = dialectProperties.getDbType(); Long dataSourceId = TestUtils.nextLong(); Long consoleId = TestUtils.nextLong(); // Prepare context putConnect(dialectProperties.getUrl(), dialectProperties.getUsername(), dialectProperties.getPassword(), ... | java |
= new TablePageQueryParam(); <mask> <mask> <mask> <mask> <mask> <mask> .setDataSourceId(dataSourceId); <mask> <mask> <mask> <mask> <mask> <mask> .setDatabaseName(dialectProperties.getDatabaseName()); <mask> <mask> <mask> <mask> <mask> <mask> .setTableName(dialectProperties.toCase(TABLE_NAME)); if (dialectProperties.get... | = new TablePageQueryParam(); tablePageQueryParam .setDataSourceId(dataSourceId); tablePageQueryParam .setDatabaseName(dialectProperties.getDatabaseName()); tablePageQueryParam .setTableName(dialectProperties.toCase(TABLE_NAME)); if (dialectProperties.getDbType() == "POSTGRESQL") { tablePageQueryParam .setSchemaName("pu... | java |
.setDataSourceId(dataSourceId); <mask> <mask> <mask> <mask> <mask> <mask> .setDatabaseName(dialectProperties.getDatabaseName()); <mask> <mask> <mask> <mask> <mask> <mask> .setTableName(dialectProperties.toCase(TABLE_NAME)); if (dialectProperties.getDbType() == "POSTGRESQL") { <mask> <mask> <mask> <mask> <mask> <mask> .... | .setDataSourceId(dataSourceId); tablePageQueryParam .setDatabaseName(dialectProperties.getDatabaseName()); tablePageQueryParam .setTableName(dialectProperties.toCase(TABLE_NAME)); if (dialectProperties.getDbType() == "POSTGRESQL") { tablePageQueryParam .setSchemaName("public"); } List<Table> tableList = tableService.pa... | java |
.setDatabaseName(dialectProperties.getDatabaseName()); <mask> <mask> <mask> <mask> <mask> <mask> .setTableName(dialectProperties.toCase(TABLE_NAME)); if (dialectProperties.getDbType() == "POSTGRESQL") { <mask> <mask> <mask> <mask> <mask> <mask> .setSchemaName("public"); } List<Table> tableList = tableService.pageQuery(... | .setDatabaseName(dialectProperties.getDatabaseName()); tablePageQueryParam .setTableName(dialectProperties.toCase(TABLE_NAME)); if (dialectProperties.getDbType() == "POSTGRESQL") { tablePageQueryParam .setSchemaName("public"); } List<Table> tableList = tableService.pageQuery( tablePageQueryParam , TableSelector.builder... | java |
.setTableName(dialectProperties.toCase(TABLE_NAME)); if (dialectProperties.getDbType() == "POSTGRESQL") { <mask> <mask> <mask> <mask> <mask> <mask> .setSchemaName("public"); } List<Table> tableList = tableService.pageQuery( <mask> <mask> <mask> <mask> <mask> <mask> , TableSelector.builder() .columnList(Boolean.TRUE) .i... | .setTableName(dialectProperties.toCase(TABLE_NAME)); if (dialectProperties.getDbType() == "POSTGRESQL") { tablePageQueryParam .setSchemaName("public"); } List<Table> tableList = tableService.pageQuery( tablePageQueryParam , TableSelector.builder() .columnList(Boolean.TRUE) .indexList(Boolean.TRUE) .build()).getData(); ... | java |
{ <mask> <mask> <mask> <mask> <mask> <mask> .setSchemaName("public"); } List<Table> tableList = tableService.pageQuery( <mask> <mask> <mask> <mask> <mask> <mask> , TableSelector.builder() .columnList(Boolean.TRUE) .indexList(Boolean.TRUE) .build()).getData(); log.info("Analyzing data returns {}", JSON.toJSONString(tabl... | { tablePageQueryParam .setSchemaName("public"); } List<Table> tableList = tableService.pageQuery( tablePageQueryParam , TableSelector.builder() .columnList(Boolean.TRUE) .indexList(Boolean.TRUE) .build()).getData(); log.info("Analyzing data returns {}", JSON.toJSONString(tableList)); Assertions.assertNotEquals(0L, tabl... | java |
structure: Test table // * Fields: //* id Primary key auto-increment //* date date is not null // * number long integer // * string String length 100 default value "DATA" // * //* Index (plus $tableName_ because some database indexes are globally unique): //* $tableName_idx_date date index reverse order // * $tableName... | structure: Test table // * Fields: //* id Primary key auto-increment //* date date is not null // * number long integer // * string String length 100 default value "DATA" // * //* Index (plus $tableName_ because some database indexes are globally unique): //* $tableName_idx_date date index reverse order // * $tableName... | java |
* Fields: //* id Primary key auto-increment //* date date is not null // * number long integer // * string String length 100 default value "DATA" // * //* Index (plus $tableName_ because some database indexes are globally unique): //* $tableName_idx_date date index reverse order // * $tableName_uk_number unique index /... | * Fields: //* id Primary key auto-increment //* date date is not null // * number long integer // * string String length 100 default value "DATA" // * //* Index (plus $tableName_ because some database indexes are globally unique): //* $tableName_idx_date date index reverse order // * $tableName_uk_number unique index /... | java |
//* id Primary key auto-increment //* date date is not null // * number long integer // * string String length 100 default value "DATA" // * //* Index (plus $tableName_ because some database indexes are globally unique): //* $tableName_idx_date date index reverse order // * $tableName_uk_number unique index // * $table... | //* id Primary key auto-increment //* date date is not null // * number long integer // * string String length 100 default value "DATA" // * //* Index (plus $tableName_ because some database indexes are globally unique): //* $tableName_idx_date date index reverse order // * $tableName_uk_number unique index // * $table... | java |
Primary key auto-increment //* date date is not null // * number long integer // * string String length 100 default value "DATA" // * //* Index (plus $tableName_ because some database indexes are globally unique): //* $tableName_idx_date date index reverse order // * $tableName_uk_number unique index // * $tableName_id... | Primary key auto-increment //* date date is not null // * number long integer // * string String length 100 default value "DATA" // * //* Index (plus $tableName_ because some database indexes are globally unique): //* $tableName_idx_date date index reverse order // * $tableName_uk_number unique index // * $tableName_id... | java |
is not null // * number long integer // * string String length 100 default value "DATA" // * //* Index (plus $tableName_ because some database indexes are globally unique): //* $tableName_idx_date date index reverse order // * $tableName_uk_number unique index // * $tableName_idx_number_string Union index String tableN... | is not null // * number long integer // * string String length 100 default value "DATA" // * //* Index (plus $tableName_ because some database indexes are globally unique): //* $tableName_idx_date date index reverse order // * $tableName_uk_number unique index // * $tableName_idx_number_string Union index String tableN... | java |
newTable.setColumnList(tableColumnList); //id TableColumn idTableColumn = new TableColumn(); idTableColumn.setName("id"); idTableColumn.setAutoIncrement(Boolean.TRUE); idTableColumn.setPrimaryKey(Boolean.TRUE); //idTableColumn.setNullable(Boolean.FALSE); idTableColumn.setComment("Primary key auto-increment"); idTableCo... | newTable.setColumnList(tableColumnList); //id TableColumn idTableColumn = new TableColumn(); idTableColumn.setName("id"); idTableColumn.setAutoIncrement(Boolean.TRUE); idTableColumn.setPrimaryKey(Boolean.TRUE); //idTableColumn.setNullable(Boolean.FALSE); idTableColumn.setComment("Primary key auto-increment"); idTableCo... | java |
= new TableColumn(); idTableColumn.setName("id"); idTableColumn.setAutoIncrement(Boolean.TRUE); idTableColumn.setPrimaryKey(Boolean.TRUE); //idTableColumn.setNullable(Boolean.FALSE); idTableColumn.setComment("Primary key auto-increment"); idTableColumn.setColumnType("bigint"); tableColumnList.add(idTableColumn); // dat... | = new TableColumn(); idTableColumn.setName("id"); idTableColumn.setAutoIncrement(Boolean.TRUE); idTableColumn.setPrimaryKey(Boolean.TRUE); //idTableColumn.setNullable(Boolean.FALSE); idTableColumn.setComment("Primary key auto-increment"); idTableColumn.setColumnType("bigint"); tableColumnList.add(idTableColumn); // dat... | java |
TableColumn(); idTableColumn.setName("id"); idTableColumn.setAutoIncrement(Boolean.TRUE); idTableColumn.setPrimaryKey(Boolean.TRUE); //idTableColumn.setNullable(Boolean.FALSE); idTableColumn.setComment("Primary key auto-increment"); idTableColumn.setColumnType("bigint"); tableColumnList.add(idTableColumn); // date Tabl... | TableColumn(); idTableColumn.setName("id"); idTableColumn.setAutoIncrement(Boolean.TRUE); idTableColumn.setPrimaryKey(Boolean.TRUE); //idTableColumn.setNullable(Boolean.FALSE); idTableColumn.setComment("Primary key auto-increment"); idTableColumn.setColumnType("bigint"); tableColumnList.add(idTableColumn); // date Tabl... | java |
idTableColumn.setAutoIncrement(Boolean.TRUE); idTableColumn.setPrimaryKey(Boolean.TRUE); //idTableColumn.setNullable(Boolean.FALSE); idTableColumn.setComment("Primary key auto-increment"); idTableColumn.setColumnType("bigint"); tableColumnList.add(idTableColumn); // date TableColumn dateTableColumn = new TableColumn();... | idTableColumn.setAutoIncrement(Boolean.TRUE); idTableColumn.setPrimaryKey(Boolean.TRUE); //idTableColumn.setNullable(Boolean.FALSE); idTableColumn.setComment("Primary key auto-increment"); idTableColumn.setColumnType("bigint"); tableColumnList.add(idTableColumn); // date TableColumn dateTableColumn = new TableColumn();... | java |
auto-increment"); idTableColumn.setColumnType("bigint"); tableColumnList.add(idTableColumn); // date TableColumn dateTableColumn = new TableColumn(); dateTableColumn.setName("date"); //dateTableColumn.setNullable(Boolean.FALSE); dateTableColumn.setComment("date"); dateTableColumn.setColumnType("datetime(3)"); tableColu... | auto-increment"); idTableColumn.setColumnType("bigint"); tableColumnList.add(idTableColumn); // date TableColumn dateTableColumn = new TableColumn(); dateTableColumn.setName("date"); //dateTableColumn.setNullable(Boolean.FALSE); dateTableColumn.setComment("date"); dateTableColumn.setColumnType("datetime(3)"); tableColu... | java |
index' tableIndexList.add(TableIndex.builder() .name(tableName + "_idx_number_string") .type(IndexTypeEnum.NORMAL.getCode()) .comment("Union index") .columnList(Lists.newArrayList(TableIndexColumn.builder() .columnName("number") .build(), TableIndexColumn.builder() .columnName("date") .build())) .build()); // build sql... | index' tableIndexList.add(TableIndex.builder() .name(tableName + "_idx_number_string") .type(IndexTypeEnum.NORMAL.getCode()) .comment("Union index") .columnList(Lists.newArrayList(TableIndexColumn.builder() .columnName("number") .build(), TableIndexColumn.builder() .columnName("date") .build())) .build()); // build sql... | java |
"_idx_number_string") .type(IndexTypeEnum.NORMAL.getCode()) .comment("Union index") .columnList(Lists.newArrayList(TableIndexColumn.builder() .columnName("number") .build(), TableIndexColumn.builder() .columnName("date") .build())) .build()); // build sql List<Sql> buildTableSqlList = tableService.buildSql(null, newTab... | "_idx_number_string") .type(IndexTypeEnum.NORMAL.getCode()) .comment("Union index") .columnList(Lists.newArrayList(TableIndexColumn.builder() .columnName("number") .build(), TableIndexColumn.builder() .columnName("date") .build())) .build()); // build sql List<Sql> buildTableSqlList = tableService.buildSql(null, newTab... | java |
.comment("Union index") .columnList(Lists.newArrayList(TableIndexColumn.builder() .columnName("number") .build(), TableIndexColumn.builder() .columnName("date") .build())) .build()); // build sql List<Sql> buildTableSqlList = tableService.buildSql(null, newTable).getData(); log.info("The structural statement to create ... | .comment("Union index") .columnList(Lists.newArrayList(TableIndexColumn.builder() .columnName("number") .build(), TableIndexColumn.builder() .columnName("date") .build())) .build()); // build sql List<Sql> buildTableSqlList = tableService.buildSql(null, newTable).getData(); log.info("The structural statement to create ... | java |
.columnList(Lists.newArrayList(TableIndexColumn.builder() .columnName("number") .build(), TableIndexColumn.builder() .columnName("date") .build())) .build()); // build sql List<Sql> buildTableSqlList = tableService.buildSql(null, newTable).getData(); log.info("The structural statement to create a table is:{}", JSON.toJ... | .columnList(Lists.newArrayList(TableIndexColumn.builder() .columnName("number") .build(), TableIndexColumn.builder() .columnName("date") .build())) .build()); // build sql List<Sql> buildTableSqlList = tableService.buildSql(null, newTable).getData(); log.info("The structural statement to create a table is:{}", JSON.toJ... | java |
.build()); // build sql List<Sql> buildTableSqlList = tableService.buildSql(null, newTable).getData(); log.info("The structural statement to create a table is:{}", JSON.toJSONString(buildTableSqlList)); for (Sql sql : buildTableSqlList) { DlExecuteParam templateQueryParam = new DlExecuteParam(); templateQueryParam.setC... | .build()); // build sql List<Sql> buildTableSqlList = tableService.buildSql(null, newTable).getData(); log.info("The structural statement to create a table is:{}", JSON.toJSONString(buildTableSqlList)); for (Sql sql : buildTableSqlList) { DlExecuteParam templateQueryParam = new DlExecuteParam(); templateQueryParam.setC... | java |
table structure checkTable(tableName, dialectProperties, dataSourceId); // Go to the database to query the table structure TableQueryParam <mask> <mask> <mask> <mask> <mask> <mask> = new TableQueryParam(); <mask> <mask> <mask> <mask> <mask> <mask> .setDataSourceId(dataSourceId); <mask> <mask> <mask> <mask> <mask> <mask... | table structure checkTable(tableName, dialectProperties, dataSourceId); // Go to the database to query the table structure TableQueryParam tablePageQueryParam = new TableQueryParam(); tablePageQueryParam .setDataSourceId(dataSourceId); tablePageQueryParam .setDatabaseName(dialectProperties.getDatabaseName()); tablePage... | java |
dataSourceId); // Go to the database to query the table structure TableQueryParam <mask> <mask> <mask> <mask> <mask> <mask> = new TableQueryParam(); <mask> <mask> <mask> <mask> <mask> <mask> .setDataSourceId(dataSourceId); <mask> <mask> <mask> <mask> <mask> <mask> .setDatabaseName(dialectProperties.getDatabaseName()); ... | dataSourceId); // Go to the database to query the table structure TableQueryParam tablePageQueryParam = new TableQueryParam(); tablePageQueryParam .setDataSourceId(dataSourceId); tablePageQueryParam .setDatabaseName(dialectProperties.getDatabaseName()); tablePageQueryParam .setTableName(dialectProperties.toCase(tableNa... | java |
Go to the database to query the table structure TableQueryParam <mask> <mask> <mask> <mask> <mask> <mask> = new TableQueryParam(); <mask> <mask> <mask> <mask> <mask> <mask> .setDataSourceId(dataSourceId); <mask> <mask> <mask> <mask> <mask> <mask> .setDatabaseName(dialectProperties.getDatabaseName()); <mask> <mask> <mas... | Go to the database to query the table structure TableQueryParam tablePageQueryParam = new TableQueryParam(); tablePageQueryParam .setDataSourceId(dataSourceId); tablePageQueryParam .setDatabaseName(dialectProperties.getDatabaseName()); tablePageQueryParam .setTableName(dialectProperties.toCase(tableName)); Table table ... | java |
the database to query the table structure TableQueryParam <mask> <mask> <mask> <mask> <mask> <mask> = new TableQueryParam(); <mask> <mask> <mask> <mask> <mask> <mask> .setDataSourceId(dataSourceId); <mask> <mask> <mask> <mask> <mask> <mask> .setDatabaseName(dialectProperties.getDatabaseName()); <mask> <mask> <mask> <ma... | the database to query the table structure TableQueryParam tablePageQueryParam = new TableQueryParam(); tablePageQueryParam .setDataSourceId(dataSourceId); tablePageQueryParam .setDatabaseName(dialectProperties.getDatabaseName()); tablePageQueryParam .setTableName(dialectProperties.toCase(tableName)); Table table = tabl... | java |
structure TableQueryParam <mask> <mask> <mask> <mask> <mask> <mask> = new TableQueryParam(); <mask> <mask> <mask> <mask> <mask> <mask> .setDataSourceId(dataSourceId); <mask> <mask> <mask> <mask> <mask> <mask> .setDatabaseName(dialectProperties.getDatabaseName()); <mask> <mask> <mask> <mask> <mask> <mask> .setTableName(... | structure TableQueryParam tablePageQueryParam = new TableQueryParam(); tablePageQueryParam .setDataSourceId(dataSourceId); tablePageQueryParam .setDatabaseName(dialectProperties.getDatabaseName()); tablePageQueryParam .setTableName(dialectProperties.toCase(tableName)); Table table = tableService.query( tablePageQueryPa... | java |
getVertThumbIcon().getIconHeight(); } else { size.width = getHorizThumbIcon().getIconWidth(); size.height = getHorizThumbIcon().getIconHeight(); } return size; } /** * Gets the height of the tick area for horizontal sliders and the width of the * tick area for vertical sliders. BasicSliderUI uses the returned value to ... | getVertThumbIcon().getIconHeight(); } else { size.width = getHorizThumbIcon().getIconWidth(); size.height = getHorizThumbIcon().getIconHeight(); } return size; } /** * Gets the height of the tick area for horizontal sliders and the width of the * tick area for vertical sliders. BasicSliderUI uses the returned value to ... | java |
the * tick area for vertical sliders. BasicSliderUI uses the returned value to * determine the tick area rectangle. */ public int getTickLength() { return slider.getOrientation() == JSlider.HORIZONTAL ? safeLength + TICK_BUFFER + 1 : safeLength + TICK_BUFFER + 3; } /** * Returns the shorter dimension of the track. * * ... | the * tick area for vertical sliders. BasicSliderUI uses the returned value to * determine the tick area rectangle. */ public int getTickLength() { return slider.getOrientation() == JSlider.HORIZONTAL ? safeLength + TICK_BUFFER + 1 : safeLength + TICK_BUFFER + 3; } /** * Returns the shorter dimension of the track. * * ... | java |
TICK_BUFFER + 1 : safeLength + TICK_BUFFER + 3; } /** * Returns the shorter dimension of the track. * * @return the shorter dimension of the track */ protected int getTrackWidth() { // This strange calculation is here to keep the // track in proportion to the thumb. final double kIdealTrackWidth = 7.0; final double kId... | TICK_BUFFER + 1 : safeLength + TICK_BUFFER + 3; } /** * Returns the shorter dimension of the track. * * @return the shorter dimension of the track */ protected int getTrackWidth() { // This strange calculation is here to keep the // track in proportion to the thumb. final double kIdealTrackWidth = 7.0; final double kId... | java |
track in proportion to the thumb. final double kIdealTrackWidth = 7.0; final double kIdealThumbHeight = 16.0; final double kWidthScalar = kIdealTrackWidth / kIdealThumbHeight; if ( slider.getOrientation() == JSlider.HORIZONTAL ) { return (int)(kWidthScalar * thumbRect.height); } else { return (int)(kWidthScalar * thumb... | track in proportion to the thumb. final double kIdealTrackWidth = 7.0; final double kIdealThumbHeight = 16.0; final double kWidthScalar = kIdealTrackWidth / kIdealThumbHeight; if ( slider.getOrientation() == JSlider.HORIZONTAL ) { return (int)(kWidthScalar * thumbRect.height); } else { return (int)(kWidthScalar * thumb... | java |
at all. config.setRevocationEndpoint(revocationEndpoint.toString()); config.setRevocationEndpointAuthMethodsSupported(getClientAuthMethodsSupported()); config.setRevocationEndpointAuthSigningAlgValuesSupported(getSupportedClientSigningAlgorithms(false)); config.setBackchannelLogoutSupported(true); config.setBackchannel... | at all. config.setRevocationEndpoint(revocationEndpoint.toString()); config.setRevocationEndpointAuthMethodsSupported(getClientAuthMethodsSupported()); config.setRevocationEndpointAuthSigningAlgValuesSupported(getSupportedClientSigningAlgorithms(false)); config.setBackchannelLogoutSupported(true); config.setBackchannel... | java |
config.setRevocationEndpointAuthSigningAlgValuesSupported(getSupportedClientSigningAlgorithms(false)); config.setBackchannelLogoutSupported(true); config.setBackchannelLogoutSessionSupported(true); config.setBackchannelTokenDeliveryModesSupported(CibaConfig.CIBA_SUPPORTED_MODES); config.setBackchannelAuthenticationEndp... | config.setRevocationEndpointAuthSigningAlgValuesSupported(getSupportedClientSigningAlgorithms(false)); config.setBackchannelLogoutSupported(true); config.setBackchannelLogoutSessionSupported(true); config.setBackchannelTokenDeliveryModesSupported(CibaConfig.CIBA_SUPPORTED_MODES); config.setBackchannelAuthenticationEndp... | java |
config.setBackchannelLogoutSessionSupported(true); config.setBackchannelTokenDeliveryModesSupported(CibaConfig.CIBA_SUPPORTED_MODES); config.setBackchannelAuthenticationEndpoint(CibaGrantType.authorizationUrl(backendUriInfo.getBaseUriBuilder()).build(realm.getName()).toString()); config.setBackchannelAuthenticationRequ... | config.setBackchannelLogoutSessionSupported(true); config.setBackchannelTokenDeliveryModesSupported(CibaConfig.CIBA_SUPPORTED_MODES); config.setBackchannelAuthenticationEndpoint(CibaGrantType.authorizationUrl(backendUriInfo.getBaseUriBuilder()).build(realm.getName()).toString()); config.setBackchannelAuthenticationRequ... | java |
config.setBackchannelAuthenticationEndpoint(CibaGrantType.authorizationUrl(backendUriInfo.getBaseUriBuilder()).build(realm.getName()).toString()); config.setBackchannelAuthenticationRequestSigningAlgValuesSupported(getSupportedBackchannelAuthenticationRequestSigningAlgorithms()); config.setPushedAuthorizationRequestEnd... | config.setBackchannelAuthenticationEndpoint(CibaGrantType.authorizationUrl(backendUriInfo.getBaseUriBuilder()).build(realm.getName()).toString()); config.setBackchannelAuthenticationRequestSigningAlgValuesSupported(getSupportedBackchannelAuthenticationRequestSigningAlgorithms()); config.setPushedAuthorizationRequestEnd... | java |
mtlsEndpointAliases = getMtlsEndpointAliases(config); config.setMtlsEndpointAliases(mtlsEndpointAliases); config.setAuthorizationResponseIssParameterSupported(true); config = checkConfigOverride(config); return config; } protected List<String> getPromptValuesSupported(RealmModel realm) { List<String> prompts = new Arra... | mtlsEndpointAliases = getMtlsEndpointAliases(config); config.setMtlsEndpointAliases(mtlsEndpointAliases); config.setAuthorizationResponseIssParameterSupported(true); config = checkConfigOverride(config); return config; } protected List<String> getPromptValuesSupported(RealmModel realm) { List<String> prompts = new Arra... | java |
config.setMtlsEndpointAliases(mtlsEndpointAliases); config.setAuthorizationResponseIssParameterSupported(true); config = checkConfigOverride(config); return config; } protected List<String> getPromptValuesSupported(RealmModel realm) { List<String> prompts = new ArrayList<>(DEFAULT_PROMPT_VALUES_SUPPORTED); if (realm.is... | config.setMtlsEndpointAliases(mtlsEndpointAliases); config.setAuthorizationResponseIssParameterSupported(true); config = checkConfigOverride(config); return config; } protected List<String> getPromptValuesSupported(RealmModel realm) { List<String> prompts = new ArrayList<>(DEFAULT_PROMPT_VALUES_SUPPORTED); if (realm.is... | java |
config = checkConfigOverride(config); return config; } protected List<String> getPromptValuesSupported(RealmModel realm) { List<String> prompts = new ArrayList<>(DEFAULT_PROMPT_VALUES_SUPPORTED); if (realm.isRegistrationAllowed()) { prompts.add(OIDCLoginProtocol.PROMPT_VALUE_CREATE); } return prompts; } @Override publi... | config = checkConfigOverride(config); return config; } protected List<String> getPromptValuesSupported(RealmModel realm) { List<String> prompts = new ArrayList<>(DEFAULT_PROMPT_VALUES_SUPPORTED); if (realm.isRegistrationAllowed()) { prompts.add(OIDCLoginProtocol.PROMPT_VALUE_CREATE); } return prompts; } @Override publi... | java |
checkConfigOverride(config); return config; } protected List<String> getPromptValuesSupported(RealmModel realm) { List<String> prompts = new ArrayList<>(DEFAULT_PROMPT_VALUES_SUPPORTED); if (realm.isRegistrationAllowed()) { prompts.add(OIDCLoginProtocol.PROMPT_VALUE_CREATE); } return prompts; } @Override public void cl... | checkConfigOverride(config); return config; } protected List<String> getPromptValuesSupported(RealmModel realm) { List<String> prompts = new ArrayList<>(DEFAULT_PROMPT_VALUES_SUPPORTED); if (realm.isRegistrationAllowed()) { prompts.add(OIDCLoginProtocol.PROMPT_VALUE_CREATE); } return prompts; } @Override public void cl... | java |
config; } protected List<String> getPromptValuesSupported(RealmModel realm) { List<String> prompts = new ArrayList<>(DEFAULT_PROMPT_VALUES_SUPPORTED); if (realm.isRegistrationAllowed()) { prompts.add(OIDCLoginProtocol.PROMPT_VALUE_CREATE); } return prompts; } @Override public void close() { } private static List<String... | config; } protected List<String> getPromptValuesSupported(RealmModel realm) { List<String> prompts = new ArrayList<>(DEFAULT_PROMPT_VALUES_SUPPORTED); if (realm.isRegistrationAllowed()) { prompts.add(OIDCLoginProtocol.PROMPT_VALUE_CREATE); } return prompts; } @Override public void close() { } private static List<String... | java |
List<String> getPromptValuesSupported(RealmModel realm) { List<String> prompts = new ArrayList<>(DEFAULT_PROMPT_VALUES_SUPPORTED); if (realm.isRegistrationAllowed()) { prompts.add(OIDCLoginProtocol.PROMPT_VALUE_CREATE); } return prompts; } @Override public void close() { } private static List<String> list(String... val... | List<String> getPromptValuesSupported(RealmModel realm) { List<String> prompts = new ArrayList<>(DEFAULT_PROMPT_VALUES_SUPPORTED); if (realm.isRegistrationAllowed()) { prompts.add(OIDCLoginProtocol.PROMPT_VALUE_CREATE); } return prompts; } @Override public void close() { } private static List<String> list(String... val... | java |
package cn.binarywang.wx.miniapp.api; import cn.binarywang.wx.miniapp.bean.WxMaApiResponse; import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; import cn.binarywang.wx.miniapp.config.WxMaConfig; import cn.binarywang.wx.miniapp.executor.ApiSignaturePostRequestExecutor; import com.google.gson.JsonObject; impor... | package cn.binarywang.wx.miniapp.api; import cn.binarywang.wx.miniapp.bean.WxMaApiResponse; import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; import cn.binarywang.wx.miniapp.config.WxMaConfig; import cn.binarywang.wx.miniapp.executor.ApiSignaturePostRequestExecutor; import com.google.gson.JsonObject; impor... | java |
package cn.binarywang.wx.miniapp.api; import cn.binarywang.wx.miniapp.bean.WxMaApiResponse; import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; import cn.binarywang.wx.miniapp.config.WxMaConfig; import cn.binarywang.wx.miniapp.executor.ApiSignaturePostRequestExecutor; import com.google.gson.JsonObject; impor... | package cn.binarywang.wx.miniapp.api; import cn.binarywang.wx.miniapp.bean.WxMaApiResponse; import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; import cn.binarywang.wx.miniapp.config.WxMaConfig; import cn.binarywang.wx.miniapp.executor.ApiSignaturePostRequestExecutor; import com.google.gson.JsonObject; impor... | java |
package cn.binarywang.wx.miniapp.api; import cn.binarywang.wx.miniapp.bean.WxMaApiResponse; import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; import cn.binarywang.wx.miniapp.config.WxMaConfig; import cn.binarywang.wx.miniapp.executor.ApiSignaturePostRequestExecutor; import com.google.gson.JsonObject; impor... | package cn.binarywang.wx.miniapp.api; import cn.binarywang.wx.miniapp.bean.WxMaApiResponse; import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; import cn.binarywang.wx.miniapp.config.WxMaConfig; import cn.binarywang.wx.miniapp.executor.ApiSignaturePostRequestExecutor; import com.google.gson.JsonObject; impor... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.