conversation listlengths 2 2 |
|---|
[
{
"content": "Gets the block with transactions.\n\n@param blockNumber\nthe block number\n@return the block with transactions",
"role": "user"
},
{
"content": "public Block getBlockWithTransactions(BigInteger blockNumber)\n {\n return EtherObjectConverterUtil.convertEtherBlockToKunderaBlock... |
[
{
"content": "Ignore scan.\n\n@param intf\nthe intf\n\n@return true, if successful",
"role": "user"
},
{
"content": "private boolean ignoreScan(String intf)\r\n {\r\n for (String ignored : ignoredPackages)\r\n {\r\n if (intf.startsWith(ignored + \".\"))\r\n {\r... |
[
{
"content": "Gets the query implementation.\n\n@param jpaQuery\nthe jpa query\n@param persistenceDelegator\nthe persistence delegator\n@param persistenceUnits\nthe persistence units\n@return the query implementation",
"role": "user"
},
{
"content": "public Query getQueryImplementation(String jpaQue... |
[
{
"content": "Adds the column family to table.\n\n@param tableName\nthe table name\n@param columnFamilyName\nthe column family name\n@throws IOException\nSignals that an I/O exception has occurred.",
"role": "user"
},
{
"content": "private void addColumnFamilyToTable(String tableName, String columnF... |
[
{
"content": "Sets the h base data into object.\n\n@param colData\nthe col data\n@param columnFamilyField\nthe column family field\n@param columnNameToFieldMap\nthe column name to field map\n@param columnFamilyObj\nthe column family obj\n@throws PropertyAccessException\nthe property access exception",
"role... |
[
{
"content": "Configure client properties.\n\n@param puMetadata\nthe pu metadata",
"role": "user"
},
{
"content": "private void configureClientProperties(PersistenceUnitMetadata puMetadata)\n {\n SparkSchemaMetadata metadata = SparkPropertyReader.ssmd;\n ClientProperties cp = metada... |
[
{
"content": "Sets the columns.\n\n@param columns\nthe new columns",
"role": "user"
},
{
"content": "public void setColumns(List<Cell> columns)\r\n {\r\n for (Cell column : columns)\r\n {\r\n putColumn(CellUtil.cloneFamily(column), CellUtil.cloneQualifier(column), CellUti... |
[
{
"content": "Put column.\n\n@param family\nthe family\n@param qualifier\nthe qualifier\n@param qualifierValue\nthe qualifier value",
"role": "user"
},
{
"content": "private void putColumn(byte[] family, byte[] qualifier, byte[] qualifierValue)\r\n {\r\n this.columns.put(Bytes.toString(fam... |
[
{
"content": "On build node.\n\n@param entity\nentity\n@param pc\npersistence cache\n@param entityId\nentity id\n@return added node.",
"role": "user"
},
{
"content": "public final Node buildNode(Object entity, PersistenceDelegator pd, Object entityId, NodeState nodeState)\n {\n String node... |
[
{
"content": "Returns relation builder instance.\n\n@param target\nrelational entity\n@param relation\nrelation\n@param source\nrelation originator entity\n@return relation builder instance.",
"role": "user"
},
{
"content": "RelationBuilder getRelationBuilder(Object target, Relation relation, Node s... |
[
{
"content": "Find data.\n\n@param <E>\nthe element type\n@param m\nthe m\n@param rowKey\nthe row key\n@param startRow\nthe start row\n@param endRow\nthe end row\n@param columnsToOutput\nthe columns to output\n@param filters\nthe filters\n@return the list",
"role": "user"
},
{
"content": "public <E>... |
[
{
"content": "Gets the filter list.\n\n@param filters\nthe filters\n@return the filter list",
"role": "user"
},
{
"content": "private FilterList getFilterList(Filter filters)\n {\n FilterList filterList = null;\n if (filters != null)\n {\n if (FilterList.class.isAs... |
[
{
"content": "Adds the to relation stack.\n\n@param relationStack\nthe relation stack\n@param entity\nthe entity\n@param m\nthe m",
"role": "user"
},
{
"content": "protected void addToRelationStack(Map<Object, Object> relationStack, Object entity, EntityMetadata m)\n {\n Object obj = entit... |
[
{
"content": "Populate using lucene for embeddeId.\n\n@param m\nthe m\n@param client\nthe client\n@param result\nthe result\n@param searchFilter\nthe search filter\n@param metaModel\nthe meta model\n@return the list",
"role": "user"
},
{
"content": "private List<Object> populateEmbeddedIdUsingLucene... |
[
{
"content": "Prepare composite id object.\n\n@param attribute\nthe attribute\n@param compositeId\nthe composite id\n@param uniquePKs\nthe unique p ks\n@param metaModel\nthe meta model\n@return the object",
"role": "user"
},
{
"content": "private Object prepareCompositeIdObject(final SingularAttribu... |
[
{
"content": "find data using lucene.\n\n@param m\nthe m\n@param client\nthe client\n@param primaryKeys\nthe primary keys\n@return the list",
"role": "user"
},
{
"content": "private List<Object> findUsingLucene(EntityMetadata m, Client client, Object[] primaryKeys)\n {\n\n String idField =... |
[
{
"content": "Populate using lucene.\n\n@param m\nthe m\n@param client\nthe client\n@param result\nthe result\n@param columnsToSelect\nList of column names to be selected (rest should be ignored)\n@return the list",
"role": "user"
},
{
"content": "protected List<Object> populateUsingLucene(EntityMet... |
[
{
"content": "Populate using elastic search.\n\n@param client\nthe client\n@param EntityMetadata\nthe m\n@return Result list by fetching from ES",
"role": "user"
},
{
"content": "private List populateUsingElasticSearch(Client client, EntityMetadata m)\n {\n Map<String, Object> searchFilter... |
[
{
"content": "Populate group by response.\n\n@param aggregations\nthe aggregations\n@param resultOrderIterable\nthe result order iterable\n@param results\nthe results\n@param client\nthe client\n@param m\nthe m",
"role": "user"
},
{
"content": "private void populateGroupByResponse(Map<String, Object... |
[
{
"content": "Gets the entity field value.\n\n@param entityMetadata\nthe entity metadata\n@param entity\nthe entity\n@param field\nthe field\n@return the entity field value",
"role": "user"
},
{
"content": "private Object getEntityFieldValue(EntityMetadata entityMetadata, Object entity, String field... |
[
{
"content": "On update delete event.\n\n@return the int",
"role": "user"
},
{
"content": "protected int onUpdateDeleteEvent()\n {\n if (kunderaQuery.isDeleteUpdate())\n {\n List result = fetch();\n\n onDeleteOrUpdate(result);\n return result != null... |
[
{
"content": "Performs delete or update based on query.\n\n@param results\nlist of objects to be merged/deleted.",
"role": "user"
},
{
"content": "protected void onDeleteOrUpdate(List results)\n {\n\n if (results != null)\n {\n if (!kunderaQuery.isUpdateClause())\n ... |
[
{
"content": "Returns specific parameter instance for given name.\n\n@param name\nparameter name.\n@return parameter",
"role": "user"
},
{
"content": "private Parameter getParameterByName(String name)\n {\n if (getParameters() != null)\n {\n for (Parameter p : parameters)... |
[
{
"content": "Returns parameter by ordinal.\n\n@param position\nposition\n@return parameter instance.",
"role": "user"
},
{
"content": "private Parameter getParameterByOrdinal(Integer position)\n {\n for (Parameter p : parameters)\n {\n if (position.equals(p.getPosition()... |
[
{
"content": "Returns parameter value.\n\n@param paramString\nparameter as string.\n\n@return value of parameter.",
"role": "user"
},
{
"content": "private List<Object> onParameterValue(String paramString)\n {\n List<Object> value = kunderaQuery.getClauseValue(paramString);\n if (va... |
[
{
"content": "Handle post event callbacks.",
"role": "user"
},
{
"content": "protected void handlePostEvent()\n {\n EntityMetadata metadata = getEntityMetadata();\n if (!kunderaQuery.isDeleteUpdate())\n {\n persistenceDelegeator.getEventDispatcher().fireEventListen... |
[
{
"content": "Returns collection of fetched entities.\n\n@return the list",
"role": "user"
},
{
"content": "protected List fetch()\n {\n EntityMetadata metadata = getEntityMetadata();\n Client client = persistenceDelegeator.getClient(metadata);\n List results = isRelational(m... |
[
{
"content": "On validate single result.\n\n@param results\nthe results",
"role": "user"
},
{
"content": "protected void onValidateSingleResult(List results)\n {\n if (results == null || results.isEmpty())\n {\n log.error(\"No result found for {} \", kunderaQuery.getJPAQu... |
[
{
"content": "If returned collection of object holds a reference to.\n\n@param results\nthe results",
"role": "user"
},
{
"content": "private void assignReferenceToProxy(List results)\n {\n if (results != null)\n {\n for (Object obj : results)\n {\n ... |
[
{
"content": "Populate persistence unit properties.\n\n@param reader\nthe reader\n@return the map",
"role": "user"
},
{
"content": "public static Map<String, String> populatePersistenceUnitProperties(PropertyReader reader)\n {\n\n String dbType = reader.getProperty(EthConstants.DATABASE_TY... |
[
{
"content": "Property null check.\n\n@param dbType\nthe db type\n@param host\nthe host\n@param port\nthe port\n@param dbName\nthe db name",
"role": "user"
},
{
"content": "private static void propertyNullCheck(String dbType, String host, String port, String dbName)\n {\n\n if (dbType == n... |
[
{
"content": "Gets the kundera client to lookup class.\n\n@param client\nthe client\n@return the kundera client to lookup class",
"role": "user"
},
{
"content": "private static String getKunderaClientToLookupClass(String client)\n {\n\n Datasource datasource;\n try\n {\n ... |
[
{
"content": "Sets an object onto a field.\n\n@param target\nthe target\n@param field\nthe field\n@param value\nthe value\n\n@throws PropertyAccessException\nthe property access exception",
"role": "user"
},
{
"content": "public static void set(Object target, Field field, Object value)\r\n {\r\n ... |
[
{
"content": "Gets object from field.\n\n@param from\nthe from\n@param field\nthe field\n\n@return the object\n\n@throws PropertyAccessException\nthe property access exception",
"role": "user"
},
{
"content": "public static Object getObject(Object from, Field field)\r\n {\r\n if (!field.is... |
[
{
"content": "Retutrns copy of object\n\n@param from\n@param field\n@return",
"role": "user"
},
{
"content": "public static Object getObjectCopy(Object from, Field field)\r\n {\r\n if (!field.isAccessible())\r\n {\r\n field.setAccessible(true);\r\n }\r\n try... |
[
{
"content": "Gets field value as byte-array.\n\n@param from\nthe from\n@param field\nthe field\n\n@return the byte[]\n\n@throws PropertyAccessException\nthe property access exception",
"role": "user"
},
{
"content": "public static byte[] get(Object from, Field field)\r\n {\r\n PropertyAcc... |
[
{
"content": "Gets the embedded object.\n\n@param obj\nthe obj\n@param fieldName\nthe field name\n@return the embedded object\n@throws PropertyAccessException\nthe property access exception",
"role": "user"
},
{
"content": "@SuppressWarnings(\"null\")\r\n // TODO: Too much code, improve this, pos... |
[
{
"content": "Gets the declared fields.\n\n@param relationalField\nthe relational field\n@return the declared fields",
"role": "user"
},
{
"content": "public static Field[] getDeclaredFields(Field relationalField)\r\n {\r\n Field[] fields;\r\n if (isCollection(relationalField.getTyp... |
[
{
"content": "Borrowed from java.lang.class\n\n@param o\n@return",
"role": "user"
},
{
"content": "private static Class<?> toClass(Type o)\r\n {\r\n if (o instanceof GenericArrayType)\r\n {\r\n Class clazz = Array.newInstance(toClass(((GenericArrayType) o).getGenericCompo... |
[
{
"content": "Gets the typed class.\n\n@param type\nthe type\n@return the typed class",
"role": "user"
},
{
"content": "private static Class<?> getTypedClass(java.lang.reflect.Type type)\r\n {\r\n if (type instanceof Class)\r\n {\r\n return ((Class) type);\r\n }\r\... |
[
{
"content": "Removes an object from Index.\n\n@param metadata\nthe metadata\n@param entity\nthe entity\n@param key\nthe key",
"role": "user"
},
{
"content": "public final void remove(EntityMetadata metadata, Object entity, Object key)\n {\n if (indexer != null)\n {\n if ... |
[
{
"content": "Indexes an object.\n\n@param metadata\nthe metadata\n@param entity\nthe entity",
"role": "user"
},
{
"content": "public final void write(EntityMetadata metadata, Object entity)\n {\n if (indexer != null)\n {\n MetamodelImpl metamodel = (MetamodelImpl) kunder... |
[
{
"content": "Compare two Collections that must be same length and in same order.\n\n@param dualKey\nDualKey represents the two Collections to compare\n@param visited\nCollection of objects already compared (prevents cycles)\n@param stack\nadd items to compare to the Stack (Stack versus recursion)\n@return bool... |
[
{
"content": "Deeply compare the two sets referenced by dualKey. This method attempts\nto quickly determine inequality by length, then hash, and finally does a\ndeepEquals on each element if the two Sets passed by the prior tests.\n\n@param col1\nCollection one\n@param col2\nCollection two\n@param visited\nSet ... |
[
{
"content": "Find in cache.\n\n@param <T>\nthe generic type\n@param entityClass\nthe entity class\n@param id\nthe id\n@return the t",
"role": "user"
},
{
"content": "@SuppressWarnings(\"unchecked\")\r\n protected <T> T lookup(Class<T> entityClass, Object id)\r\n {\r\n String key = cach... |
[
{
"content": "Store in L1 only.\n\n@param id\nthe id\n@param entity\nthe entity",
"role": "user"
},
{
"content": "protected void store(Object id, Object entity)\r\n {\r\n store(id, entity, Boolean.TRUE);\r\n }",
"role": "assistant"
}
] |
[
{
"content": "Save to cache.\n\n@param id\nthe id\n@param entity\nthe entity\n@param spillOverToL2\nthe spill over to l2",
"role": "user"
},
{
"content": "protected void store(Object id, Object entity, boolean spillOverToL2)\r\n {\r\n String key = cacheKey(entity.getClass(), id);\r\n ... |
[
{
"content": "Removes the from cache.\n\n@param <T>\nthe generic type\n@param entityClass\nthe entity class\n@param id\nthe id\n@param spillOverToL2\nthe spill over to l2",
"role": "user"
},
{
"content": "protected <T> void remove(Class<T> entityClass, Object id, boolean spillOverToL2)\r\n {\r\n ... |
[
{
"content": "Method to handle\n\n@param node",
"role": "user"
},
{
"content": "public void persist(Node node)\n {\n Object entity = node.getData();\n Object id = node.getEntityId();\n EntityMetadata metadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, node.ge... |
[
{
"content": "Builds the entity from cursor.\n\n@param entity\nthe entity\n@param obj\nthe obj\n@param entityType\nthe entity type\n@return the object",
"role": "user"
},
{
"content": "private void buildEntityFromCursor(Object entity, HashMap obj, EntityType entityType)\n {\n Iterator<Attr... |
[
{
"content": "Builds the function.\n\n@param colName\nthe col name\n@param obj\nthe obj\n@param identifier\nthe identifier\n@return the reql function1",
"role": "user"
},
{
"content": "public static ReqlFunction1 buildFunction(final String colName, final Object obj, final String identifier)\n {\n... |
[
{
"content": "Check if zero\n@param value value string\n@param valueClazz value class\n@return",
"role": "user"
},
{
"content": "public static final boolean checkIfZero(String value, Class valueClazz)\n {\n boolean returnValue=false;\n if(value != null && NumberUtils.isNumb... |
[
{
"content": "Creates a MongoDB document object wrt a given Java object. columns in the\ndocument correspond Columns provided as List.\n\n@param obj\nthe obj\n@param columns\nthe columns\n@return the document from object\n@throws PropertyAccessException\nthe property access exception",
"role": "user"
},
... |
[
{
"content": "Creates a MongoDB document list from a given java collection. columns in\nthe document correspond Columns provided as List.\n\n@param coll\nthe coll\n@param columns\nthe columns\n@return the document list from collection\n@throws PropertyAccessException\nthe property access exception",
"role":... |
[
{
"content": "Extract entity field.\n\n@param entity\nthe entity\n@param dbObj\nthe db obj\n@param column\nthe column\n@throws PropertyAccessException\nthe property access exception",
"role": "user"
},
{
"content": "static void extractFieldValue(Object entity, DBObject dbObj, Attribute column) throw... |
[
{
"content": "Iterate and populate json object.\n\n@param entity\nthe entity\n@param iterator\nthe iterator\n@return the json object",
"role": "user"
},
{
"content": "private JsonObject iterateAndPopulateJsonObject(Object entity, Iterator<Attribute> iterator, String tableName)\n {\n JsonOb... |
[
{
"content": "Checks for interface \"has\" in class \"in\".\n\n@param has\nthe has\n@param in\nthe in\n\n@return true, if exists?",
"role": "user"
},
{
"content": "public static boolean hasInterface(Class<?> has, Class<?> in)\r\n {\r\n if (has.equals(in))\r\n {\r\n return... |
[
{
"content": "Gets the type arguments.\n\n@param property\nthe property\n\n@return the type arguments",
"role": "user"
},
{
"content": "public static Type[] getTypeArguments(Field property)\r\n {\r\n Type type = property.getGenericType();\r\n if (type instanceof ParameterizedType)\r... |
[
{
"content": "Checks for super \"has\" in class \"in\".\n\n@param has\nthe has\n@param in\nthe in\n\n@return true, if exists?",
"role": "user"
},
{
"content": "public static boolean hasSuperClass(Class<?> has, Class<?> in)\r\n {\r\n if (in.equals(has))\r\n {\r\n return tr... |
[
{
"content": "Loads class with className using classLoader.\n\n@param className\nthe class name\n@param classLoader\nthe class loader\n@return the class",
"role": "user"
},
{
"content": "public static Class<?> classForName(String className, ClassLoader classLoader)\r\n {\r\n try\r\n ... |
[
{
"content": "Strip enhancer class.\n\n@param c\nthe c\n@return the class",
"role": "user"
},
{
"content": "public static Class<?> stripEnhancerClass(Class<?> c)\r\n {\r\n String className = c.getName();\r\n\r\n // strip CGLIB from name\r\n int enhancedIndex = className.index... |
[
{
"content": "Saves LOB file to Oracle KV Store\n\n@param key\n@param lobFile",
"role": "user"
},
{
"content": "public void saveLOBFile(Key key, File lobFile)\n {\n try\n {\n FileInputStream fis = new FileInputStream(lobFile);\n Version version = kvStore.putLOB... |
[
{
"content": "Gets the element collection cache.\n\n@return the elementCollectionCache",
"role": "user"
},
{
"content": "public Map<Object, Map<Object, String>> getElementCollectionCache()\r\n {\r\n if (this.elementCollectionCache == null)\r\n {\r\n this.elementCollection... |
[
{
"content": "Adds the element collection cache mapping.\n\n@param rowKey\nthe row key\n@param elementCollectionObject\nthe element collection object\n@param elementCollObjectName\nthe element coll object name",
"role": "user"
},
{
"content": "public void addElementCollectionCacheMapping(Object rowK... |
[
{
"content": "Gets the element collection object name.\n\n@param rowKey\nthe row key\n@param elementCollectionObject\nthe element collection object\n@return the element collection object name",
"role": "user"
},
{
"content": "public String getElementCollectionObjectName(Object rowKey, Object element... |
[
{
"content": "Gets the last element collection object count.\n\n@param rowKey\nthe row key\n@return the last element collection object count",
"role": "user"
},
{
"content": "public int getLastElementCollectionObjectCount(Object rowKey)\r\n {\r\n if (getElementCollectionCache().get(rowKey)... |
[
{
"content": "Finds a list of files matching the given query.\n\n@param query\nthe filter to apply\n@param sort\nthe fields to sort with\n@param firstResult\nnumber of files to skip\n@param maxResult\nnumber of files to return\n@return list of gridfs files",
"role": "user"
},
{
"content": "public Li... |
[
{
"content": "Gets the client factory.\n\n@param persistenceUnit\nthe persistence unit\n@return the client factory",
"role": "user"
},
{
"content": "public static ClientFactory getClientFactory(String persistenceUnit, Map<String, Object> puProperties,final KunderaMetadata kunderaMetadata)\r\n {\r... |
[
{
"content": "Creates new instance of client factory for given persistence unit.\n\n@param persistenceUnit\n@param puProperties\n@param clientFactory\n@return new instance of clientFactory",
"role": "user"
},
{
"content": "private static ClientFactory instantiateClientFactory(String persistenceUnit,... |
[
{
"content": "Checks whether the given table is a capped collection",
"role": "user"
},
{
"content": "protected boolean isCappedCollection(TableInfo tableInfo)\n {\n return MongoDBPropertyReader.msmd != null ? MongoDBPropertyReader.msmd.isCappedCollection(databaseName,\n tab... |
[
{
"content": "Checks constraints present on embeddable attributes\n\n@param embeddedObject\n@param embeddedColumn\n@param embeddedFieldName",
"role": "user"
},
{
"content": "private void onValidateEmbeddable(Object embeddedObject, EmbeddableType embeddedColumn)\n {\n if (embeddedObject ins... |
[
{
"content": "Gets the data client.\n\n@param clientName\nthe client name\n@return the data client",
"role": "user"
},
{
"content": "public static SparkDataClient getDataClient(String clientName)\n {\n\n if (clientPool.get(clientName) != null)\n {\n return clientPool.get(... |
[
{
"content": "Checks whether the given attribute's value is within specified limit\n\n@param validationObject\n@param annotate\n@return",
"role": "user"
},
{
"content": "private boolean validateSize(Object validationObject, Annotation annotate)\n {\n\n if (checkNullObject(validationObject)... |
[
{
"content": "Checks whether the given string is a valid pattern or not\n\n@param validationObject\n@param annotate\n@return",
"role": "user"
},
{
"content": "private boolean validatePattern(Object validationObject, Annotation annotate)\n {\n if (checkNullObject(validationObject))\n ... |
[
{
"content": "Checks whether the object is null or not\n\n@param validationObject\n@param annotate\n@return",
"role": "user"
},
{
"content": "private boolean validatePast(Object validationObject, Annotation annotate)\n {\n if (checkNullObject(validationObject))\n {\n retu... |
[
{
"content": "Checks whether a given date is that in future or not\n\n@param validationObject\n@param annotate\n@return",
"role": "user"
},
{
"content": "private boolean validateFuture(Object validationObject, Annotation annotate)\n {\n if (checkNullObject(validationObject))\n {\n ... |
[
{
"content": "Checks whether a given date is that in past or not\n\n@param validationObject\n@param annotate\n@return",
"role": "user"
},
{
"content": "private boolean validateNull(Object validationObject, Annotation annotate)\n {\n if (checkNullObject(validationObject))\n {\n ... |
[
{
"content": "Checks whether a given value is greater than given min value or not\n\n@param validationObject\n@param annotate\n@return",
"role": "user"
},
{
"content": "private boolean validateMinValue(Object validationObject, Annotation annotate)\n {\n if (checkNullObject(validationObject... |
[
{
"content": "Checks whether a given value is lesser than given max value or not\n\n@param validationObject\n@param annotate\n@return",
"role": "user"
},
{
"content": "private boolean validateMaxValue(Object validationObject, Annotation annotate)\n {\n if (checkNullObject(validationObject)... |
[
{
"content": "Checks whether a given value is is a number or not\n\n@param validationObject\n@param annotate\n@return",
"role": "user"
},
{
"content": "private boolean validateDigits(Object validationObject, Annotation annotate)\n {\n if (checkNullObject(validationObject))\n {\n ... |
[
{
"content": "Checks whether a given value is a valid minimum decimal digit when compared to given value\nor not\n\n@param validationObject\n@param annotate\n@return",
"role": "user"
},
{
"content": "private boolean validateMinDecimal(Object validationObject, Annotation annotate)\n {\n\n i... |
[
{
"content": "Checks whether a given value is a valid maximum decimal digit when compared to given value\nor not\n\n@param validationObject\n@param annotate\n@return",
"role": "user"
},
{
"content": "private boolean validateMaxDecimal(Object validationObject, Annotation annotate)\n {\n if ... |
[
{
"content": "Get Date from given below formats.\n\n@param date\nDate pattern\n@return date instance\n@throws PropertyAccessException\nthrows only if invalid format is supplied.",
"role": "user"
},
{
"content": "public static Date getDateByPattern(String date)\r\n {\r\n if (StringUtils.isN... |
[
{
"content": "Just to verify with supported types of date pattern. Get Date from given\nbelow formats\n\n@param date\nDate pattern\n@return date instance\n@throws PropertyAccessException\nthrows only if invalid format is supplied.",
"role": "user"
},
{
"content": "public static String getFormattedOb... |
[
{
"content": "Gets the relations.\n\n@return the relations",
"role": "user"
},
{
"content": "public Map<String, Object> getRelations()\n {\n return relations != null ? Collections.unmodifiableMap(relations) : null;\n }",
"role": "assistant"
}
] |
[
{
"content": "Resolve failover policy for Cassandra thrift.\n\n@param failoverOption\n@return",
"role": "user"
},
{
"content": "private HostFailoverPolicy getFailoverPolicy(String failoverOption)\n {\n if (failoverOption != null)\n {\n if (Constants.FAIL_FAST.equals(failo... |
[
{
"content": "Generate pool name.\n\n@param persistenceUnit\nthe persistence unit\n@param puProperties\n@return the string",
"role": "user"
},
{
"content": "public static String generatePoolName(String node, int port, String keyspace)\r\n {\r\n return node + \":\" + port + \":\" + keyspace... |
[
{
"content": "If userName and password provided, Method prepares for\nAuthenticationRequest.\n\n@param props\nproperties\n\n@return simple authenticator request. returns null if userName/password\nare not provided.",
"role": "user"
},
{
"content": "public static SimpleConnectionAuthenticator getAuth... |
[
{
"content": "Builds the result map.\n\n@param esResponseReader\nthe es response reader\n@param response\nthe response\n@param query\nthe query\n@param m\nthe m\n@param metaModel\nthe meta model\n@return the map",
"role": "user"
},
{
"content": "private Map<String, Object> buildResultMap(SearchRespo... |
[
{
"content": "Gets the search response.\n\n@param kunderaQuery\nthe kundera query\n@param queryBuilder\nthe query builder\n@param filter\nthe filter\n@param query\nthe query\n@param m\nthe m\n@param kunderaMetadata\n@return the search response",
"role": "user"
},
{
"content": "private SearchResponse... |
[
{
"content": "Persist blocks and transactions.\n\n@param block\nthe block",
"role": "user"
},
{
"content": "private void persistBlocksAndTransactions(EthBlock block)\n {\n Block blk = EtherObjectConverterUtil.convertEtherBlockToKunderaBlock(block, false);\n try\n {\n ... |
[
{
"content": "Persist transactions.\n\n@param tx\nthe transaction\n@param blockNumber\nthe block number",
"role": "user"
},
{
"content": "private void persistTransactions(Transaction tx, String blockNumber)\n {\n\n LOGGER.debug(\"Going to save transactions for Block - \" + getBlockNumberWi... |
[
{
"content": "Gets the first block.\n\n@param includeTransactions\nthe include transactions\n@return the first block",
"role": "user"
},
{
"content": "public EthBlock getFirstBlock(boolean includeTransactions)\n {\n try\n {\n return web3j.ethGetBlockByNumber(DefaultBlockP... |
[
{
"content": "Gets the blocks.\n\n@param startBlockNumber\nthe start block number\n@param endBlockNumber\nthe end block number\n@return the blocks",
"role": "user"
},
{
"content": "public void saveBlocks(BigInteger startBlockNumber, BigInteger endBlockNumber)\n {\n\n if (endBlockNumber.com... |
[
{
"content": "Initialize web3j.\n\n@param reader\nthe reader",
"role": "user"
},
{
"content": "private void initializeWeb3j(PropertyReader reader)\n {\n\n String endPoint = reader.getProperty(EthConstants.ETHEREUM_NODE_ENDPOINT);\n\n if (endPoint == null || endPoint.isEmpty())\n ... |
[
{
"content": "Initialize kundera params.\n\n@param reader\nthe reader",
"role": "user"
},
{
"content": "private void initializeKunderaParams(PropertyReader reader)\n {\n Map<String, String> props = KunderaPropertyBuilder.populatePersistenceUnitProperties(reader);\n try\n {\n ... |
[
{
"content": "Gets the em.\n\n@param emf\nthe emf\n@param propertiesPath\nthe properties path\n@param clazzName\nthe clazz name\n@return the em",
"role": "user"
},
{
"content": "public static synchronized EntityManager getEM(EntityManagerFactory emf, final String propertiesPath,\n final S... |
[
{
"content": "Load client properties.\n\n@param propertiesPath\nthe properties path\n@param clazzName\nthe clazz name\n@param clientProperties\nthe client properties\n@param entityConfigurations\nthe entity configurations",
"role": "user"
},
{
"content": "private static void loadClientProperties(Str... |
[
{
"content": "Create Neo4J Embedded Graph DB instance, that acts as a Neo4J connection\nrepository for Neo4J If a Neo4j specfic client properties file is\nspecified in persistence.xml, it initializes DB instance with those\nproperties. Other DB instance is initialized with default properties.",
"role": "use... |
[
{
"content": "Make an instance managed and persistent.\n\n@param entity\n@throws EntityExistsException\nif the entity already exists. (If the entity already exists,\nthe EntityExistsException may be thrown when the persist\noperation is invoked, or the EntityExistsException or another\nPersistenceException may ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.