repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
hibernate/hibernate-demos | 1,076 | hibernate-ogm/hiking-demo/src/main/java/org/hibernate/ogm/hiking/model/Hike.java | package org.hibernate.ogm.hiking.model;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.NamedNativeQuery;
import javax.persistence.OrderColumn;
import javax.validation.constraints.NotNull;
import org.hibernate.annotations.Type;
@Entity
@NamedNativeQuery( name = "hikesByTripId", query = "{ recommendedTrip_id: { $in: [ 27 ] } }", resultClass = Hike.class )
public class Hike {
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
@Type(type = "objectid")
public String id;
@NotNull
public String start;
@NotNull
public String destination;
@ManyToOne
public Trip recommendedTrip;
@ElementCollection
@OrderColumn(name="order")
public List<Section> sections = new ArrayList<>();
Hike() {
}
public Hike(String start, String destination) {
this.start = start;
this.destination = destination;
}
}
|
hibernate/hibernate-orm | 1,025 | hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/component/MiddleDummyComponentMapper.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.envers.internal.entities.mapper.relation.component;
import java.util.Map;
import org.hibernate.engine.spi.SharedSessionContractImplementor;
import org.hibernate.envers.internal.entities.EntityInstantiator;
import org.hibernate.envers.internal.tools.query.Parameters;
/**
* @author Adam Warski (adam at warski dot org)
*/
public final class MiddleDummyComponentMapper extends AbstractMiddleComponentMapper {
public Object mapToObjectFromFullMap(
EntityInstantiator entityInstantiator, Map<String, Object> data,
Object dataObject, Number revision) {
return null;
}
@Override
public void mapToMapFromObject(
SharedSessionContractImplementor session,
Map<String, Object> idData,
Map<String, Object> data,
Object obj) {
}
@Override
public void addMiddleEqualToQuery(
Parameters parameters,
String idPrefix1,
String prefix1,
String idPrefix2,
String prefix2) {
}
}
|
hibernate/hibernate-orm | 1,029 | hibernate-core/src/test/java/org/hibernate/orm/test/event/collection/association/unidirectional/onetomany/UnidirectionalOneToManySetCollectionEventTest.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.event.collection.association.unidirectional.onetomany;
import java.util.Collection;
import java.util.HashSet;
import org.hibernate.orm.test.event.collection.ParentWithCollection;
import org.hibernate.orm.test.event.collection.association.AbstractAssociationCollectionEventTest;
import org.hibernate.orm.test.event.collection.association.unidirectional.ParentWithCollectionOfEntities;
/**
* @author Gail Badner
*/
public class UnidirectionalOneToManySetCollectionEventTest extends AbstractAssociationCollectionEventTest {
@Override
public String[] getMappings() {
return new String[] { "event/collection/association/unidirectional/onetomany/UnidirectionalOneToManySetMapping.hbm.xml" };
}
@Override
public ParentWithCollection createParent(String name) {
return new ParentWithCollectionOfEntities( name );
}
@Override
public Collection createCollection() {
return new HashSet();
}
}
|
hibernate/hibernate-orm | 1,045 | hibernate-core/src/test/java/org/hibernate/orm/test/proxy/Container.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.proxy;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
/**
* @author Steve Ebersole
*/
public class Container implements Serializable {
private Long id;
private String name;
private Owner owner;
private Info info;
private Set dataPoints = new HashSet();
public Container() {
}
public Container(String name) {
this.name = name;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Owner getOwner() {
return owner;
}
public void setOwner(Owner owner) {
this.owner = owner;
}
public Info getInfo() {
return info;
}
public void setInfo(Info info) {
this.info = info;
}
public Set getDataPoints() {
return dataPoints;
}
public void setDataPoints(Set dataPoints) {
this.dataPoints = dataPoints;
}
}
|
hibernate/hibernate-orm | 1,049 | hibernate-core/src/test/java/org/hibernate/orm/test/annotations/onetoone/SerialNumberPk.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.annotations.onetoone;
import java.io.Serializable;
import jakarta.persistence.Embeddable;
/**
* @author Emmanuel Bernard
*/
@Embeddable
public class SerialNumberPk implements Serializable {
private String brand;
private String model;
public boolean equals(Object o) {
if ( this == o ) return true;
if ( !( o instanceof SerialNumberPk ) ) return false;
final SerialNumberPk serialNumberPk = (SerialNumberPk) o;
if ( !brand.equals( serialNumberPk.brand ) ) return false;
if ( !model.equals( serialNumberPk.model ) ) return false;
return true;
}
public int hashCode() {
int result;
result = brand.hashCode();
result = 13 * result + model.hashCode();
return result;
}
public String getBrand() {
return brand;
}
public void setBrand(String brand) {
this.brand = brand;
}
public String getModel() {
return model;
}
public void setModel(String model) {
this.model = model;
}
}
|
hibernate/hibernate-orm | 1,050 | hibernate-core/src/test/java/org/hibernate/orm/test/associations/any/StringProperty.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.associations.any;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
//tag::associations-any-property-example[]
@Entity
@Table(name="string_property")
public class StringProperty implements Property<String> {
@Id
private Long id;
@Column(name = "`name`")
private String name;
@Column(name = "`value`")
private String value;
@Override
public String getName() {
return name;
}
@Override
public String getValue() {
return value;
}
//Getters and setters omitted for brevity
//end::associations-any-property-example[]
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public void setName(String name) {
this.name = name;
}
public void setValue(String value) {
this.value = value;
}
//tag::associations-any-property-example[]
}
//end::associations-any-property-example[]
|
hibernate/hibernate-orm | 1,069 | hibernate-core/src/test/java/org/hibernate/orm/test/mapping/attributebinder/YesNoBinder.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.mapping.attributebinder;
import org.hibernate.boot.model.convert.internal.ConverterDescriptors;
import org.hibernate.boot.spi.MetadataBuildingContext;
import org.hibernate.mapping.PersistentClass;
import org.hibernate.mapping.Property;
import org.hibernate.binder.AttributeBinder;
import org.hibernate.mapping.SimpleValue;
import org.hibernate.type.YesNoConverter;
//tag::attribute-binder-example[]
/**
* The actual binder responsible for configuring the model objects
*/
public class YesNoBinder implements AttributeBinder<YesNo> {
@Override
public void bind(
YesNo annotation,
MetadataBuildingContext buildingContext,
PersistentClass persistentClass,
Property property) {
( (SimpleValue) property.getValue() ).setJpaAttributeConverterDescriptor(
ConverterDescriptors.of(
YesNoConverter.INSTANCE,
buildingContext.getBootstrapContext().getClassmateContext()
)
);
}
}
//end::attribute-binder-example[]
|
hibernate/hibernate-orm | 1,081 | hibernate-envers/src/test/java/org/hibernate/testing/envers/RequiresAuditStrategy.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.testing.envers;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import org.hibernate.envers.strategy.spi.AuditStrategy;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Annotation used to indicate that a test should be run only for specific audit strategies.
*
* @author Chris Cranford
* @since 6.0
*/
@Retention(RUNTIME)
@Target({ METHOD, TYPE })
public @interface RequiresAuditStrategy {
/**
* The strategies against which to run the test
*
* @return The strategies
*/
Class<? extends AuditStrategy>[] value();
/**
* Comment describing the reason why the audit strategy is required.
*
* @return The comment
*/
String comment() default "";
/**
* The key of a JIRA issue which relates to this restriction.
*
* @return The jira issue key.
*/
String jiraKey() default "";
}
|
hibernate/hibernate-orm | 1,091 | hibernate-core/src/main/java/org/hibernate/property/access/spi/PropertyAccess.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.property.access.spi;
import org.hibernate.metamodel.spi.ManagedTypeRepresentationStrategy;
import org.checkerframework.checker.nullness.qual.Nullable;
/**
* Defines how a given persistent attribute is accessed by exposing
* a {@link Getter} and a {@link Setter} for the attribute.
* <p>
* Instances are obtained from a {@link PropertyAccessStrategy}.
*
* @see ManagedTypeRepresentationStrategy
*
* @author Steve Ebersole
* @author Gavin King
*/
public interface PropertyAccess {
/**
* Access to the {@link PropertyAccessStrategy} that created this instance.
*
* @return The {@code PropertyAccessStrategy}
*/
PropertyAccessStrategy getPropertyAccessStrategy();
/**
* Obtain the delegate for getting values of the persistent attribute.
*
* @return The property getter
*/
Getter getGetter();
/**
* Obtain the delegate for setting values of the persistent attribute.
*
* @return The property setter
*/
@Nullable Setter getSetter();
}
|
hibernate/hibernate-orm | 1,107 | hibernate-core/src/main/java/org/hibernate/sql/results/graph/DomainResult.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.sql.results.graph;
import org.hibernate.Incubating;
/**
* Represents a result value in the domain query results. Acts as the producer for the
* {@link DomainResultAssembler} for this result as well as any {@link Initializer} instances needed
*
* Not the same as a result column in the JDBC ResultSet! This contract represents an individual
* domain-model-level query result. A DomainResult will usually consume multiple JDBC result columns.
*
* DomainResult is distinctly different from a {@link Fetch} and so modeled as completely separate hierarchy.
*
* @see Fetch
*
* @author Steve Ebersole
*/
@Incubating
public interface DomainResult<J> extends DomainResultGraphNode {
/**
* The result-variable (alias) associated with this result.
*/
String getResultVariable();
/**
* Create an assembler (and any initializers) for this result.
*/
DomainResultAssembler<J> createResultAssembler(
InitializerParent<?> parent,
AssemblerCreationState creationState);
}
|
hibernate/hibernate-validator | 1,048 | engine/src/main/java/org/hibernate/validator/internal/constraintvalidators/bv/money/MinValidatorForMonetaryAmount.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.validator.internal.constraintvalidators.bv.money;
import java.math.BigDecimal;
import javax.money.MonetaryAmount;
import jakarta.validation.ConstraintValidator;
import jakarta.validation.ConstraintValidatorContext;
import jakarta.validation.constraints.Min;
/**
* Check that the number being validated is less than or equal to the maximum
* value specified.
*
* @author Lukas Niemeier
* @author Willi Schönborn
*/
public class MinValidatorForMonetaryAmount implements ConstraintValidator<Min, MonetaryAmount> {
private BigDecimal minValue;
@Override
public void initialize(Min minValue) {
this.minValue = BigDecimal.valueOf( minValue.value() );
}
@Override
public boolean isValid(MonetaryAmount value, ConstraintValidatorContext context) {
// null values are valid
if ( value == null ) {
return true;
}
return value.getNumber().numberValueExact( BigDecimal.class ).compareTo( minValue ) >= 0;
}
}
|
openjdk/jdk8 | 1,122 | jaxp/src/com/sun/org/apache/xerces/internal/xni/parser/XMLDTDContentModelFilter.java | /*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 2001, 2002,2004 The Apache Software Foundation.
*
* 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.sun.org.apache.xerces.internal.xni.parser;
import com.sun.org.apache.xerces.internal.xni.XMLDTDContentModelHandler;
/**
* Defines a DTD content model filter that acts as both a receiver and
* an emitter of DTD content model events.
*
* @author Andy Clark, IBM
*
*/
public interface XMLDTDContentModelFilter
extends XMLDTDContentModelHandler, XMLDTDContentModelSource {
} // interface XMLDTDContentModelFilter
|
openjdk/jdk8 | 1,140 | hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/cdbg/DoubleType.java | /*
* Copyright (c) 2001, 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.
*
*/
package sun.jvm.hotspot.debugger.cdbg;
public interface DoubleType extends Type {
}
|
openjdk/jdk8 | 1,158 | langtools/test/tools/javac/falseCycle/FalseCycleBase.java | /*
* Copyright (c) 2001, 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.
*/
/*
* Auxiliary file for falseCycle
*/
class FalseCycleBase {}
class FalseCycle2 extends FalseCycle {}
|
openjdk/jdk8 | 1,161 | langtools/test/tools/javac/ConstantValues/test_ff1.java | /*
* Copyright (c) 2002, 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.
*/
class test_ff
{
public final String fnl_str = "String available at compile-time";
} // end Class test_ff
|
openjdk/jdk8 | 1,164 | langtools/test/tools/javac/generics/6372782/Ring.java | /*
* Copyright (c) 2006, 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 interface Ring<E extends Value>
extends AdditiveClosure<E>,
MultiplicationDefined<E>
{
}
|
oracle-samples/oracle-db-examples | 1,076 | java/micronaut-jsonview-demo-app/src/main/java/com/example/micronaut/entity/view/StudentScheduleView.java | /*
* Copyright © 2023, Oracle and/or its affiliates.
*
* Released under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl/
* or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.example.micronaut.entity.view;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.micronaut.core.annotation.Nullable;
import io.micronaut.data.annotation.GeneratedValue;
import io.micronaut.data.annotation.Id;
import io.micronaut.serde.annotation.Serdeable;
@Serdeable
public record StudentScheduleView(
@Nullable
@GeneratedValue
@Id
Long id,
@JsonProperty("course")
CourseView course) {
public StudentScheduleView(CourseView courseView) {
this(null, courseView);
}
@Override
public String toString() {
return "StudentSchedule{" +
"Id=" + id +
", course=" + course +
'}';
}
} |
oracle/coherence | 1,109 | prj/test/functional/management/src/main/java/management/ManagementInfoResourceTests.java | /*
* Copyright (c) 2000, 2025, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* https://oss.oracle.com/licenses/upl.
*/
package management;
import com.tangosol.net.DefaultCacheServer;
import org.junit.BeforeClass;
/**
* MBeanResourceTest tests the ManagementInfoResource.
*
* <p>
* In general, if we only want to assert that an attribute value is set
* (not the default -1), but not what the value is, then use asserts
* similar to the following:
*
* assertThat(((Number) mapResponse.get("requestTotalCount")).intValue(), greaterThanOrEqualTo(0));
* assertThat(Long.parseLong(mapResponse.get("requestTotalCount").toString()), greaterThanOrEqualTo(0L));
*
* @author hr 2016.07.21
* @author sr 2017.08.24
*/
public class ManagementInfoResourceTests
extends BaseManagementInfoResourceTests
{
@BeforeClass
public static void _startup()
{
System.setProperty("com.oracle.coherence.common.internal.util.HeapDump.dir", ".");
startTestCluster(DefaultCacheServer.class, CLUSTER_NAME);
}
}
|
apache/commons-rng | 1,115 | commons-rng-core/src/main/java/org/apache/commons/rng/core/source32/RandomIntSource.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.rng.core.source32;
/**
* Source of randomness that generates values of type {@code int}.
*
* @since 1.0
*/
@FunctionalInterface
public interface RandomIntSource {
/**
* Return the next random value.
*
* @return the next random value.
*/
int next();
}
|
apache/cxf | 1,120 | rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/HelloServiceInterceptor.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.service.factory;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
public class HelloServiceInterceptor implements MethodInterceptor {
public Object invoke(MethodInvocation i) throws Throwable {
return i.proceed();
}
}
|
apache/cxf | 1,128 | systests/uncategorized/src/test/java/org/apache/cxf/cxf1226/HelloWorldImpl.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.cxf1226;
import jakarta.jws.WebService;
@WebService(endpointInterface = "org.apache.cxf.cxf1226.HelloWorld",
targetNamespace = "http://nstest.helloworld")
public class HelloWorldImpl implements HelloWorld {
public String sayHi(String text) {
return "Hello " + text;
}
}
|
apache/cxf | 1,132 | tools/javato/ws/src/test/java/org/apache/cxf/tools/fortest/cxf1519/Endpoint.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.tools.fortest.cxf1519;
import jakarta.jws.WebService;
import jakarta.jws.soap.SOAPBinding;
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
@WebService(name = "Endpoint", targetNamespace = "http://cxf.apache.org/cxf1519")
public interface Endpoint {
String echo(String input) throws UserException;
}
|
apache/directory-studio | 1,065 | tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/SubtreeSpecificationEditorDialogBot.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.directory.studio.test.integration.ui.bots;
public class SubtreeSpecificationEditorDialogBot extends DialogBot
{
public SubtreeSpecificationEditorDialogBot()
{
super( "Subtree Editor" );
}
}
|
apache/druid | 1,100 | extensions-core/azure-extensions/src/main/java/org/apache/druid/storage/azure/AzureCloudBlobIteratorFactory.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.storage.azure;
import java.net.URI;
/**
* Factory for creating {@link AzureCloudBlobIterator} objects
*/
public interface AzureCloudBlobIteratorFactory
{
AzureCloudBlobIterator create(Iterable<URI> prefixes, int maxListingLength, AzureStorage azureStorage);
}
|
apache/eagle | 1,095 | eagle-security/eagle-security-hive/src/main/java/org/apache/eagle/security/hive/jobrunning/JobRunningContentFilter.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.eagle.security.hive.jobrunning;
import java.io.Serializable;
import java.util.Map;
/**
* define what content in job running stream should be streamed
*/
public interface JobRunningContentFilter extends Serializable {
boolean acceptJobConf(Map<String, String> config);
}
|
apache/eventmesh | 1,092 | eventmesh-registry/eventmesh-registry-api/src/main/java/org/apache/eventmesh/registry/exception/RegistryException.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.eventmesh.registry.exception;
public class RegistryException extends RuntimeException {
public RegistryException(String message) {
super(message);
}
public RegistryException(String message, Throwable cause) {
super(message, cause);
}
}
|
apache/eventmesh | 1,092 | eventmesh-sdks/eventmesh-sdk-java/src/main/java/org/apache/eventmesh/client/tcp/conf/EventMeshTCPClientConfig.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.eventmesh.client.tcp.conf;
import org.apache.eventmesh.common.protocol.tcp.UserAgent;
import lombok.Builder;
import lombok.Data;
@Data
@Builder
public class EventMeshTCPClientConfig {
private String host;
private int port;
private UserAgent userAgent;
}
|
apache/felix-dev | 1,072 | dependencymanager/org.apache.felix.dependencymanager.lambda.samples/src/org/apache/felix/dm/lambda/samples/compositefactory/MyConfig.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.felix.dm.lambda.samples.compositefactory;
/**
* Our properties interface that is implemented by DependencyManager.
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
*/
public interface MyConfig {
String getFoo();
}
|
apache/felix-dev | 1,078 | ipojo/manipulator/manipulator/src/main/java/org/apache/felix/ipojo/manipulator/metadata/annotation/model/AnnotationDiscovery.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.felix.ipojo.manipulator.metadata.annotation.model;
import org.objectweb.asm.AnnotationVisitor;
/**
* User: guillaume
* Date: 09/07/13
* Time: 14:42
*/
public interface AnnotationDiscovery {
AnnotationVisitor visitAnnotation(String desc);
}
|
apache/fesod | 1,132 | fesod/src/test/java/org/apache/fesod/excel/fill/style/FillStyleData.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.fesod.excel.fill.style;
import java.util.Date;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
/**
*
*/
@Getter
@Setter
@EqualsAndHashCode
public class FillStyleData {
private String name;
private Double number;
private Date date;
private String empty;
}
|
apache/fineract | 1,106 | fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/data/AccountTypeLiabilityOptions.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.data;
public enum AccountTypeLiabilityOptions {
AA_SUSPENSE_BALANCE(5), //
SUSPENSE_CLEARING_ACCOUNT(6), //
OVERPAYMENT_ACCOUNT(17); //
public final Integer value;
AccountTypeLiabilityOptions(Integer value) {
this.value = value;
}
}
|
apache/flink-statefun | 1,114 | statefun-sdk-embedded/src/main/java/org/apache/flink/statefun/sdk/annotations/Persisted.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.statefun.sdk.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Persisted {}
|
apache/flink | 1,106 | flink-table/flink-table-api-java/src/test/java/org/apache/flink/table/catalog/listener/CatalogListener1.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.catalog.listener;
/** Testing catalog modification listener. */
public class CatalogListener1 implements CatalogModificationListener {
@Override
public void onEvent(CatalogModificationEvent event) {
throw new UnsupportedOperationException();
}
}
|
apache/flink | 1,106 | flink-table/flink-table-api-java/src/test/java/org/apache/flink/table/catalog/listener/CatalogListener2.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.catalog.listener;
/** Testing catalog modification listener. */
public class CatalogListener2 implements CatalogModificationListener {
@Override
public void onEvent(CatalogModificationEvent event) {
throw new UnsupportedOperationException();
}
}
|
apache/flink | 1,111 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/NopOperation.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.operations;
import org.apache.flink.annotation.Internal;
/** An {@link Operation} to represent that nothing needs to be done. */
@Internal
public class NopOperation implements Operation {
@Override
public String asSummaryString() {
return "NOP";
}
}
|
apache/flink | 1,119 | flink-docs/src/test/java/org/apache/flink/docs/rest/data/clash/top/pkg1/ClashingRequestBody.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.docs.rest.data.clash.top.pkg1;
import org.apache.flink.runtime.rest.messages.RequestBody;
/**
* A {@link RequestBody} whose name clashes with {@link
* org.apache.flink.docs.rest.data.clash.top.pkg2.ClashingRequestBody}.
*/
public class ClashingRequestBody implements RequestBody {}
|
apache/flink | 1,119 | flink-docs/src/test/java/org/apache/flink/docs/rest/data/clash/top/pkg2/ClashingRequestBody.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.docs.rest.data.clash.top.pkg2;
import org.apache.flink.runtime.rest.messages.RequestBody;
/**
* A {@link RequestBody} whose name clashes with {@link
* org.apache.flink.docs.rest.data.clash.top.pkg1.ClashingRequestBody}.
*/
public class ClashingRequestBody implements RequestBody {}
|
apache/flink | 1,127 | flink-core/src/main/java/org/apache/flink/api/common/accumulators/SimpleAccumulator.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.api.common.accumulators;
import org.apache.flink.annotation.Public;
import java.io.Serializable;
/** Similar to Accumulator, but the type of items to add and the result value must be the same. */
@Public
public interface SimpleAccumulator<T extends Serializable> extends Accumulator<T, T> {}
|
apache/flink | 1,128 | flink-runtime/src/main/java/org/apache/flink/runtime/messages/webmonitor/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.
*/
/**
* This package contains the actor messages that are sent between the JobManager and components that
* are interested in the status of the JobManager. An example for such a component is the web
* runtime monitor, which sends messages to request the status.
*/
package org.apache.flink.runtime.messages.webmonitor;
|
apache/flink | 1,129 | flink-metrics/flink-metrics-core/src/main/java/org/apache/flink/events/Events.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.events;
/** Class that defines known events in an enum. */
public enum Events {
CheckpointEvent,
JobStatusChangeEvent,
JobFailureEvent,
AllSubtasksStatusChangeEvent;
public EventBuilder builder(Class<?> classScope) {
return Event.builder(classScope, name());
}
}
|
apache/fory | 1,134 | java/fory-format/src/main/java/org/apache/fory/format/encoder/RowEncoder.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.fory.format.encoder;
import org.apache.arrow.vector.types.pojo.Schema;
import org.apache.fory.format.row.binary.BinaryRow;
/** Encoder to encode/decode object to/from row. */
public interface RowEncoder<T> extends Encoder<T> {
Schema schema();
T fromRow(BinaryRow row);
BinaryRow toRow(T obj);
}
|
apache/geaflow | 1,095 | geaflow-console/app/common/dal/src/main/java/org/apache/geaflow/console/common/dal/entity/ResourceCount.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.common.dal.entity;
import lombok.Getter;
import lombok.Setter;
import org.apache.geaflow.console.common.util.type.GeaflowResourceType;
@Setter
@Getter
public class ResourceCount {
GeaflowResourceType type;
String name;
int count;
}
|
apache/geaflow | 1,105 | geaflow/geaflow-dsl/geaflow-dsl-parser/src/main/java/org/apache/geaflow/dsl/util/GQLReturnKeyword.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.dsl.util;
import org.apache.calcite.sql.SqlLiteral;
import org.apache.calcite.sql.parser.SqlParserPos;
public enum GQLReturnKeyword {
DISTINCT,
ALL;
public SqlLiteral symbol(SqlParserPos pos) {
return SqlLiteral.createSymbol(this, pos);
}
}
|
apache/geode | 1,126 | geode-core/src/main/java/org/apache/geode/distributed/internal/ConfigAttributeChecker.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;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ConfigAttributeChecker {
String name();
}
|
apache/geode | 1,127 | geode-core/src/main/java/org/apache/geode/internal/cache/backup/BackupResultCollector.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.internal.cache.backup;
import java.util.Set;
import org.apache.geode.cache.persistence.PersistentID;
import org.apache.geode.distributed.internal.membership.InternalDistributedMember;
interface BackupResultCollector {
void addToResults(InternalDistributedMember member, Set<PersistentID> persistentIds);
}
|
apache/geode | 1,134 | geode-core/src/main/java/org/apache/geode/internal/admin/AdminBridgeServer.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.internal.admin;
import org.apache.geode.cache.server.CacheServer;
/**
* A representation of <code>CacheServer</code> that is used for administration.
*
* @since GemFire 4.0
*/
public interface AdminBridgeServer extends CacheServer {
/**
* Returns the VM-unique id of this cache server
*/
int getId();
}
|
apache/gobblin | 1,089 | gobblin-modules/gobblin-azkaban/src/main/java/org/apache/gobblin/service/modules/orchestration/AzkabanClientStatus.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.gobblin.service.modules.orchestration;
import lombok.Getter;
@Getter
public abstract class AzkabanClientStatus<RS> {
private RS response = null;
public AzkabanClientStatus() {
}
public AzkabanClientStatus(RS response) {
this.response = response;
}
}
|
apache/gobblin | 1,111 | gobblin-cluster/src/main/java/org/apache/gobblin/cluster/event/ClusterManagerShutdownRequest.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.gobblin.cluster.event;
import org.apache.gobblin.annotation.Alpha;
/**
* A dummy class representing an ApplicationMaster shutdown request to be used with a
* {@link com.google.common.eventbus.EventBus}.
*
* @author Yinan Li
*/
@Alpha
public class ClusterManagerShutdownRequest {
}
|
apache/gobblin | 1,126 | gobblin-api/src/main/java/org/apache/gobblin/dataset/DescriptorResolverFactory.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.gobblin.dataset;
import com.typesafe.config.Config;
/**
* Factory to create a {@link DescriptorResolver} instance
*/
public interface DescriptorResolverFactory {
/**
* @param config configurations only about {@link DescriptorResolver}
*/
DescriptorResolver createResolver(Config config);
}
|
apache/grails-core | 1,113 | grails-datastore-core/src/main/groovy/org/grails/datastore/mapping/core/impl/PendingDelete.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.datastore.mapping.core.impl;
/**
* Represents a pending delete, that is an object that is due to be deleted as part of a flush() operation
*
* @author Graeme Rocher
* @since 5.0.0
*/
public interface PendingDelete<E, K> extends Runnable, PendingOperation<E, K> {
}
|
apache/groovy | 1,129 | src/test/groovy/org/codehaus/groovy/runtime/m12n/TestLocalDateTimeExtension.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.codehaus.groovy.runtime.m12n;
import java.time.LocalDate;
import java.time.LocalDateTime;
@SuppressWarnings("unused")
public class TestLocalDateTimeExtension {
public static int compareTo(LocalDateTime self, LocalDate other) {
return self.compareTo(other.atStartOfDay());
}
}
|
apache/groovy | 1,168 | src/test/groovy/groovy/SomeClass.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;
/**
* Arbitrary holder for Java Methods to be called by Groovy TestCases.
*/
public class SomeClass {
public String[][] anArrayOfStringArrays() {
return new String[][]{{"whatever"}};
}
public Object[] anArrayOfStringArraysWorkaround() {
return new Object[]{new String[]{"whatever", null}};
}
} |
apache/hadoop | 1,107 | hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/cli/util/SubstringComparator.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.hadoop.cli.util;
public class SubstringComparator extends ComparatorBase {
@Override
public boolean compare(String actual, String expected) {
int compareOutput = actual.indexOf(expected);
if (compareOutput == -1) {
return false;
}
return true;
}
}
|
apache/hadoop | 1,120 | hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/commit/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 manifest committer.
* Unless otherwise stated: classes are private.
*/
@InterfaceAudience.Private
@InterfaceStability.Unstable
package org.apache.hadoop.fs.azurebfs.commit;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability; |
apache/harmony | 1,119 | classlib/modules/auth/src/main/java/common/javax/security/auth/RefreshFailedException.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 javax.security.auth;
public class RefreshFailedException extends Exception {
private static final long serialVersionUID = 5058444488565265840L;
public RefreshFailedException() {
super();
}
public RefreshFailedException(String message) {
super(message);
}
}
|
apache/harmony | 1,128 | classlib/modules/swing/src/main/java/common/javax/swing/event/PopupMenuListener.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.
*/
/**
* @author Anton Avtamonov
*/
package javax.swing.event;
import java.util.EventListener;
public interface PopupMenuListener extends EventListener {
void popupMenuWillBecomeVisible(PopupMenuEvent e);
void popupMenuWillBecomeInvisible(PopupMenuEvent e);
void popupMenuCanceled(PopupMenuEvent e);
}
|
apache/harmony | 1,130 | classlib/modules/sql/src/main/java/javax/sql/rowset/spi/TransactionalWriter.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 javax.sql.rowset.spi;
import java.sql.SQLException;
import java.sql.Savepoint;
import javax.sql.RowSetWriter;
public interface TransactionalWriter extends RowSetWriter {
void commit() throws SQLException;
void rollback() throws SQLException;
void rollback(Savepoint s) throws SQLException;
}
|
apache/helix | 1,133 | helix-core/src/main/java/org/apache/helix/store/PropertyStoreException.java | package org.apache.helix.store;
/*
* 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.
*/
/**
* This exception class can be used to indicate any exception during operation
* on the propertystore
*/
public class PropertyStoreException extends Exception {
public PropertyStoreException(String msg) {
super(msg);
}
public PropertyStoreException() {
super();
}
}
|
apache/hertzbeat | 1,107 | hertzbeat-common/src/main/java/org/apache/hertzbeat/common/support/event/SystemConfigChangeEvent.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.hertzbeat.common.support.event;
import org.springframework.context.ApplicationEvent;
/**
* the event for system config change
*/
public class SystemConfigChangeEvent extends ApplicationEvent {
public SystemConfigChangeEvent(Object source) {
super(source);
}
}
|
apache/hive | 1,093 | standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/messaging/DropConstraintMessage.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.hadoop.hive.metastore.messaging;
public abstract class DropConstraintMessage extends EventMessage {
protected DropConstraintMessage() {
super(EventType.DROP_CONSTRAINT);
}
public abstract String getTable();
public abstract String getConstraint();
}
|
apache/hive | 1,129 | ql/src/java/org/apache/hadoop/hive/ql/io/RowPositionAwareVectorizedRecordReader.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.hadoop.hive.ql.io;
import java.io.IOException;
public interface RowPositionAwareVectorizedRecordReader {
/**
* Returns the row position (in the file) of the first row in the last returned batch.
* @return row position
* @throws IOException
*/
long getRowNumber() throws IOException;
}
|
apache/hive | 1,134 | ql/src/java/org/apache/hadoop/hive/ql/stats/estimator/StatEstimatorProvider.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.hadoop.hive.ql.stats.estimator;
/**
* Marker interface for UDFs to communicate that the usage of StatEstimators is supported by the UDF.
*/
public interface StatEstimatorProvider {
/**
* Returns the {@link StatEstimator} for the given UDF instance.
*/
public StatEstimator getStatEstimator();
}
|
apache/hudi | 1,115 | hudi-client/hudi-client-common/src/main/java/org/apache/hudi/exception/HoodieInsertException.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.hudi.exception;
/**
* <p>
* Exception thrown for any higher level errors when <code>HoodieClient</code> is doing a bulk insert.
* </p>
*/
public class HoodieInsertException extends HoodieException {
public HoodieInsertException(String msg, Throwable e) {
super(msg, e);
}
}
|
apache/ignite-3 | 1,086 | modules/network-annotation-processor/src/test/java/org/apache/ignite/internal/network/processor/tests/TestMessageGroup.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.network.processor.tests;
import org.apache.ignite.internal.network.annotations.MessageGroup;
/**
* A group for test messages (required for code generation).
*/
@MessageGroup(groupType = 1, groupName = "TestMessages")
class TestMessageGroup {
}
|
apache/ignite-3 | 1,108 | modules/network/src/testFixtures/java/org/apache/ignite/internal/network/recovery/AllIdsAreFresh.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.network.recovery;
import java.util.UUID;
/**
* {@link StaleIdDetector} that reports all IDs as fresh (i.e. not stale).
*/
public class AllIdsAreFresh implements StaleIdDetector {
@Override
public boolean isIdStale(UUID nodeId) {
return false;
}
}
|
apache/ignite-3 | 1,132 | modules/api/src/main/java/org/apache/ignite/marshalling/TupleMarshaller.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.marshalling;
import org.apache.ignite.table.Tuple;
/**
* Ignite serialization protocol that can be used used instead of {@link ByteArrayMarshaller}.
*/
interface TupleMarshaller<T> extends Marshaller<T, Tuple> {
@Override
Tuple marshal(T object);
@Override
T unmarshal(Tuple raw);
}
|
apache/ignite | 1,125 | modules/core/src/test/java/org/apache/ignite/internal/processors/compute/NoopJob.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.processors.compute;
import org.apache.ignite.IgniteException;
import org.apache.ignite.compute.ComputeJobAdapter;
/**
*
*/
class NoopJob extends ComputeJobAdapter {
/** {@inheritDoc} */
@Override public Object execute() throws IgniteException {
return null;
}
}
|
apache/incubator-datalab | 1,114 | services/self-service/src/main/java/com/epam/datalab/backendapi/service/TagService.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 com.epam.datalab.backendapi.service;
import com.epam.datalab.auth.UserInfo;
import java.util.Map;
@FunctionalInterface
public interface TagService {
Map<String, String> getResourceTags(UserInfo userInfo, String endpoint, String project, String customTag
, boolean gpuEnabled);}
|
apache/incubator-hugegraph | 1,109 | hugegraph-pd/hg-pd-core/src/main/java/org/apache/hugegraph/pd/raft/KVStoreClosure.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.hugegraph.pd.raft;
import org.apache.hugegraph.pd.grpc.Pdpb;
import com.alipay.sofa.jraft.Closure;
public interface KVStoreClosure extends Closure {
Pdpb.Error getError();
void setError(final Pdpb.Error error);
Object getData();
void setData(final Object data);
}
|
apache/incubator-kie-drools | 1,109 | drools-traits/src/main/java/org/drools/traits/core/metadata/ManyValuedMetaProperty.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;
import java.util.Collection;
public interface ManyValuedMetaProperty<T,R,C extends Collection<R>> extends MetaProperty<T,R,C> {
public void set( T o, R value, Lit mode );
public void set( T o, C value, Lit mode );
public C get( T object );
}
|
apache/incubator-kie-drools | 1,116 | kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/HasRule.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.commons;
import org.kie.pmml.commons.model.HasSourcesMap;
/**
* Interface used to decouple <code>PMMLCompilerService</code> from <code>KiePMMLDroolsModelWithSources</code>
*/
public interface HasRule extends HasSourcesMap {
String getPkgUUID();
Object getPackageDescr();
}
|
apache/incubator-kie-drools | 1,127 | drools-compiler/src/test/java/org/acme/insurance/Rejection.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.insurance;
public class Rejection {
private String reason;
public Rejection(final String reason) {
this.reason = reason;
}
public String getReason() {
return this.reason;
}
public void setReason(final String reason) {
this.reason = reason;
}
}
|
apache/incubator-kie-kogito-apps | 1,086 | persistence-commons/persistence-commons-api/src/main/java/org/kie/kogito/persistence/api/StorageService.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.kogito.persistence.api;
public interface StorageService {
Storage<String, String> getCache(String name);
<T> Storage<String, T> getCache(String name, Class<T> type);
<T> Storage<String, T> getCache(String name, Class<T> type, String rootType);
}
|
apache/incubator-retired-gearpump | 1,106 | experiments/cgroup/src/main/java/org/apache/gearpump/cluster/cgroup/Constants.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.gearpump.cluster.cgroup;
public class Constants {
public static final String CGROUP_STATUS_FILE = "/proc/cgroups";
public static final String MOUNT_STATUS_FILE = "/proc/mounts";
public static String getDir(String dir, String constant) {
return dir + constant;
}
}
|
apache/incubator-retired-htrace | 1,123 | htrace-core4/src/main/java/org/apache/htrace/core/AlwaysSampler.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.htrace.core;
/**
* A Sampler that always returns true.
*/
public final class AlwaysSampler extends Sampler {
public static final AlwaysSampler INSTANCE = new AlwaysSampler(null);
public AlwaysSampler(HTraceConfiguration conf) {
}
@Override
public boolean next() {
return true;
}
}
|
apache/incubator-retired-pirk | 1,129 | src/main/java/org/apache/pirk/benchmark/BenchmarkDriver.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.pirk.benchmark;
import java.io.IOException;
import org.openjdk.jmh.Main;
import org.openjdk.jmh.runner.RunnerException;
/**
* Driver for JMH benchmarking
*/
public class BenchmarkDriver
{
public static void main(String[] args) throws RunnerException, IOException
{
Main.main(args);
}
}
|
apache/incubator-retired-wave | 1,110 | wave/src/main/java/org/waveprotocol/box/webclient/client/WaveWebSocketCallback.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.waveprotocol.box.webclient.client;
import org.waveprotocol.box.common.comms.ProtocolWaveletUpdate;
/**
* Callback for a wave websocket.
*
* @author arb@google.com (Anthony Baxter)
*/
public interface WaveWebSocketCallback {
void onWaveletUpdate(ProtocolWaveletUpdate message);
}
|
apache/incubator-seata-samples | 1,070 | at-sample/dubbo-samples-seata/dubbo-samples-seata-api/src/main/java/org/apache/dubbo/samples/seata/api/AccountService.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.samples.seata.api;
/**
* The interface Account service.
*/
public interface AccountService {
/**
* debit
*
* @param userId
* @param money
*/
void debit(String userId, int money);
}
|
apache/iotdb | 1,115 | iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/schema/node/info/IDatabaseInfo.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.commons.schema.node.info;
import org.apache.iotdb.commons.schema.node.IMNode;
import org.apache.iotdb.commons.schema.node.role.IDatabaseMNode;
public interface IDatabaseInfo<N extends IMNode<N>> {
void moveDataToNewMNode(IDatabaseMNode<N> newMNode);
int estimateSize();
}
|
apache/jclouds | 1,101 | providers/google-compute-engine/src/main/java/org/jclouds/googlecomputeengine/internal/BaseToIteratorOfListPage.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.googlecomputeengine.internal;
import org.jclouds.googlecomputeengine.options.ListOptions;
public abstract class BaseToIteratorOfListPage<T, I extends BaseToIteratorOfListPage<T, I>>
extends org.jclouds.googlecloud.internal.BaseToIteratorOfListPage<T, ListOptions, I> {
}
|
apache/jclouds | 1,120 | providers/azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/domain/vpn/VPNType.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.azurecompute.arm.domain.vpn;
import org.jclouds.azurecompute.arm.util.GetEnumValue;
public enum VPNType {
PolicyBased, RouteBased, Unrecognized;
public static VPNType fromValue(final String text) {
return (VPNType) GetEnumValue.fromValueOrDefault(text, VPNType.Unrecognized);
}
}
|
apache/jclouds | 1,121 | providers/b2/src/test/java/org/jclouds/b2/blobstore/integration/B2ContainerLiveTest.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.b2.blobstore.integration;
import org.jclouds.blobstore.integration.internal.BaseContainerLiveTest;
import org.testng.annotations.Test;
@Test(groups = { "live" })
public final class B2ContainerLiveTest extends BaseContainerLiveTest {
public B2ContainerLiveTest() {
provider = "b2";
}
}
|
apache/jclouds | 1,140 | apis/chef/src/main/java/org/jclouds/chef/binders/EnvironmentName.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.chef.binders;
import com.google.common.base.Function;
import org.jclouds.chef.domain.Environment;
import jakarta.inject.Singleton;
@Singleton
public class EnvironmentName implements Function<Object, String> {
@Override
public String apply(Object input) {
return ((Environment) input).getName();
}
}
|
apache/jena | 1,115 | jena-permissions/src/test/java/org/apache/jena/permissions/contract/model/SecTestReaderEvents.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.jena.permissions.contract.model;
import org.apache.jena.rdf.model.test.TS3_Model1;
public class SecTestReaderEvents extends org.apache.jena.rdf.model.test.TestReaderEvents {
public SecTestReaderEvents() {
super(new TS3_Model1.PlainModelFactory(), "SecTestReaderEvents");
}
}
|
apache/jena | 1,130 | jena-tdb2/src/test/java/org/apache/jena/tdb2/store/nodetable/TS_NodeTable.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.jena.tdb2.store.nodetable;
import org.junit.platform.suite.api.SelectClasses;
import org.junit.platform.suite.api.Suite;
@Suite
@SelectClasses({
TestNodeTableBase.class
, TestNodeTableStoredBase.class
, TestNodeTableStored.class
, TestNodeTable.class
})
public class TS_NodeTable
{
}
|
apache/jena | 1,132 | jena-arq/src/main/java/org/apache/jena/sparql/util/TypeNotUniqueException.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.jena.sparql.util;
import org.apache.jena.rdf.model.Resource ;
import org.apache.jena.shared.JenaException ;
public class TypeNotUniqueException extends JenaException
{
public TypeNotUniqueException(Resource type)
{
super("Multiple types for "+FmtUtils.stringForResource(type)) ;
}
}
|
apache/kafka | 1,122 | clients/src/main/java/org/apache/kafka/common/errors/InvalidFetchSessionEpochException.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 InvalidFetchSessionEpochException extends RetriableException {
private static final long serialVersionUID = 1L;
public InvalidFetchSessionEpochException() {
}
public InvalidFetchSessionEpochException(String message) {
super(message);
}
}
|
apache/kylin | 1,111 | src/core-metadata/src/main/java/org/apache/kylin/metadata/model/exception/LookupTableException.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.metadata.model.exception;
public class LookupTableException extends RuntimeException {
private static final long serialVersionUID = 4684202079909560806L;
public LookupTableException() {
}
public LookupTableException(String msg) {
super(msg);
}
}
|
apache/kylin | 1,121 | src/core-job/src/main/java/org/apache/kylin/job/exception/ZkPeekLockInterruptException.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.job.exception;
public class ZkPeekLockInterruptException extends RuntimeException {
public ZkPeekLockInterruptException(String message) {
super(message);
}
public ZkPeekLockInterruptException(String message, Throwable cause) {
super(message, cause);
}
}
|
apache/lens | 1,114 | lens-driver-es/src/main/java/org/apache/lens/driver/es/translator/impl/ESCriteriaVisitorFactory.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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* 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.lens.driver.es.translator.impl;
import org.apache.lens.driver.es.translator.CriteriaVisitorFactory;
public final class ESCriteriaVisitorFactory implements CriteriaVisitorFactory {
@Override
public ESCriteriaVisitor getInstance() {
return new ESCriteriaVisitor();
}
}
|
apache/linkis | 1,077 | linkis-engineconn-plugins/hbase/hbase-core/src/main/java/org/apache/linkis/manager/engineplugin/hbase/exception/ExecutorInitException.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.manager.engineplugin.hbase.exception;
import org.apache.linkis.common.exception.ErrorException;
public class ExecutorInitException extends ErrorException {
public ExecutorInitException(int errCode, String desc) {
super(errCode, desc);
}
}
|
apache/linkis | 1,079 | linkis-public-enhancements/linkis-pes-common/src/main/java/org/apache/linkis/cs/common/entity/history/GlobalPropertyContextHistory.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.cs.common.entity.history;
import org.apache.linkis.cs.common.entity.object.CSProperty;
public interface GlobalPropertyContextHistory extends ContextHistory {
CSProperty getGlobalProperty();
void setGlobalProperty(CSProperty globalProperty);
}
|
apache/logging-log4j2 | 1,131 | log4j-api/src/main/java/org/apache/logging/log4j/simple/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.
*/
/**
* Simple logging implementation. This is a rather minimal Log4j Provider that is used by default if no other Log4j
* Providers are able to be loaded at runtime.
*/
@Export
@Version("2.24.1")
package org.apache.logging.log4j.simple;
import org.osgi.annotation.bundle.Export;
import org.osgi.annotation.versioning.Version;
|
apache/marmotta | 1,110 | platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/events/LoggingStartEvent.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.marmotta.platform.core.events;
/**
* Event thrown when the configuration service is sufficiently setup to start the advanced logging functionality.
*
* @author Sebastian Schaffert (sschaffert@apache.org)
*/
public class LoggingStartEvent {
public LoggingStartEvent() {
}
}
|
apache/maven-surefire | 1,095 | surefire-providers/surefire-junit3/src/main/java/org/apache/maven/surefire/junit/SurefireTestSetExecutor.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.surefire.junit;
import org.apache.maven.surefire.api.testset.TestSetFailedException;
/**
* Describes a single test set
*
*/
public interface SurefireTestSetExecutor {
void execute(Class<?> testClass, ClassLoader loader) throws TestSetFailedException;
}
|
apache/maven | 1,122 | api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/SettingsXmlFactory.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.api.services.xml;
import org.apache.maven.api.annotations.Experimental;
import org.apache.maven.api.settings.Settings;
/**
* Reads and writes a {@link Settings} object to/from XML.
*
* @since 4.0.0
*/
@Experimental
public interface SettingsXmlFactory extends XmlFactory<Settings> {}
|
apache/myfaces | 1,139 | api/src/main/java/jakarta/faces/component/html/_EscapeProperty.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 jakarta.faces.component.html;
import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty;
interface _EscapeProperty
{
/**
* Indicates whether rendered markup should be escaped.
* Default: true
*
*/
@JSFProperty(defaultValue="true")
public boolean isEscape();
}
|
apache/nifi | 1,089 | nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/queue/DropFlowFileAction.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.controller.queue;
import java.io.IOException;
import java.util.List;
import org.apache.nifi.controller.repository.FlowFileRecord;
public interface DropFlowFileAction {
QueueSize drop(List<FlowFileRecord> flowFiles, String requestor) throws IOException;
}
|
apache/olingo-odata4 | 1,099 | lib/client-api/src/main/java/org/apache/olingo/client/api/communication/request/invoke/ClientNoContent.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.client.api.communication.request.invoke;
import org.apache.olingo.client.api.domain.ClientInvokeResult;
/**
* Marker class for invoke with no return type.
*/
public class ClientNoContent implements ClientInvokeResult {
//No additional methods needed for now.
}
|
apache/olingo-odata4 | 1,104 | lib/server-api/src/main/java/org/apache/olingo/server/api/uri/queryoption/expression/LambdaRef.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.expression;
/**
* Used to within a lambda expression tree to define an access to the lambda variable
*/
public interface LambdaRef extends Expression {
/**
* @return Name of the lambda variable
*/
public String getVariableName();
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.