repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
google/android-classyshark
1,059
ClassySharkWS/src/com/google/classyshark/gui/panel/tree/CellRenderer.java
package com.google.classyshark.gui.panel.tree; import com.google.classyshark.gui.GuiMode; import javax.swing.JTree; import javax.swing.tree.DefaultTreeCellRenderer; import java.awt.Color; import java.awt.Component; public class CellRenderer extends DefaultTreeCellRenderer{ @Override public Color getBackgroundNonSelectionColor() { return (null); } @Override public Color getBackgroundSelectionColor() { return GuiMode.getTheme().getSelectionBgColor(); } @Override public Color getBackground() { return (null); } @Override public Color getTextNonSelectionColor() { return GuiMode.getTheme().getDefaultColor(); } @Override public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { final Component component = super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus); this.setText(value.toString()); return component; } }
google/binnavi
1,046
src/main/java/com/google/security/zynamics/zylib/gui/zygraph/editmode/actions/CDefaultNodeEditAction.java
// Copyright 2011-2016 Google LLC // // Licensed 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/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 permissions and // limitations under the License. package com.google.security.zynamics.zylib.gui.zygraph.editmode.actions; import com.google.security.zynamics.zylib.gui.zygraph.editmode.IStateAction; import com.google.security.zynamics.zylib.yfileswrap.gui.zygraph.editmode.states.CNodeEditState; import java.awt.event.MouseEvent; public class CDefaultNodeEditAction implements IStateAction<CNodeEditState> { @Override public void execute(final CNodeEditState state, final MouseEvent event) { } }
google/binnavi
1,053
src/main/java/com/google/security/zynamics/zylib/gui/JRegisterView/RegisterInformation.java
// Copyright 2011-2016 Google LLC // // Licensed 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/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 permissions and // limitations under the License. package com.google.security.zynamics.zylib.gui.JRegisterView; public class RegisterInformation { private final String registerName; private final int registerSize; public RegisterInformation(final String registerName, final int registerSize) { this.registerName = registerName; this.registerSize = registerSize; } public String getRegisterName() { return registerName; } public int getRegisterSize() { return registerSize; } }
google/binnavi
1,061
src/main/java/com/google/security/zynamics/binnavi/Importers/ExporterException.java
// Copyright 2011-2016 Google LLC // // Licensed 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/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 permissions and // limitations under the License. package com.google.security.zynamics.binnavi.Importers; /** * Exception class used to signal errors reported by IDA Pro or the exporter. */ public final class ExporterException extends Exception { /** * Used for serialization. */ private static final long serialVersionUID = 933128366919680606L; /** * Creates a new exception object. * * @param msg The exception message. */ public ExporterException(final String msg) { super(msg); } }
google/caliper
1,057
caliper-worker/src/main/java/com/google/caliper/worker/instrument/InstrumentTypeKey.java
/* * Copyright (C) 2017 Google Inc. * * Licensed 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/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 permissions and * limitations under the License. */ package com.google.caliper.worker.instrument; import static java.lang.annotation.RetentionPolicy.RUNTIME; import com.google.caliper.model.InstrumentType; import dagger.MapKey; import java.lang.annotation.Retention; /** * Specifies the type of instrument to use as a key in the map of available {@link Worker workers} * passed to {@link #provideWorker(Map)}. */ @MapKey @Retention(RUNTIME) public @interface InstrumentTypeKey { InstrumentType value(); }
google/closure-templates
1,077
java/src/com/google/template/soy/jssrc/dsl/IfThenPair.java
/* * Copyright 2016 Google Inc. * * Licensed 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/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 permissions and * limitations under the License. */ package com.google.template.soy.jssrc.dsl; import static com.google.common.base.Preconditions.checkNotNull; import com.google.errorprone.annotations.Immutable; /** Represents {@code if} or {@code else if} clauses. */ @Immutable final class IfThenPair<T extends CodeChunk> { final Expression predicate; final T consequent; IfThenPair(Expression predicate, T consequent) { this.predicate = checkNotNull(predicate); this.consequent = checkNotNull(consequent); } }
google/conscrypt
1,088
common/src/main/java/org/conscrypt/HandshakeListener.java
/* * Copyright 2017 The Android Open Source Project * * Licensed 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/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 permissions and * limitations under the License. */ package org.conscrypt; import javax.net.ssl.SSLException; /** * Similar in concept to {@link javax.net.ssl.HandshakeCompletedListener}, but used for listening directly * to the engine. Allows the caller to be notified immediately upon completion of the TLS handshake. */ public abstract class HandshakeListener { /** * Called by the engine when the TLS handshake has completed. */ public abstract void onHandshakeFinished() throws SSLException; }
google/copybara
1,070
java/com/google/copybara/jcommander/SemicolonSeparatedListSplitter.java
/* * Copyright (C) 2023 Google Inc. * * Licensed 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/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 permissions and * limitations under the License. */ package com.google.copybara.jcommander; import com.beust.jcommander.converters.IParameterSplitter; import com.google.common.collect.ImmutableList; import java.util.List; /** * Converts a semicolon separated string to a list. E.g. --my-option "foo;bar;baz" to [foo, bar, * baz] */ public class SemicolonSeparatedListSplitter implements IParameterSplitter { @Override public List<String> split(String value) { return ImmutableList.copyOf(value.split(";")); } }
google/gdata-java-client
1,069
java/src/com/google/gdata/data/photos/pheed/Namespaces.java
/* Copyright (c) 2008 Google Inc. * * Licensed 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/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 permissions and * limitations under the License. */ package com.google.gdata.data.photos.pheed; import com.google.gdata.util.common.xml.XmlNamespace; /** * Namespaces for Pheed. http://pheed.com/pheed * * @deprecated the pheed namespace is deprecated in favor of media rss. * * */ @Deprecated public class Namespaces { /** Pheed <a href="http://www.pheed.com/pheed/">pheed</a> namespace. */ public static final XmlNamespace PHEED_NAMESPACE = new XmlNamespace("photo", "http://www.pheed.com/pheed/"); }
google/graphicsfuzz
1,059
ast/src/main/java/com/graphicsfuzz/common/ast/type/UnknownLayoutQualifier.java
/* * Copyright 2019 The GraphicsFuzz Project Authors * * Licensed 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 * * https://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 permissions and * limitations under the License. */ package com.graphicsfuzz.common.ast.type; /** * We use this class to represent layout qualifiers that the tool chain does not yet understand; * we just represent them as strings. */ public class UnknownLayoutQualifier implements LayoutQualifier { private final String contents; public UnknownLayoutQualifier(String contents) { this.contents = contents; } @Override public String toString() { return contents; } }
google/guava
1,040
guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/FloatsMethodsForWeb.java
/* * Copyright (C) 2020 The Guava Authors * * Licensed 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/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 permissions and limitations under * the License. */ package com.google.common.primitives; import jsinterop.annotations.JsMethod; import jsinterop.annotations.JsPackage; /** Web specializations for {@link Floats} methods. */ public abstract class FloatsMethodsForWeb { @JsMethod(name = "Math.min", namespace = JsPackage.GLOBAL) public static native float min(float... array); @JsMethod(name = "Math.max", namespace = JsPackage.GLOBAL) public static native float max(float... array); }
google/guava
1,040
guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/ShortsMethodsForWeb.java
/* * Copyright (C) 2020 The Guava Authors * * Licensed 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/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 permissions and limitations under * the License. */ package com.google.common.primitives; import jsinterop.annotations.JsMethod; import jsinterop.annotations.JsPackage; /** Web specializations for {@link Shorts} methods. */ public abstract class ShortsMethodsForWeb { @JsMethod(name = "Math.min", namespace = JsPackage.GLOBAL) public static native short min(short... array); @JsMethod(name = "Math.max", namespace = JsPackage.GLOBAL) public static native short max(short... array); }
google/j2cl
1,098
jre/java/java/util/function/LongConsumer.java
/* * Copyright 2015 Google Inc. * * Licensed 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/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 permissions and limitations under * the License. */ package java.util.function; import static javaemul.internal.InternalPreconditions.checkCriticalNotNull; /** * See <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/LongConsumer.html">the * official Java API doc</a> for details. */ @FunctionalInterface public interface LongConsumer { void accept(long value); default LongConsumer andThen(LongConsumer after) { checkCriticalNotNull(after); return value -> { accept(value); after.accept(value); }; } }
google/nomulus
1,086
core/src/main/java/google/registry/flows/FlowMetadata.java
// Copyright 2017 The Nomulus Authors. All Rights Reserved. // // Licensed 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/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 permissions and // limitations under the License. package google.registry.flows; import com.google.auto.value.AutoBuilder; /** Object to hold metadata specific to a particular execution of a flow. */ public record FlowMetadata(boolean isSuperuser) { public static Builder newBuilder() { return new AutoBuilder_FlowMetadata_Builder(); } /** Builder for {@link FlowMetadata} */ @AutoBuilder public interface Builder { Builder setIsSuperuser(boolean isSuperuser); FlowMetadata build(); } }
googleads/google-ads-java
1,042
google-ads/src/test/java/com/google/ads/googleads/lib/logging/scrub/ReflectionScrubberTest.java
// Copyright 2021 Google LLC // // Licensed 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/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 permissions and // limitations under the License. package com.google.ads.googleads.lib.logging.scrub; import com.google.protobuf.StringValue; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @RunWith(JUnit4.class) public class ReflectionScrubberTest { @Test public void scrub_failsGracefully() { // Ensures that scrub doesn't throw if passed a message that it doesn't support. new ReflectionScrubber().scrub(StringValue.getDefaultInstance()); } }
googleapis/sdk-platform-java
1,047
java-core/google-cloud-core/src/main/java/com/google/cloud/spi/ServiceRpcFactory.java
/* * Copyright 2015 Google LLC * * Licensed 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/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 permissions and * limitations under the License. */ package com.google.cloud.spi; import com.google.cloud.ServiceOptions; import com.google.cloud.ServiceRpc; /** * A base interface for all service RPC factories. Implementation must provide a public no-arg * constructor. Loading of a factory implementation is done via {@link java.util.ServiceLoader}. */ @SuppressWarnings("rawtypes") public interface ServiceRpcFactory<OptionsT extends ServiceOptions> { ServiceRpc create(OptionsT options); }
googleworkspace/java-samples
1,076
slides/snippets/src/test/java/TestCopyPresentation.java
// Copyright 2022 Google LLC // // Licensed 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 // // https://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 permissions and // limitations under the License. import org.junit.Test; import java.io.IOException; import static org.junit.Assert.assertNotNull; // Unit testcase for copy presentation snippet public class TestCopyPresentation extends BaseTest { @Test public void testCopyPresentation() throws IOException { String presentationId = createTestPresentation(); String copyId = CopyPresentation.copyPresentation(presentationId, "My Duplicate Presentation"); assertNotNull(copyId); deleteFileOnCleanup(copyId); } }
hibernate/hibernate-orm
1,030
hibernate-core/src/test/java/org/hibernate/orm/test/stateless/fetching/TestingNamingStrategy.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.orm.test.stateless.fetching; import java.util.Locale; import org.hibernate.boot.model.naming.Identifier; import org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl; import org.hibernate.engine.jdbc.env.spi.JdbcEnvironment; import org.hibernate.internal.util.StringHelper; public class TestingNamingStrategy extends PhysicalNamingStrategyStandardImpl { private final String prefix = determineUniquePrefix(); protected String applyPrefix(String baseTableName) { String prefixed = prefix + '_' + baseTableName; return prefixed; } @Override public Identifier toPhysicalTableName(Identifier logicalName, JdbcEnvironment jdbcEnvironment) { return jdbcEnvironment.getIdentifierHelper().toIdentifier( applyPrefix( logicalName.getText() ) ); } private String determineUniquePrefix() { return StringHelper.collapseQualifier( getClass().getName(), false ).toUpperCase( Locale.ROOT ); } }
hibernate/hibernate-orm
1,044
hibernate-core/src/main/java/org/hibernate/query/criteria/JpaFetchParent.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.query.criteria; import java.util.Set; import jakarta.persistence.criteria.Fetch; import jakarta.persistence.criteria.FetchParent; import jakarta.persistence.criteria.JoinType; import jakarta.persistence.metamodel.PluralAttribute; import jakarta.persistence.metamodel.SingularAttribute; /** * @author Steve Ebersole */ public interface JpaFetchParent<O,T> extends FetchParent<O,T> { @Override Set<Fetch<T, ?>> getFetches(); @Override <Y> JpaFetch<T, Y> fetch(SingularAttribute<? super T, Y> attribute); @Override <Y> JpaFetch<T, Y> fetch(SingularAttribute<? super T, Y> attribute, JoinType jt); @Override <Y> JpaFetch<T, Y> fetch(PluralAttribute<? super T, ?, Y> attribute); @Override <Y> JpaFetch<T, Y> fetch(PluralAttribute<? super T, ?, Y> attribute, JoinType jt); @Override <X, Y> JpaFetch<X, Y> fetch(String attributeName); @Override <X, Y> JpaFetch<X, Y> fetch(String attributeName, JoinType jt); }
openjdk/jdk8
1,104
jdk/test/java/io/Serializable/class/NonSerialA_2.java
/* * Copyright (c) 1998, 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 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 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ public class A { int field1; int field2; };
openjdk/jtreg
1,121
test/compilejdk/CompileTest.java
/* * Copyright (c) 2010, 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 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 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test * @compile CompileTest.java */ class CompileTest { }
openjdk/jtreg
1,126
test/rerun/std/CleanTest.java
/* * Copyright (c) 2013, 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 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 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* @test * @clean CleanTest * @clean p.* */ public class CleanTest { }
oracle/coherence
1,050
prj/coherence-core/src/main/java/com/oracle/coherence/common/internal/net/ProtocolIdentifiers.java
/* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package com.oracle.coherence.common.internal.net; import com.oracle.coherence.common.internal.net.socketbus.SocketMessageBus; /** * ProtocolIdentifiers serves as a single location to track the various protocol identifiers contained within this * project. The intent of this singular location is to help to easily avoid having conflicting identifiers. Once * an ID has been assigned to a protocol is should not be changed or recycled. * * The prescribed ID allocation pattern uses 32 bit ids in the range of 0x05AC1E000..0x05AC1EFFF, * i.e. ORACLE000..ORACLEFFF. * * @author mf 2013.11.06 */ public class ProtocolIdentifiers { /** * @see MultiplexedSocketProvider */ public static final int MULTIPLEXED_SOCKET = 0x05AC1E000; /** * @see SocketMessageBus */ public static final int SOCKET_MESSAGE_BUS = 0x05AC1E001; }
oracle/nosql
1,089
kvmain/src/main/java/com/sleepycat/je/DatabaseComparator.java
/*- * Copyright (C) 2002, 2025, Oracle and/or its affiliates. All rights reserved. * * This file was distributed by Oracle as part of a version of Oracle NoSQL * Database made available at: * * http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html * * Please see the LICENSE file included in the top-level directory of the * appropriate version of Oracle NoSQL Database for a copy of the license and * additional information. */ package com.sleepycat.je; import java.io.Serializable; import java.util.Comparator; /** * Implemented by btree and duplicate comparators that need to be initialized * before they are used or need access to the environment's ClassLoader * property. * @since 5.0 */ public interface DatabaseComparator extends Comparator<byte[]>, Serializable { /** * Called to initialize a comparator object after it is instantiated or * deserialized, and before it is used. * * @param loader is the environment's ClassLoader property. */ public void initialize(ClassLoader loader); }
apache/commons-ognl
1,061
src/test/java/org/apache/commons/ognl/test/objects/PersonGenericObject.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 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, 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.commons.ognl.test.objects; /** */ public class PersonGenericObject implements GenericObject { public int getId() { return 1; } public String getDisplayName() { return "Henry Collins"; } }
apache/cxf
1,048
services/xkms/xkms-common/src/main/java/org/apache/cxf/xkms/model/extensions/AdditionalClassesFactory.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 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, 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.cxf.xkms.model.extensions; /** * Needed for detail messages in OSGi blueprint deployment */ public class AdditionalClassesFactory { public Class<?>[] create() { return new Class[]{ResultDetails.class}; } }
apache/directory-server
1,057
protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/io/package-info.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 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, 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. * */ /** * Provides the encoders and decoders for DHCP message * and option conversions. * * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> */ package org.apache.directory.server.dhcp.io;
apache/doris-manager
1,048
manager/general/src/main/java/org/apache/doris/stack/exception/UserNoSelectClusterException.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 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, 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.doris.stack.exception; public class UserNoSelectClusterException extends Exception { public static final String MESSAGE = "UserNotSelectSpace"; public UserNoSelectClusterException() { super(MESSAGE); } }
apache/druid
1,036
extensions-core/datasketches/src/main/java/org/apache/druid/query/aggregation/datasketches/hll/HllSketchUpdater.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 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, 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.druid.query.aggregation.datasketches.hll; import org.apache.datasketches.hll.HllSketch; import java.util.function.Supplier; public interface HllSketchUpdater { void update(Supplier<HllSketch> sketch); }
apache/druid
1,067
processing/src/main/java/org/apache/druid/java/util/common/io/smoosh/Smoosh.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 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, 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.druid.java.util.common.io.smoosh; import java.io.File; import java.io.IOException; /** */ public class Smoosh { public static SmooshedFileMapper map(File inDir) throws IOException { return SmooshedFileMapper.load(inDir); } }
apache/dubbo
1,026
dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/SingleRegistryCenterIntegrationService.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 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, * 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.dubbo.config.integration.single; /** * This interface for integration testcases in single registry center. */ public interface SingleRegistryCenterIntegrationService { String hello(String name); }
apache/fineract
1,035
fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/messaging/event/loan/charge/LoanAddChargeEvent.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 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, 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.fineract.test.messaging.event.loan.charge; public class LoanAddChargeEvent extends AbstractLoanChargeEvent { @Override public String getEventName() { return "LoanAddChargeBusinessEvent"; } }
apache/fineract
1,036
fineract-provider/src/main/java/org/apache/fineract/accounting/journalentry/service/AccountingProcessorForLoan.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 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, 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.fineract.accounting.journalentry.service; import org.apache.fineract.accounting.journalentry.data.LoanDTO; public interface AccountingProcessorForLoan { void createJournalEntriesForLoan(LoanDTO loanDTO); }
apache/flex-blazeds
1,075
core/src/test/java/flex/messaging/io/amfx/testtypes/CowCheese.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 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, * 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 flex.messaging.io.amfx.testtypes; public abstract class CowCheese implements Cheese { protected CowCheese() { rating = 2.5; } public double rating; protected Cheese paring; public String getMilkType() { return "Cow"; } }
apache/flink-kubernetes-operator
1,031
flink-kubernetes-operator-api/src/main/java/org/apache/flink/kubernetes/operator/api/status/Snapshot.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 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, * 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.flink.kubernetes.operator.api.status; /** A common interface for {@link Checkpoint} and {@link Savepoint}. */ public interface Snapshot { long getTimeStamp(); SnapshotTriggerType getTriggerType(); }
apache/flink-ml
1,070
flink-ml-lib/src/main/java/org/apache/flink/ml/classification/knn/KnnParams.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 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, * 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.flink.ml.classification.knn; import org.apache.flink.ml.common.param.HasLabelCol; /** * Params for {@link Knn}. * * @param <T> The class type of this instance. */ public interface KnnParams<T> extends HasLabelCol<T>, KnnModelParams<T> {}
apache/flink
1,048
flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/columnar/vector/ColumnVector.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 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, * 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.flink.table.data.columnar.vector; import org.apache.flink.annotation.Internal; /** Nullable column vector. Access data through specific subclasses. */ @Internal public interface ColumnVector { boolean isNullAt(int i); }
apache/geaflow
1,036
geaflow-console/app/core/model/src/main/java/org/apache/geaflow/console/core/model/metric/GeaflowMetric.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 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, 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.geaflow.console.core.model.metric; import lombok.Getter; import lombok.Setter; @Setter @Getter public class GeaflowMetric { private String metric; private Long time; private Object value; }
apache/geode
1,043
geode-membership/src/main/java/org/apache/geode/distributed/internal/membership/api/CacheOperationMessageMarker.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 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, 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.geode.distributed.internal.membership.api; /** * This interface in implemented by message classes performing cache * operations and is used to check for message type internally. */ public interface CacheOperationMessageMarker { }
apache/geode
1,043
geode-membership/src/main/java/org/apache/geode/distributed/internal/membership/gms/locator/PeerLocatorRequest.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 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, 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.geode.distributed.internal.membership.gms.locator; /** * PeerLocatorRequest is a marker for messages that are intended to be handled by the Peer location * service in the Geode Locator. */ public interface PeerLocatorRequest { }
apache/geode
1,053
geode-core/src/main/java/org/apache/geode/management/internal/cli/functions/CacheRealizationFunction.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 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, * 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.geode.management.internal.cli.functions; public class CacheRealizationFunction extends org.apache.geode.management.internal.functions.CacheRealizationFunction { private static final long serialVersionUID = 6209080805559452304L; }
apache/geode
1,061
extensions/geode-modules/src/main/java/org/apache/geode/modules/gatewaydelta/GatewayDelta.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 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, 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.geode.modules.gatewaydelta; public interface GatewayDelta { String GATEWAY_DELTA_REGION_NAME = "__gatewayDelta"; GatewayDeltaEvent getCurrentGatewayDeltaEvent(); void setCurrentGatewayDeltaEvent(GatewayDeltaEvent currentGatewayDeltaEvent); }
apache/giraph
1,045
giraph-block-app/src/main/java/org/apache/giraph/block_app/framework/piece/global_comm/internal/package-info.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 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, * 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. */ /** * Reducer and Broadcast Handles internal implementation for automatic handling * of global communication within Pieces, hiding a lot of it's complexities. */ package org.apache.giraph.block_app.framework.piece.global_comm.internal;
apache/grails-core
1,058
grails-forge/grails-forge-core/src/main/java/org/grails/forge/template/Template.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 use this file except in compliance * with the License. You may obtain a copy of the License at * * https://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 permissions and limitations * under the License. */ package org.grails.forge.template; public interface Template extends Writable { String getPath(); default boolean isBinary() { return false; } default boolean isExecutable() { return false; } }
apache/groovy
1,081
subprojects/groovy-jmx/src/test/java/groovy/jmx/DummyMBean.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 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, 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 groovy.jmx; public interface DummyMBean { void start(); void stop(); String getLocation(); void setLocation(String location); String getName(); void setName(String name); int getSize(); void setSize(int size); }
apache/hadoop
1,055
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/package-info.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 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, * 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. */ /** * Builtin metrics sinks */ @InterfaceAudience.Public @InterfaceStability.Evolving package org.apache.hadoop.metrics2.sink; import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability;
apache/harmony
1,063
classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/support/A.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 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, * 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.harmony.luni.tests.support; public class A implements I { private static P pp = new P(); public A() { pp.setClazz(getClass()); } public String find(String key) { return pp.findProp(key); } }
apache/helix
1,062
helix-rest/src/main/java/org/apache/helix/rest/server/authValidator/NoopAuthValidator.java
package org.apache.helix.rest.server.authValidator; /* * 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 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, 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. */ import javax.ws.rs.container.ContainerRequestContext; public class NoopAuthValidator implements AuthValidator { public boolean validate(ContainerRequestContext request) { return true; } }
apache/hop
1,071
engine/src/main/java/org/apache/hop/pipeline/transforms/file/IBaseFileInputReader.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 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, * 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.hop.pipeline.transforms.file; import java.io.Closeable; import org.apache.hop.core.exception.HopException; /** Content-based reader for file. */ public interface IBaseFileInputReader extends Closeable { boolean readRow() throws HopException; }
apache/hudi
1,067
hudi-trino-plugin/src/main/java/io/trino/plugin/hudi/stats/ForHudiTableStatistics.java
/* * Licensed 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/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 permissions and * limitations under the License. */ package io.trino.plugin.hudi.stats; import com.google.inject.BindingAnnotation; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.ElementType.PARAMETER; import static java.lang.annotation.RetentionPolicy.RUNTIME; @Retention(RUNTIME) @Target({FIELD, PARAMETER, METHOD}) @BindingAnnotation public @interface ForHudiTableStatistics {}
apache/iceberg
1,090
core/src/main/java/org/apache/iceberg/avro/ValueReader.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 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, 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.iceberg.avro; import java.io.IOException; import org.apache.avro.io.Decoder; public interface ValueReader<T> { T read(Decoder decoder, Object reuse) throws IOException; default void skip(Decoder decoder) throws IOException { read(decoder, null); } }
apache/ignite
1,047
modules/control-utility/src/test/java/org/apache/ignite/util/GridCommandHandlerConsistencyBinaryTest.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 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, * 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.ignite.util; /** * */ public class GridCommandHandlerConsistencyBinaryTest extends GridCommandHandlerConsistencyTest { /** {@inheritDoc} */ @Override protected boolean binaryCache() { return true; } }
apache/ignite
1,067
modules/binary/api/src/main/java/org/apache/ignite/internal/binary/BinaryFieldEx.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 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, * 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.ignite.internal.binary; import org.apache.ignite.binary.BinaryField; /** * Extended binary object field. */ public interface BinaryFieldEx extends BinaryField { /** Get field's enclosing type ID. */ public int enclosingTypeId(); }
apache/incubator-brooklyn
1,032
brooklyn-library/software/messaging/src/main/java/org/apache/brooklyn/entity/messaging/storm/StormDriver.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 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, 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.brooklyn.entity.messaging.storm; import org.apache.brooklyn.entity.java.JavaSoftwareProcessDriver; public interface StormDriver extends JavaSoftwareProcessDriver { String getJvmOptsLine(); }
apache/incubator-brooklyn
1,048
brooklyn-server/api/src/main/java/org/apache/brooklyn/api/location/MachineDetails.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 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, 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.brooklyn.api.location; import javax.annotation.Nonnull; /** * @since 0.7.0 */ public interface MachineDetails { @Nonnull HardwareDetails getHardwareDetails(); @Nonnull OsDetails getOsDetails(); }
apache/incubator-kie-drools
1,042
kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/iinterfaces/SerializableConsumer.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 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, 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.kie.pmml.api.iinterfaces; import java.io.Serializable; import java.util.function.Consumer; public interface SerializableConsumer<T> extends Consumer<T>, Serializable { }
apache/incubator-kie-drools
1,049
drools-drl/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AnnotatedDescrBuilder.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 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, 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.drools.drl.ast.dsl; /** * An interface for DescrBuilders that support annotations */ public interface AnnotatedDescrBuilder<P extends DescrBuilder<?,?>> { public AnnotationDescrBuilder<P> newAnnotation( String name ); }
apache/incubator-kie-drools
1,052
drools-traits/src/main/java/org/drools/traits/core/metadata/InvertibleMetaProperty.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 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, 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.drools.traits.core.metadata; //TODO FIXME make this extend MetaProperty public interface InvertibleMetaProperty<T,R,D> { //TODO FIXME make this return an invertible MetaProperty public MetaProperty<R,T,D> getInverse(); }
apache/incubator-kie-drools
1,054
drools-commands/src/main/java/org/drools/commands/SingleSessionCommandService.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 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, 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.drools.commands; import org.kie.api.runtime.KieSession; public interface SingleSessionCommandService extends InternalLocalRunner { KieSession getKieSession(); Long getSessionId(); void dispose(); void destroy(); }
apache/incubator-kie-drools
1,062
kie-api/src/main/java/org/kie/api/management/KieManagementAgentMBean.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 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, 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.kie.api.management; /** * A tree root level class for all the drools management * MBeans published to an MBean agent */ public interface KieManagementAgentMBean { public long getKieBaseCount(); public long getSessionCount(); }
apache/incubator-kie-drools
1,072
drools-core/src/main/java/org/drools/core/EntryPointsManager.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 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, 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.drools.core; import java.util.Collection; public interface EntryPointsManager { WorkingMemoryEntryPoint getDefaultEntryPoint(); Collection<WorkingMemoryEntryPoint> getEntryPoints(); WorkingMemoryEntryPoint getEntryPoint(String name); }
apache/incubator-kie-optaplanner
1,028
core/optaplanner-core-impl/src/main/java/org/optaplanner/core/impl/solver/random/RandomFactory.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 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, 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.optaplanner.core.impl.solver.random; import java.util.Random; /** * @see DefaultRandomFactory */ public interface RandomFactory { /** * @return never null */ Random createRandom(); }
apache/incubator-nemo
1,063
common/src/main/java/org/apache/nemo/common/eventhandler/CompilerEventHandler.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 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, 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.nemo.common.eventhandler; /** * Class for handling events sent from Compiler. * * @param <T> type of the compiler event to handle. */ public interface CompilerEventHandler<T extends CompilerEvent> extends CommonEventHandler<T> { }
apache/incubator-pegasus
1,063
java-client/src/main/java/org/apache/pegasus/client/ListAppInfoType.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 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, 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.pegasus.client; public enum ListAppInfoType { LT_AVAILABLE_APPS(0), LT_ALL_APPS(1); private final int value; private ListAppInfoType(int value) { this.value = value; } public int getValue() { return value; } }
apache/incubator-seata
1,059
core/src/main/java/org/apache/seata/core/store/db/sql/lock/MariadbLockStoreSql.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 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, * 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.seata.core.store.db.sql.lock; import org.apache.seata.common.loader.LoadLevel; /** * the database lock store mariadb sql * * @since 1.7.0 */ @LoadLevel(name = "mariadb") public class MariadbLockStoreSql extends MysqlLockStoreSql {}
apache/inlong
1,049
inlong-audit/audit-service/src/main/java/org/apache/inlong/audit/service/entities/CacheKeyEntity.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 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, * 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.inlong.audit.service.entities; import lombok.AllArgsConstructor; import lombok.Data; @Data @AllArgsConstructor public class CacheKeyEntity { private String cacheKey; private String startTime; private String endTime; }
apache/iotdb-web-workbench
1,072
backend/src/main/java/org/apache/iotdb/admin/mapper/RoleMapper.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 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, 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.iotdb.admin.mapper; import org.apache.iotdb.admin.model.entity.Role; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.springframework.stereotype.Component; @Component public interface RoleMapper extends BaseMapper<Role> {}
apache/iotdb-web-workbench
1,072
backend/src/main/java/org/apache/iotdb/admin/mapper/UserMapper.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 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, 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.iotdb.admin.mapper; import org.apache.iotdb.admin.model.entity.User; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.springframework.stereotype.Component; @Component public interface UserMapper extends BaseMapper<User> {}
apache/iotdb
1,030
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/expression/visitor/cartesian/QueryContextProvider.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 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, 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.iotdb.db.queryengine.plan.expression.visitor.cartesian; import org.apache.iotdb.db.queryengine.common.MPPQueryContext; public interface QueryContextProvider { MPPQueryContext getQueryContext(); }
apache/jackrabbit-oak
1,033
oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/spi/persistence/persistentcache/package-info.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 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, * 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. */ @Internal(since = "1.0.0") @Version("5.0.0") package org.apache.jackrabbit.oak.segment.spi.persistence.persistentcache; import org.apache.jackrabbit.oak.commons.annotations.Internal; import org.osgi.annotation.versioning.Version;
apache/jclouds
1,077
compute/src/main/java/org/jclouds/compute/strategy/ResumeNodeStrategy.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 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, * 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.jclouds.compute.strategy; import org.jclouds.compute.domain.NodeMetadata; /** * Resumes a node from the state {@link org.jclouds.compute.domain.NodeState#SUSPENDED suspended} */ public interface ResumeNodeStrategy { NodeMetadata resumeNode(String id); }
apache/kafka
1,067
clients/src/main/java/org/apache/kafka/common/errors/ConcurrentTransactionsException.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 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, * 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.common.errors; public class ConcurrentTransactionsException extends RetriableException { private static final long serialVersionUID = 1L; public ConcurrentTransactionsException(final String message) { super(message); } }
apache/karaf
1,059
features/core/src/main/java/org/apache/karaf/features/internal/download/DownloadManager.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 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, * 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.karaf.features.internal.download; import java.util.Map; public interface DownloadManager extends AutoCloseable { Downloader createDownloader(); Map<String, StreamProvider> getProviders(); default void close() { } }
apache/kylin
1,067
src/core-common/src/main/java/org/apache/kylin/common/util/BytesSerializer.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 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, * 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.kylin.common.util; import java.nio.ByteBuffer; /** * @author yangli9 * */ public interface BytesSerializer<T> { int SERIALIZE_BUFFER_SIZE = 65536; void serialize(T value, ByteBuffer out); T deserialize(ByteBuffer in); }
apache/kylin
1,078
src/query/src/main/java/org/apache/kylin/query/engine/view/ViewAnalyzer.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 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, * 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.kylin.query.engine.view; import org.apache.calcite.jdbc.CalcitePrepare; import org.apache.calcite.sql.parser.SqlParseException; public interface ViewAnalyzer { CalcitePrepare.AnalyzeViewResult analyzeView(String sql) throws SqlParseException; }
apache/linkis
1,050
linkis-public-enhancements/linkis-bml-server/src/main/java/org/apache/linkis/bml/dao/DownloadDao.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 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, * 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.linkis.bml.dao; import org.apache.linkis.bml.entity.DownloadModel; import org.apache.ibatis.annotations.Param; public interface DownloadDao { void insertDownloadModel(@Param("downloadModel") DownloadModel downloadModel); }
apache/lucene
1,068
lucene/highlighter/src/java/org/apache/lucene/search/highlight/PositionSpan.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 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, * 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.lucene.search.highlight; /** * Utility class to record Positions Spans * * @lucene.internal */ public class PositionSpan { int start; int end; public PositionSpan(int start, int end) { this.start = start; this.end = end; } }
apache/lucene
1,070
lucene/test-framework/src/java/org/apache/lucene/tests/util/automaton/package-info.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 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, * 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. */ /** * Support for testing automata. The primary class is {@link * org.apache.lucene.tests.util.automaton.AutomatonTestUtil}, which can generate random automata, * has simplified implementations for testing, etc. */ package org.apache.lucene.tests.util.automaton;
apache/manifoldcf
1,058
connectors/filenet/build-stub/src/main/java/com/filenet/api/security/AccessPermission.java
/* $Id$ */ /** * 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 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, * 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 com.filenet.api.security; import com.filenet.api.core.DependentObject; /** Stub interface to allow the connector to build fully. */ public interface AccessPermission extends DiscretionaryPermission, DependentObject { public Integer get_AccessMask(); }
apache/maven-javadoc-plugin
1,065
src/test/resources/unit/quotedpath'test/quotedpath/test/App.java
package quotedpath.test; /* * 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 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, 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. */ public class App { public static void main( String[] args ) { System.out.println( "Sample Application." ); } protected void sampleMethod( String str ) { System.out.println( str ); } }
apache/maven-plugins
1,052
maven-compiler-plugin/src/it/MCOMPILER-294/lib/src/main/java/org/maven/test/lib/Sout.java
package org.maven.test.lib; /* * 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 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, 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. */ public class Sout { /** * @param args */ public static void println(String[] args) { for ( String string : args ) { System.out.println( args ); } } }
apache/maven-shade-plugin
1,047
src/it/projects/MSHADE-400_self-minimized-services/src/main/java/org/acme/Application.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 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, 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.acme; import java.util.ServiceLoader; public class Application { private UsedClass usedClass = new UsedClass(); public static void main( String[] args ) { ServiceLoader.load( UsedService.class ); } }
apache/maven
1,049
its/core-it-suite/src/test/resources/mng-3203/src/main/java/org/apache/maven/it/mng3203/Diamond.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 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, 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.maven.it.mng3203; import java.util.ArrayList; import java.util.List; /** * Hello world! * */ public class Diamond { public static void main(String[] args) { List<String> stuff = new ArrayList<>(); } }
apache/myfaces
1,062
impl/src/main/java/org/apache/myfaces/event/PostClientWindowAndViewInitializedEvent.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 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, 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.myfaces.event; import jakarta.faces.event.SystemEvent; public class PostClientWindowAndViewInitializedEvent extends SystemEvent { public PostClientWindowAndViewInitializedEvent(Object source) { super(source); } }
apache/nifi
1,050
nifi-commons/nifi-record-path/src/main/java/org/apache/nifi/record/path/RecordPathEvaluationContext.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 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, * 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.nifi.record.path; import org.apache.nifi.serialization.record.Record; public interface RecordPathEvaluationContext { Record getRecord(); FieldValue getContextNode(); void setContextNode(FieldValue fieldValue); }
apache/olingo-odata4
1,046
lib/server-api/src/main/java/org/apache/olingo/server/api/uri/queryoption/search/SearchBinary.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 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, 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.olingo.server.api.uri.queryoption.search; public interface SearchBinary extends SearchExpression { SearchBinaryOperatorKind getOperator(); SearchExpression getLeftOperand(); SearchExpression getRightOperand(); }
apache/olingo-odata4
1,065
lib/server-api/src/main/java/org/apache/olingo/server/api/uri/UriResourceRef.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 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, 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.olingo.server.api.uri; /** * Used to describe an $ref used within an resource path * For example: http://.../serviceroot/entityset/$ref */ public interface UriResourceRef extends UriResource { // No additional methods needed for now. }
apache/ozhera
1,027
ozhera-demo-client/ozhera-demo-client-api/src/main/java/org/apache/ozhera/demo/client/api/service/DubboHealthService.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 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, 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.ozhera.demo.client.api.service; import run.mone.common.Result; public interface DubboHealthService { int remoteHealth(int size); void remoteHealth2(); Result testResultCode500(); }
apache/pinot
1,036
pinot-core/src/test/java/org/apache/pinot/core/operator/transform/function/IsNotDistinctFromTransformFunctionTest.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 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, 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.pinot.core.operator.transform.function; public class IsNotDistinctFromTransformFunctionTest extends DistinctFromTransformFunctionTest { IsNotDistinctFromTransformFunctionTest() { super(false); } }
apache/pinot
1,077
pinot-core/src/main/java/org/apache/pinot/core/util/NumericException.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 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, 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.pinot.core.util; public class NumericException extends Exception { public static final NumericException INSTANCE = new NumericException(); public NumericException() { } public NumericException(String message) { super(message); } }
apache/plc4x
1,057
plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/types/S7SubscriptionType.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 use this file except in compliance * with the License. You may obtain a copy of the License at * * https://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 permissions and limitations * under the License. */ package org.apache.plc4x.java.s7.readwrite.types; public enum S7SubscriptionType { EVENT_SUBSCRIPTION, EVENT_UNSUBSCRIPTION, ALARM_ACK, ALARM_QUERY, CYCLIC_SUBSCRIPTION, CYCLIC_DB_SUBSCRIPTION, CYCLIC_UNSUBSCRIPTION; }
apache/polygene-java
1,052
extensions/indexing-rdf/src/test/java/org/apache/polygene/index/rdf/qi64/AccountComposite.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 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, * 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.polygene.index.rdf.qi64; import org.apache.polygene.api.entity.EntityComposite; import org.apache.polygene.index.rdf.qi66.Account; public interface AccountComposite extends EntityComposite, Account { }
apache/polygene-java
1,060
core/testsupport/src/main/java/org/apache/polygene/test/entity/model/people/City.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 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, * 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.polygene.test.entity.model.people; import org.apache.polygene.api.identity.HasIdentity; import org.apache.polygene.api.property.Property; public interface City extends HasIdentity { Property<String> name(); }
apache/pulsar
1,058
pulsar-broker-common/src/main/java/org/apache/pulsar/common/configuration/Category.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 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, 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.pulsar.common.configuration; /** * Setting Category. */ public @interface Category { /** * Description of the category. * * @return description of the category */ String description() default ""; }
apache/qpid-broker-j
1,032
broker-plugins/amqp-1-0-protocol/src/main/java/org/apache/qpid/server/protocol/v1_0/codec/ProtocolHandler.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 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, 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.qpid.server.protocol.v1_0.codec; import org.apache.qpid.server.bytebuffer.QpidByteBuffer; public interface ProtocolHandler { ProtocolHandler parse(QpidByteBuffer in); boolean isDone(); }
apache/qpid-broker-j
1,041
broker-plugins/amqp-0-8-protocol/src/main/java/org/apache/qpid/server/protocol/v0_8/CreditRestorer.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 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, 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.qpid.server.protocol.v0_8; import org.apache.qpid.server.consumer.ConsumerTarget; public interface CreditRestorer { void restoreCredit(final ConsumerTarget target, final int count, final long size); }
apache/qpid-jms
1,069
qpid-jms-client/src/main/java/org/apache/qpid/jms/sasl/PlainMechanismFactory.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 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, * 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.qpid.jms.sasl; /** * Create the Plain SASL Authentication Mechanism types. */ public class PlainMechanismFactory implements MechanismFactory { @Override public Mechanism createMechanism() { return new PlainMechanism(); } }
apache/rocketmq-eventbridge
1,044
domain/src/main/java/org/apache/rocketmq/eventbridge/domain/model/run/DeadLetterQueue.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 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, * 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.rocketmq.eventbridge.domain.model.run; import java.util.Map; import lombok.Builder; import lombok.Data; @Builder @Data public class DeadLetterQueue { private String type; private Map<String, Object> config; }
apache/rocketmq
1,059
proxy/src/main/java/org/apache/rocketmq/proxy/service/channel/InvocationContextInterface.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 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, * 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.rocketmq.proxy.service.channel; import org.apache.rocketmq.remoting.protocol.RemotingCommand; public interface InvocationContextInterface { void handle(RemotingCommand remotingCommand); boolean expired(long expiredTimeSec); }
apache/rocketmq
1,070
common/src/main/java/org/apache/rocketmq/common/resource/RocketMQResource.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 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, * 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.rocketmq.common.resource; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @Retention(RetentionPolicy.RUNTIME) public @interface RocketMQResource { ResourceType value(); String splitter() default ""; }