id stringlengths 7 14 | text stringlengths 1 106k |
|---|---|
200121_17 | public YamlStore addResource(Resource resource, String key, String... tags) {
List<String> tagList = new ArrayList<String>();
addAll(tagList, tags);
return new YamlStore(this, key, new TaggedResource(resource, tagList));
} |
200121_18 | public YamlStore addResource(Resource resource, String key, String... tags) {
List<String> tagList = new ArrayList<String>();
addAll(tagList, tags);
return new YamlStore(this, key, new TaggedResource(resource, tagList));
} |
200121_19 | @Override
protected Properties parseProperties(Properties props) {
return new EncryptableProperties(props, encryptor);
} |
200121_20 | public LdapConfigurationStoreBuilder addDsn(final String distinguishedName, final String... tags) {
checkStringArgument("distinguishedName", distinguishedName);
ldapConfigurationStore = new LdapConfigurationStore(ldapConfigurationStore,
readAttributesFromL... |
200121_21 | public LdapConfigurationStoreBuilder addDsn(final String distinguishedName, final String... tags) {
checkStringArgument("distinguishedName", distinguishedName);
ldapConfigurationStore = new LdapConfigurationStore(ldapConfigurationStore,
readAttributesFromL... |
200121_22 | public LdapConfigurationStoreBuilder addDsn(final String distinguishedName, final String... tags) {
checkStringArgument("distinguishedName", distinguishedName);
ldapConfigurationStore = new LdapConfigurationStore(ldapConfigurationStore,
readAttributesFromL... |
200121_23 | public LdapConfigurationStoreBuilder addDsn(final String distinguishedName, final String... tags) {
checkStringArgument("distinguishedName", distinguishedName);
ldapConfigurationStore = new LdapConfigurationStore(ldapConfigurationStore,
readAttributesFromL... |
200121_24 | public LdapConfigurationStoreBuilder addUsingSearch(final String searchBase,
final String filter,
final String keyAttribute,
final String... tags) {
SearchContr... |
200121_25 | public LdapConfigurationStoreBuilder addUsingSearch(final String searchBase,
final String filter,
final String keyAttribute,
final String... tags) {
SearchContr... |
200121_26 | public Collection<TaggedPropertySet> parseConfiguration() {
Map<String, String> properties = new HashMap<String, String>(keyAttributesMap.size());
for (String key : keyAttributesMap.keySet()) {
properties.putAll(convertAttributesToProperties(key, keyAttributesMap.get(key)));
}
return createTagge... |
200121_27 | public Collection<TaggedPropertySet> parseConfiguration() {
Map<String, String> properties = new HashMap<String, String>(keyAttributesMap.size());
for (String key : keyAttributesMap.keySet()) {
properties.putAll(convertAttributesToProperties(key, keyAttributesMap.get(key)));
}
return createTagge... |
200121_28 | public Collection<TaggedPropertySet> parseConfiguration() {
Map<String, String> properties = new HashMap<String, String>(keyAttributesMap.size());
for (String key : keyAttributesMap.keySet()) {
properties.putAll(convertAttributesToProperties(key, keyAttributesMap.get(key)));
}
return createTagge... |
200121_29 | public Collection<TaggedPropertySet> parseConfiguration() {
Map<String, String> properties = new HashMap<String, String>(keyAttributesMap.size());
for (String key : keyAttributesMap.keySet()) {
properties.putAll(convertAttributesToProperties(key, keyAttributesMap.get(key)));
}
return createTagge... |
200121_30 | public Collection<TaggedPropertySet> parseConfiguration() {
Map<String, String> properties = new HashMap<String, String>(keyAttributesMap.size());
for (String key : keyAttributesMap.keySet()) {
properties.putAll(convertAttributesToProperties(key, keyAttributesMap.get(key)));
}
return createTagge... |
200121_31 | public Collection<TaggedPropertySet> parseConfiguration() {
Map<String, String> properties = new HashMap<String, String>(keyAttributesMap.size());
for (String key : keyAttributesMap.keySet()) {
properties.putAll(convertAttributesToProperties(key, keyAttributesMap.get(key)));
}
return createTagge... |
200121_32 | public Collection<TaggedPropertySet> parseConfiguration() {
Map<String, TaggedPropertySet> propertySets = new HashMap<>();
for (Object configurationObject : configurationObjects) {
TaggedPropertySet taggedPropertySet = createPropertySetForObject(configurationObject);
if (propertySets.containsKey... |
200121_33 | public JsonStore addResource(Resource resource, String key, String... tags) {
List<String> tagList = new ArrayList<String>();
addAll(tagList, tags);
return new JsonStore(this, key, new TaggedResource(resource, tagList));
} |
200121_34 | public JsonStore addResource(Resource resource, String key, String... tags) {
List<String> tagList = new ArrayList<String>();
addAll(tagList, tags);
return new JsonStore(this, key, new TaggedResource(resource, tagList));
} |
200121_35 | public static Class<?> getMapKeyFieldType(Field mapField) {
return getGenericFieldType(mapField, Map.class, 0, getNestingLevel(mapField.getGenericType(), 0));
} |
200121_36 | public static Class<?> getMapValueFieldType(Field mapField) {
return getGenericFieldType(mapField, Map.class, 1, getNestingLevel(mapField.getGenericType(), 0));
} |
200121_37 | public static Class<?> getMapValueParameterType(MethodParameter methodParam) {
return getGenericParameterType(methodParam, Map.class, 1);
} |
200121_38 | public static Class<?> getMapKeyParameterType(MethodParameter methodParam) {
return getGenericParameterType(methodParam, Map.class, 0);
} |
200121_39 | public static Class<?> getCollectionFieldType(Field collectionField) {
return getGenericFieldType(collectionField, Collection.class, 0, getNestingLevel(collectionField.getGenericType(), 0));
} |
200121_40 | public static Class<?> getCollectionParameterType(MethodParameter methodParam) {
return getGenericParameterType(methodParam, Collection.class, 0);
} |
200121_41 | public static ArgumentDescriptionFactory<Method> forMethod(final Method method) {
return new ArgumentDescriptionFactory<Method>(method, method.getParameterAnnotations(), method.getParameterTypes());
} |
200121_42 | @SuppressWarnings("unchecked")
public static <K, V> Object convert(Class<V> valueClazz, Class<K> keyClazz, CValue value) throws ConstrettoException {
if (value instanceof CPrimitive) {
return convertPrimitive(valueClazz, (CPrimitive) value);
} else if (value instanceof CArray) {
return convertLi... |
200121_43 | @SuppressWarnings("unchecked")
public static <K, V> Object convert(Class<V> valueClazz, Class<K> keyClazz, CValue value) throws ConstrettoException {
if (value instanceof CPrimitive) {
return convertPrimitive(valueClazz, (CPrimitive) value);
} else if (value instanceof CArray) {
return convertLi... |
200121_44 | @SuppressWarnings("unchecked")
public static <K, V> Object convert(Class<V> valueClazz, Class<K> keyClazz, CValue value) throws ConstrettoException {
if (value instanceof CPrimitive) {
return convertPrimitive(valueClazz, (CPrimitive) value);
} else if (value instanceof CArray) {
return convertLi... |
200121_45 | @SuppressWarnings("unchecked")
public static <K, V> Object convert(Class<V> valueClazz, Class<K> keyClazz, CValue value) throws ConstrettoException {
if (value instanceof CPrimitive) {
return convertPrimitive(valueClazz, (CPrimitive) value);
} else if (value instanceof CArray) {
return convertLi... |
200121_46 | @SuppressWarnings("unchecked")
public static <K, V> Object convert(Class<V> valueClazz, Class<K> keyClazz, CValue value) throws ConstrettoException {
if (value instanceof CPrimitive) {
return convertPrimitive(valueClazz, (CPrimitive) value);
} else if (value instanceof CArray) {
return convertLi... |
200121_47 | public static ConstrettoBuilder withSystemProperties(final ConfigurationContextResolver contextResolver) {
return new ConstrettoBuilder(contextResolver, true);
} |
200121_48 | public static ConstrettoBuilder empty() {
return empty(new DefaultConfigurationContextResolver());
} |
200121_49 | public static ConstrettoBuilder fromExistingConfiguration(final ConstrettoConfiguration constrettoConfiguration, final ConfigurationContextResolver configurationContextResolver) {
Objects.requireNonNull(constrettoConfiguration, "The \"constrettoConfiguration\" argument can not be null");
Objects.requireNonNull(... |
200121_50 | @Override
public boolean equals(final Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
final CObject cObject = (CObject) o;
if (data != null ? !data.equals(cObject.data) : cObject.data != null) return false;
return true;
} |
200121_51 | @Override
public int hashCode() {
return data != null ? data.hashCode() : 0;
} |
200121_52 | @Override
public void replace(String key, String resolvedValue) {
value = value.replaceAll("#\\{" + key + "\\}", Matcher.quoteReplacement(resolvedValue));
} |
200121_53 | @Override
public boolean equals(final Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
final CPrimitive that = (CPrimitive) o;
if (value != null ? !value.equals(that.value) : that.value != null) return false;
return true;
} |
200121_54 | public List<CValue> data() {
return data == null ? Collections.<CValue>emptyList() : Collections.unmodifiableList(data);
} |
200121_55 | @Override
public Set<String> referencedKeys() {
Set<String> referencedKeys = new HashSet<String>();
for (CValue value : data) {
referencedKeys.addAll(value.referencedKeys());
}
return referencedKeys;
} |
200121_56 | @Override
public void replace(String key, String resolvedValue) {
for (CValue value : data) {
value.replace(key, resolvedValue);
}
} |
200121_57 | @Override
public String toString() {
return "[" + StringUtils.join(data, ',') + "]";
} |
2003641_0 | public static MultivaluedHashMap<String, String> getQueryParams(Map<String, String[]> parameterMap) {
MultivaluedHashMap<String, String> queryParameters = new MultivaluedHashMap<>();
if (parameterMap.size() == 0) {
return queryParameters;
}
for (Map.Entry<String, String[]> parameter : parameterM... |
2003641_1 | public static MultivaluedHashMap<String, String> getQueryParams(Map<String, String[]> parameterMap) {
MultivaluedHashMap<String, String> queryParameters = new MultivaluedHashMap<>();
if (parameterMap.size() == 0) {
return queryParameters;
}
for (Map.Entry<String, String[]> parameter : parameterM... |
2003641_2 | @Override
public Set<Class<?>> classes() {
Set<Class<?>> classes = super.classes();
Set<Class<?>> output = new HashSet<>();
if (application != null) {
Set<Class<?>> clzs = application.getClasses();
if (clzs != null) {
for (Class<?> clz : clzs) {
if (!isIgnored(clz... |
2003641_3 | @Override
public Set<Class<?>> classes() {
Set<Class<?>> classes = super.classes();
Set<Class<?>> output = new HashSet<>();
if (application != null) {
Set<Class<?>> clzs = application.getClasses();
if (clzs != null) {
for (Class<?> clz : clzs) {
if (!isIgnored(clz... |
2003641_4 | @Override
public Set<Class<?>> classes() {
Set<Class<?>> output = new HashSet<>();
if (application != null) {
Set<Class<?>> clzs = application.getClasses();
if (clzs != null) {
for (Class<?> clz : clzs) {
if (!isIgnored(clz.getName())) {
output.add... |
2003641_5 | @Override
public Set<Class<?>> classes() {
Set<Class<?>> output = new HashSet<>();
if (application != null) {
Set<Class<?>> clzs = application.getClasses();
if (clzs != null) {
for (Class<?> clz : clzs) {
if (!isIgnored(clz.getName())) {
output.add... |
2003641_6 | @Override
public Set<Class<?>> classes() {
Set<Class<?>> output = new HashSet<>();
if (application != null) {
Set<Class<?>> clzs = application.getClasses();
if (clzs != null) {
for (Class<?> clz : clzs) {
if (!isIgnored(clz.getName())) {
output.add... |
2003641_7 | public OpenAPI read(Class<?> cls) {
return read(cls, resolveApplicationPath(), null, false, null, null, new LinkedHashSet<String>(), new ArrayList<Parameter>(), new HashSet<Class<?>>());
} |
2003641_8 | public OpenAPI read(Class<?> cls) {
return read(cls, resolveApplicationPath(), null, false, null, null, new LinkedHashSet<String>(), new ArrayList<Parameter>(), new HashSet<Class<?>>());
} |
2003641_9 | public Operation parseMethod(
Method method,
List<Parameter> globalParameters,
JsonView jsonViewAnnotation) {
JavaType classType = TypeFactory.defaultInstance().constructType(method.getDeclaringClass());
return parseMethod(
classType.getClass(),
method,
... |
2008119_0 | @Get("json")
public Representation getEntity()
{
// extract necessary information from the context
CollabinateReader reader = (CollabinateReader)getContext()
.getAttributes().get("collabinateReader");
String tenantId = getAttribute("tenantId");
String entityId = getAttribute("entityId");
String result = reader.... |
2008119_1 | @Get("json")
public Representation getEntity()
{
// extract necessary information from the context
CollabinateReader reader = (CollabinateReader)getContext()
.getAttributes().get("collabinateReader");
String tenantId = getAttribute("tenantId");
String entityId = getAttribute("entityId");
String result = reader.... |
2008119_2 | @Get("json")
public Representation getEntity()
{
// extract necessary information from the context
CollabinateReader reader = (CollabinateReader)getContext()
.getAttributes().get("collabinateReader");
String tenantId = getAttribute("tenantId");
String entityId = getAttribute("entityId");
String result = reader.... |
2008119_3 | @Get("json")
public Representation getEntity()
{
// extract necessary information from the context
CollabinateReader reader = (CollabinateReader)getContext()
.getAttributes().get("collabinateReader");
String tenantId = getAttribute("tenantId");
String entityId = getAttribute("entityId");
String result = reader.... |
2008119_4 | @Get("json")
public Representation getEntity()
{
// extract necessary information from the context
CollabinateReader reader = (CollabinateReader)getContext()
.getAttributes().get("collabinateReader");
String tenantId = getAttribute("tenantId");
String entityId = getAttribute("entityId");
String result = reader.... |
2009311_0 | public static BeanManager getBeanManager() {
if (beanManager == null) {
throw new IllegalStateException("No CDI context available");
}
return beanManager;
} |
2009311_1 | public Object get() {
return delegate.get();
} |
2009311_2 | public boolean isAmbiguous() {
return delegate.isAmbiguous();
} |
2009311_3 | public boolean isUnsatisfied() {
return delegate.isUnsatisfied();
} |
2009311_4 | public Iterator<Object> iterator() {
return delegate.iterator();
} |
2009311_5 | public Instance<Object> select(Annotation... arg0) {
return delegate.select(arg0);
} |
2009311_6 | public void inject(T object) {
BeanManager beanManager = BeanManagerProvider.getBeanManager();
CreationalContext<T> creationalContext = beanManager.createCreationalContext(null);
AnnotatedType<T> annotatedType = beanManager.createAnnotatedType((Class<T>) object.getClass());
InjectionTarget<T> injectionTarget = ... |
2009311_7 | public void dispose(T object) {
BeanManager beanManager = BeanManagerProvider.getBeanManager();
AnnotatedType<T> annotatedType = beanManager.createAnnotatedType((Class<T>) object.getClass());
InjectionTarget<T> injectionTarget = beanManager.createInjectionTarget(annotatedType);
injectionTarget.preDestroy(object... |
2009311_8 | @AroundInvoke
public Object checkTransaction(InvocationContext ic) throws Exception {
checkTransactionActive();
return ic.proceed();
} |
2009311_9 | @AroundInvoke
public Object checkTransaction(InvocationContext ic) throws Exception {
checkTransactionActive();
return ic.proceed();
} |
2009635_0 | public int unpack(int i)
{
return (
(this.data[i>>this.indexShift] >> ((i&this.shiftMask)<<this.bitShift)) & this.unitMask
);
} |
2011647_0 | public static float[] convertDoublesToFloats(double[] input, float[] output) {
if (input == null || output == null) return output;
for (int i = 0; i < input.length; ++i) {
output[i] = (float) input[i];
}
return output;
} |
2011647_1 | public static double[] convertFloatsToDoubles(float[] input, double[] output) {
if (input == null || output == null) return output;
for (int i = 0; i < input.length; ++i) {
output[i] = (double) input[i];
}
return output;
} |
2011647_2 | public static double[] concatAllDouble(double[] ... arrays) {
int totalLength = 0;
final int subArrayCount = arrays.length;
for (int i = 0; i < subArrayCount; ++i) {
totalLength += arrays[i].length;
}
double[] result = Arrays.copyOf(arrays[0], totalLength);
int offset = arrays[0].length;
for (int i = 1; i < su... |
2011647_3 | public static float[] concatAllFloat(float[] ... arrays) {
int totalLength = 0;
final int subArrayCount = arrays.length;
for (int i = 0; i < subArrayCount; ++i) {
totalLength += arrays[i].length;
}
float[] result = Arrays.copyOf(arrays[0], totalLength);
int offset = arrays[0].length;
for (int i = 1; i < subArr... |
2011647_4 | public static int[] concatAllInt(int[] ... arrays) {
int totalLength = 0;
final int subArrayCount = arrays.length;
for (int i = 0; i < subArrayCount; ++i) {
totalLength += arrays[i].length;
}
int[] result = Arrays.copyOf(arrays[0], totalLength);
int offset = arrays[0].length;
for (int i = 1; i < subArrayCount;... |
2011647_5 | public static boolean intersectRayPlane(Vector3 rayStart, Vector3 rayEnd, Plane plane, Vector3 hitPoint) {
Vector3 rayDir = Vector3.subtractAndCreate(rayEnd, rayStart);
double denorm = rayDir.dot(plane.getNormal());
if (denorm != 0) {
double t = -(rayStart.dot(plane.getNormal()) + plane.getD()) / denorm;
if (t <... |
2011647_6 | public static boolean intersectRayTriangle(Vector3 rayStart, Vector3 rayEnd, Vector3 t1, Vector3 t2, Vector3 t3, Vector3 hitPoint) {
Vector3 rayDir = Vector3.subtractAndCreate(rayEnd, rayStart);
rayDir.normalize();
p.set(t1, t2, t3);
if (!intersectRayPlane(rayStart, rayEnd, p, i)) return false;
v0.subtractAndSet... |
2011647_7 | public static boolean intersectRaySphere(Vector3 rayStart, Vector3 rayEnd, Vector3 sphereCenter, double sphereRadius, Vector3 hitPoint) {
rayStart = new Vector3(rayStart);
rayEnd = new Vector3(rayEnd);
Vector3 dir = Vector3.subtractAndCreate(rayEnd, rayStart);
double len = dir.normalize();
sphereCenter = new Vec... |
2011647_8 | public Vector3 setAll(double x, double y, double z) {
this.x = x;
this.y = y;
this.z = z;
return this;
} |
2011647_9 | public Vector3 setAll(double x, double y, double z) {
this.x = x;
this.y = y;
this.z = z;
return this;
} |
2023409_0 | @Override
public int countStatements() {
try {
try (PreparedStatement statement = connectionRead.prepareStatement("select count(1) from statement_log")) {
try (ResultSet resultSet = statement.executeQuery()) {
resultSet.next();
return resultSet.getInt(1);
... |
2023409_1 | @Override
public long getTotalExecAndFetchTimeNanos() {
try (PreparedStatement statement = connectionRead
.prepareStatement("select sum(exec_plus_rset_usage_time) from v_statement_log")) {
try (ResultSet resultSet = statement.executeQuery()) {
resultSet.next();
return res... |
2023409_2 | @Override
public void getStatementsGroupByRawSQL(final LogSearchCriteria searchCriteria, final ResultSetAnalyzer analyzer) {
final StringBuilder sql = new StringBuilder(
"select * from (select min(id) as ID, statementType, rawSql, count(1) as exec_count, " //
+ "sum(executionDuration... |
2023409_3 | @Override
public void getStatementsGroupByFilledSQL(final LogSearchCriteria searchCriteria,
final ResultSetAnalyzer analyzer) {
final StringBuilder sql = new StringBuilder(
"select * from (select min(id) as ID, statementType, rawSql, filledSql, count(1) as exec_count, " //
+ ... |
2023409_4 | @Override
public void getStatementsGroupByRawSQL(final LogSearchCriteria searchCriteria, final ResultSetAnalyzer analyzer) {
final StringBuilder sql = new StringBuilder(
"select * from (select min(id) as ID, statementType, rawSql, count(1) as exec_count, " //
+ "sum(executionDuration... |
2023409_5 | @Override
public void getStatementsGroupByFilledSQL(final LogSearchCriteria searchCriteria,
final ResultSetAnalyzer analyzer) {
final StringBuilder sql = new StringBuilder(
"select * from (select min(id) as ID, statementType, rawSql, filledSql, count(1) as exec_count, " //
+ ... |
2023409_6 | @Override
public void getStatementsGroupByRawSQL(final LogSearchCriteria searchCriteria, final ResultSetAnalyzer analyzer) {
final StringBuilder sql = new StringBuilder(
"select * from (select min(id) as ID, statementType, rawSql, count(1) as exec_count, " //
+ "sum(executionDuration... |
2023409_7 | @Override
public void getStatementsGroupByFilledSQL(final LogSearchCriteria searchCriteria,
final ResultSetAnalyzer analyzer) {
final StringBuilder sql = new StringBuilder(
"select * from (select min(id) as ID, statementType, rawSql, filledSql, count(1) as exec_count, " //
+ ... |
2023409_8 | @Override
public void getStatementsGroupByRawSQL(final LogSearchCriteria searchCriteria, final ResultSetAnalyzer analyzer) {
final StringBuilder sql = new StringBuilder(
"select * from (select min(id) as ID, statementType, rawSql, count(1) as exec_count, " //
+ "sum(executionDuration... |
2023409_9 | @Override
public void getStatementsGroupByFilledSQL(final LogSearchCriteria searchCriteria,
final ResultSetAnalyzer analyzer) {
final StringBuilder sql = new StringBuilder(
"select * from (select min(id) as ID, statementType, rawSql, filledSql, count(1) as exec_count, " //
+ ... |
2036666_0 | public static int findFreePort() throws IOException {
ServerSocket server = new ServerSocket(0);
int port = server.getLocalPort();
server.close();
return port;
} |
2036666_1 | protected String createLocalDbName() {
StringBuilder builder = new StringBuilder();
builder.append(src_db);
builder.append("-");
String cleanHost = src_host.replaceAll("\\.", "_").toLowerCase();
builder.append(cleanHost);
if (src_port > 0 && src_port != 80) {
builder.append("-").append(s... |
2036666_2 | protected String createLocalDbName() {
StringBuilder builder = new StringBuilder();
builder.append(src_db);
builder.append("-");
String cleanHost = src_host.replaceAll("\\.", "_").toLowerCase();
builder.append(cleanHost);
if (src_port > 0 && src_port != 80) {
builder.append("-").append(s... |
2036666_3 | protected String createLocalDbName() {
StringBuilder builder = new StringBuilder();
builder.append(src_db);
builder.append("-");
String cleanHost = src_host.replaceAll("\\.", "_").toLowerCase();
builder.append(cleanHost);
if (src_port > 0 && src_port != 80) {
builder.append("-").append(s... |
2036666_4 | public String getSrcReplicationUrl(boolean includeUserDetails) {
String protocol = "http";
StringBuilder builder = new StringBuilder(protocol);
builder.append("://");
if (includeUserDetails) {
if (src_username != null && !src_username.equals("")) {
builder.append(src_username);
... |
2036666_5 | protected List<String> findPluginNamess(JsonNode design){
List<String> plugins = new ArrayList<String>();
try {
for (JsonNode plugin : design.get("advanced").get("plugins")) {
plugins.add(plugin.getTextValue());
}
} catch (Exception e) {}
try {
// legacy
Strin... |
2036666_6 | protected List<String> findPluginNamess(JsonNode design){
List<String> plugins = new ArrayList<String>();
try {
for (JsonNode plugin : design.get("advanced").get("plugins")) {
plugins.add(plugin.getTextValue());
}
} catch (Exception e) {}
try {
// legacy
Strin... |
2036666_7 | protected List<String> findPluginNamess(JsonNode design){
List<String> plugins = new ArrayList<String>();
try {
for (JsonNode plugin : design.get("advanced").get("plugins")) {
plugins.add(plugin.getTextValue());
}
} catch (Exception e) {}
try {
// legacy
Strin... |
2036666_8 | protected List<String> findPluginNamess(JsonNode design){
List<String> plugins = new ArrayList<String>();
try {
for (JsonNode plugin : design.get("advanced").get("plugins")) {
plugins.add(plugin.getTextValue());
}
} catch (Exception e) {}
try {
// legacy
Strin... |
2036666_9 | protected List<Class> convertPluginNamesToClasses(List<String> names) {
List<Class> plugins = new ArrayList<Class>();
for (String appClass : names) {
try {
Class clazz = ClassUtils.getClass(appClass);
plugins.add(clazz);
} catch (Exception ex) {
Logger.getLogg... |
2037955_0 | @Override
public Object deserialize(Writable w) throws SerDeException {
Text rowText = (Text) w;
deserializedDataSize = rowText.getBytes().length;
// Try parsing row into JSON object
Object jObj = null;
try {
String txt = rowText.toString().trim();
if(txt.startsWith("{"... |
2037955_1 | @Override
public Class<? extends Writable> getSerializedClass() {
return Text.class;
} |
2037955_2 | @Override
public Writable serialize(Object obj, ObjectInspector objInspector) throws SerDeException {
// make sure it is a struct record
if (objInspector.getCategory() != Category.STRUCT) {
throw new SerDeException(getClass().toString()
+ " can only serialize struct types, but we... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.