conversation
listlengths
2
2
[ { "content": "Scan class.\n\n@param bits\nthe bits\n\n@throws IOException\nSignals that an I/O exception has occurred.", "role": "user" }, { "content": "public void scanClass(InputStream bits) throws IOException\r\n {\r\n DataInputStream dstream = new DataInputStream(new BufferedInputStrea...
[ { "content": "Accumulate annotations.\n\n@param annotations\nthe annotations\n@param annatt\nthe annatt", "role": "user" }, { "content": "public void accumulateAnnotations(List<String> annotations, AnnotationsAttribute annatt)\r\n {\r\n if (null == annatt)\r\n {\r\n retur...
[ { "content": "Gets the resource iterator.\n\n@param url\nthe url\n@param filter\nthe filter\n\n@return the resource iterator\n\n@throws IOException\nSignals that an I/O exception has occurred.", "role": "user" }, { "content": "public ResourceIterator getResourceIterator(URL url, Filter filter)\r\n ...
[ { "content": "Retrieving connection from connection pool.\n\n@return returns jedis instance.", "role": "user" }, { "content": "Jedis getConnection()\n {\n if (logger.isDebugEnabled())\n logger.info(\"borrowing connection from pool\");\n Object poolOrConnection = getConnec...
[ { "content": "To long.\n\n@param data\nthe data\n@return the long", "role": "user" }, { "content": "private long toLong(byte[] data)\n {\n if (data == null || data.length != 8)\n return 0x0;\n // ----------\n return (long) (\n // (Below) convert to longs bef...
[ { "content": "From long.\n\n@param data\nthe data\n@return the byte[]", "role": "user" }, { "content": "private byte[] fromLong(long data)\n {\n return new byte[] { (byte) ((data >> 56) & 0xff), (byte) ((data >> 48) & 0xff), (byte) ((data >> 40) & 0xff),\n (byte) ((data >> 3...
[ { "content": "Sets the jar files.\n\n@param jarFiles\nthe new jar files", "role": "user" }, { "content": "public void addJarFile(String jarFile)\r\n {\r\n if (jarFiles == null)\r\n {\r\n jarFiles = new HashSet<String>();\r\n }\r\n this.jarFiles.add(jarFile);...
[ { "content": "Returns list of managed urls.\n\n@return", "role": "user" }, { "content": "public List<URL> getManagedURLs()\r\n {\r\n // should we cache it?\r\n List<URL> managedURL = getJarFileUrls();\r\n if (managedURL == null)\r\n {\r\n managedURL = new Ar...
[ { "content": "Adds jar file URL.\n\n@param jarFile\njar file path", "role": "user" }, { "content": "private void addJarFileUrl(String jarFile)\r\n {\r\n if (jarUrls == null)\r\n {\r\n jarUrls = new HashSet<URL>();\r\n }\r\n try\r\n {\r\n ja...
[ { "content": "Gets the client. In case client is not configure, it throws\nIllegalArgumentException.\n\n@return the client", "role": "user" }, { "content": "public String getClient()\r\n {\r\n String client = null;\r\n if (this.properties != null)\r\n {\r\n client ...
[ { "content": "Return batch.size value.\n\n@return integer value for batch size.", "role": "user" }, { "content": "public int getBatchSize()\r\n {\r\n if (isBatch())\r\n {\r\n String batchSize = getProperty(PersistenceProperties.KUNDERA_BATCH_SIZE);\r\n int batc...
[ { "content": "Prepare document.\n\n@param metadata\nthe metadata\n@param object\nthe object\n@param embeddedColumnName\nthe super column name\n@param parentId\nthe parent id\n@param clazz\nthe clazz\n@return the document", "role": "user" }, { "content": "protected Document prepareDocumentForSuperCol...
[ { "content": "Index parent key.\n\n@param parentId\nthe parent id\n@param currentDoc\nthe current doc\n@param clazz\nthe clazz", "role": "user" }, { "content": "protected void addParentKeyToDocument(String parentId, Document currentDoc, Class<?> clazz) {\n // if (parentId != null)\n if...
[ { "content": "Index super column.\n\n@param metadata\nthe metadata\n@param object\nthe object\n@param currentDoc\nthe current doc\n@param embeddedObject\nthe embedded object\n@param superColumn\nthe super column\n@param metamodel", "role": "user" }, { "content": "protected void createSuperColumnDocu...
[ { "content": "Index super column name.\n\n@param superColumnName\nthe super column name\n@param currentDoc\nthe current doc", "role": "user" }, { "content": "private void addSuperColumnNameToDocument(String superColumnName, Document currentDoc) {\n Field luceneField = new Field(SUPERCOLUMN_IN...
[ { "content": "Adds the index properties.\n\n@param metadata\nthe metadata\n@param entity\nthe object\n@param document\nthe document\n@param metaModel", "role": "user" }, { "content": "protected void addEntityFieldsToDocument(EntityMetadata metadata, Object entity, Document document,\n Metamod...
[ { "content": "Prepare index document.\n\n@param metadata\nthe metadata\n@param entity\nthe object\n@param document\nthe document", "role": "user" }, { "content": "protected void addEntityClassToDocument(EntityMetadata metadata, Object entity, Document document,\n final MetamodelImpl metaModel...
[ { "content": "Index field.\n\n@param object\nthe object\n@param document\nthe document\n@param field\nthe field\n@param colName\nthe col name\n@param indexName\nthe index name", "role": "user" }, { "content": "private void addFieldToDocument(Object object, Document document, java.lang.reflect.Field ...
[ { "content": "Gets the kundera id.\n\n@param metadata\nthe metadata\n@param id\nthe id\n\n@return the kundera id", "role": "user" }, { "content": "protected String getKunderaId(EntityMetadata metadata, Object id) {\n return metadata.getEntityClazz().getCanonicalName() + IndexingConstants.DELI...
[ { "content": "set time out", "role": "user" }, { "content": "private void setTimeOut(Object value)\n {\n if (value instanceof Integer)\n {\n this.oracleNoSQLClient.setTimeout((Integer) value);\n }\n else if (value instanceof String)\n {\n t...
[ { "content": "set time unit", "role": "user" }, { "content": "private void setTimeUnit(Object value)\n {\n if (value instanceof TimeUnit)\n {\n this.oracleNoSQLClient.setTimeUnit((TimeUnit) value);\n }\n else if (value instanceof String)\n {\n ...
[ { "content": "set batch size", "role": "user" }, { "content": "private void setBatchSize(Object value)\n {\n if (value instanceof Integer)\n {\n this.oracleNoSQLClient.setBatchSize((Integer) value);\n }\n else if (value instanceof String)\n {\n ...
[ { "content": "Populates foreign key as column.\n\n@param rlName\nrelation name\n@param rlValue\nrelation value\n@param timestamp\nthe timestamp\n@return the column\n@throws PropertyAccessException\nthe property access exception", "role": "user" }, { "content": "protected Column populateFkey(String r...
[ { "content": "Compute entity via columns.\n\n@param m\nthe m\n@param isRelation\nthe is relation\n@param relations\nthe relations\n@param entities\nthe entities\n@param qResults\nthe q results", "role": "user" }, { "content": "protected void computeEntityViaColumns(EntityMetadata m, boolean isRelati...
[ { "content": "Compute entity via super columns.\n\n@param m\nthe m\n@param isRelation\nthe is relation\n@param relations\nthe relations\n@param entities\nthe entities\n@param qResults\nthe q results", "role": "user" }, { "content": "protected void computeEntityViaSuperColumns(EntityMetadata m, boole...
[ { "content": "On super column.\n\n@param m\nthe m\n@param isRelation\nthe is relation\n@param relations\nthe relations\n@param entities\nthe entities\n@param superColumns\nthe super columns\n@param key\nthe key", "role": "user" }, { "content": "protected void onSuperColumn(EntityMetadata m, boolean ...
[ { "content": "Populate counter fkey.\n\n@param rlName\nthe rl name\n@param rlValue\nthe rl value\n@return the counter column", "role": "user" }, { "content": "private CounterColumn populateCounterFkey(String rlName, Object rlValue) {\n CounterColumn counterCol = new CounterColumn();\n ...
[ { "content": "Deletes record for given primary key from counter column family.\n\n@param pKey\nthe key\n@param tableName\nthe table name\n@param metadata\nthe metadata\n@param consistencyLevel\nthe consistency level", "role": "user" }, { "content": "protected void deleteRecordFromCounterColumnFamily...
[ { "content": "Creates secondary indexes on columns if not already created.\n\n@param m\nthe m\n@param tableName\nColumn family name\n@param columns\nList of columns\n@param columnType\nthe column type", "role": "user" }, { "content": "protected void createIndexesOnColumns(EntityMetadata m, String ta...
[ { "content": "Finds an entiry from database.\n\n@param entityClass\nthe entity class\n@param rowId\nthe row id\n@return the object", "role": "user" }, { "content": "public Object find(Class entityClass, Object rowId) {\n EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata...
[ { "content": "Returns true in case of, composite Id and if cql3 opted and not a embedded entity.\n\n@param metadata\nthe metadata\n@return true, if is cql3 enabled", "role": "user" }, { "content": "public boolean isCql3Enabled(EntityMetadata metadata) {\n if (metadata != null) {\n\n ...
[ { "content": "Executes Select CQL Query.\n\n@param clazz\nthe clazz\n@param relationalField\nthe relational field\n@param dataHandler\nthe data handler\n@param isNative\nthe is native\n@param cqlQuery\nthe cql query\n@return the list", "role": "user" }, { "content": "public List executeSelectQuery(C...
[ { "content": "Execute scalar query.\n\n@param cqlQuery\nthe cql query\n@return the list", "role": "user" }, { "content": "public List executeScalarQuery(String cqlQuery) {\n CqlResult cqlResult = null;\n List results = new ArrayList();\n try {\n if (log.isDebugEnabled...
[ { "content": "Compose column value.\n\n@param cqlMetadata\nthe cql metadata\n@param thriftColumnValue\nthe thrift column value\n@param thriftColumnName\nthe thrift column name\n@return the object", "role": "user" }, { "content": "private Object composeColumnValue(CqlMetadata cqlMetadata, byte[] thri...
[ { "content": "Populate entities from key slices.\n\n@param m\nthe m\n@param isWrapReq\nthe is wrap req\n@param relations\nthe relations\n@param keys\nthe keys\n@param dataHandler\nthe data handler\n@return the list\n@throws Exception\nthe exception", "role": "user" }, { "content": "protected List po...
[ { "content": "Return insert query string for given entity.\n\n@param entityMetadata\nthe entity metadata\n@param entity\nthe entity\n@param cassandra_client\nthe cassandra_client\n@param rlHolders\nthe rl holders\n@param ttlColumns\nTTL values for each columns\n@return the list", "role": "user" }, { ...
[ { "content": "On relation columns.\n\n@param columnNames\nthe column names\n@param columnValues\nthe column values\n@param columnNameBuilder\nthe column name builder\n@param columnValueBuilder\nthe column value builder\n@param rl\nthe rl\n@return To remove redundant columns in insert query", "role": "user" ...
[ { "content": "Gets the persist queries.\n\n@param entityMetadata\nthe entity metadata\n@param entity\nthe entity\n@param conn\nthe conn\n@param rlHolders\nthe rl holders\n@param ttlColumns\nthe ttl columns\n@return the persist queries", "role": "user" }, { "content": "protected List<String> getPersi...
[ { "content": "On delete query.\n\n@param metadata\nthe metadata\n@param tableName\nTODO\n@param metaModel\nthe meta model\n@param keyObject\nthe compound key object\n@return the string", "role": "user" }, { "content": "protected String onDeleteQuery(EntityMetadata metadata, String tableName, Metamod...
[ { "content": "On where clause.\n\n@param metadata\nthe metadata\n@param key\nthe compound key object\n@param translator\nthe translator\n@param queryBuilder\nthe query builder\n@param metaModel\nthe meta model\n@param attribute\nthe attribute", "role": "user" }, { "content": "protected void onWhereC...
[ { "content": "Returns raw cassandra client from thrift connection pool.\n\n@param schema\nschema or keyspace.\n@return raw cassandra client.", "role": "user" }, { "content": "public Cassandra.Client getRawClient(final String schema) {\n Cassandra.Client client = null;\n Object pooledCo...
[ { "content": "Executes query string using cql3.\n\n@param cqlQuery\nthe cql query\n@param isCql3Enabled\nthe is cql3 enabled\n@return the object", "role": "user" }, { "content": "protected Object executeCQLQuery(String cqlQuery, boolean isCql3Enabled) {\n Cassandra.Client conn = null;\n ...
[ { "content": "Populate cql version.\n\n@param externalProperties\nthe external properties", "role": "user" }, { "content": "private void populateCqlVersion(Map<String, Object> externalProperties) {\n String cqlVersion =\n externalProperties != null ? (String) externalProperties.get...
[ { "content": "Execute with bind parameters\n\n@param <T>\nthe generic type\n@param query\nthe query\n@param connection\nthe connection\n@return the t", "role": "user" }, { "content": "public <T> T execute(final String query, final Object connection,\n final List<KunderaQuery.BindParameter> pa...
[ { "content": "Persist join table by cql.\n\n@param joinTableData\nthe join table data\n@param conn\nthe conn", "role": "user" }, { "content": "protected void persistJoinTableByCql(JoinTableData joinTableData, Cassandra.Client conn) {\n String joinTableName = joinTableData.getJoinTableName();\...
[ { "content": "Find inverse join column values for join column.\n\n@param <E>\nthe element type\n@param schemaName\nthe schema name\n@param tableName\nthe table name\n@param pKeyColumnName\nthe key column name\n@param columnName\nthe column name\n@param pKeyColumnValue\nthe key column value\n@param columnJavaTyp...
[ { "content": "Find join column values for inverse join column.\n\n@param <E>\nthe element type\n@param schemaName\nthe schema name\n@param tableName\nthe table name\n@param pKeyName\nthe key name\n@param columnName\nthe column name\n@param columnValue\nthe column value\n@param entityClazz\nthe entity clazz\n@re...
[ { "content": "checks for a valid entity definition\n\n@param clazz\n@return", "role": "user" }, { "content": "private boolean checkValidClass(Class<?> clazz) {\n return clazz.isAnnotationPresent(Entity.class) || clazz.isAnnotationPresent(MappedSuperclass.class)\n || clazz.isAnnotat...
[ { "content": "Parses the response.\n\n@param response\nthe response\n@param aggregation\nthe aggregation\n@param fieldsToSelect\nthe fields to select\n@param metaModel\nthe meta model\n@param clazz\nthe clazz\n@param entityMetadata\nthe entity metadata\n@param query\nthe query\n@return the list", "role": "u...
[ { "content": "Parses the aggregated response.\n\n@param response\nthe response\n@param query\nthe query\n@param metaModel\nthe meta model\n@param clazz\nthe clazz\n@param entityMetadata\nthe entity metadata\n@return the list", "role": "user" }, { "content": "private List parseAggregatedResponse(Sear...
[ { "content": "On iterate buckets.\n\n@param buckets\nthe buckets\n@param query\nthe query\n@param metaModel\nthe meta model\n@param clazz\nthe clazz\n@param entityMetadata\nthe entity metadata\n@return the list", "role": "user" }, { "content": "private List onIterateBuckets(Terms buckets, KunderaQue...
[ { "content": "Parses the aggregations.\n\n@param response\nthe response\n@param query\nthe query\n@param metaModel\nthe meta model\n@param clazz\nthe clazz\n@param EntityMetadata\nthe m\n@return the map", "role": "user" }, { "content": "public Map<String, Object> parseAggregations(SearchResponse res...
[ { "content": "Builds the records.\n\n@param iterable\nthe iterable\n@param internalAgg\nthe internal agg\n@return the map", "role": "user" }, { "content": "private Map<String, Object> buildRecords(ListIterable<Expression> iterable, InternalAggregations internalAgg)\n {\n Map<String, Object...
[ { "content": "Parses the records.\n\n@param internalAgg\nthe internal agg\n@param topHits\nthe top hits\n@param query\nthe query\n@param metaModel\nthe meta model\n@param clazz\nthe clazz\n@param entityMetadata\nthe entity metadata\n@return the list", "role": "user" }, { "content": "private List bui...
[ { "content": "Filter buckets.\n\n@param buckets\nthe buckets\n@param query\nthe query\n@return the terms", "role": "user" }, { "content": "private Terms filterBuckets(Terms buckets, KunderaQuery query)\n {\n Expression havingClause = query.getSelectStatement().getHavingClause();\n\n ...
[ { "content": "Checks if is valid bucket.\n\n@param internalAgg\nthe internal agg\n@param query\nthe query\n@param conditionalExpression\nthe conditional expression\n@return true, if is valid bucket", "role": "user" }, { "content": "private boolean isValidBucket(InternalAggregations internalAgg, Kund...
[ { "content": "Gets the first result.\n\n@param query\nthe query\n@param field\nthe field\n@param hits\nthe hits\n@param clazz\nthe clazz\n@param metaModel\nthe meta model\n@param entityMetadata\nthe entity metadata\n@return the first", "role": "user" }, { "content": "private Object getFirstResult(Ku...
[ { "content": "Gets the aggregated result.\n\n@param internalAggs\nthe internal aggs\n@param identifier\nthe identifier\n@param exp\nthe exp\n@return the aggregated result", "role": "user" }, { "content": "private Object getAggregatedResult(InternalAggregations internalAggs, String identifier, Expres...
[ { "content": "Wrap find result.\n\n@param searchResults\nthe search results\n@param entityType\nthe entity type\n@param result\nthe result\n@param metadata\nthe metadata\n@param b\nthe b\n@return the object", "role": "user" }, { "content": "public Object wrapFindResult(Map<String, Object> searchResu...
[ { "content": "On enum.\n\n@param attribute\nthe attribute\n@param fieldValue\nthe field value\n@return the object", "role": "user" }, { "content": "private Object onEnum(Attribute attribute, Object fieldValue)\n {\n if (((Field) attribute.getJavaMember()).getType().isEnum())\n {\n ...
[ { "content": "On id.\n\n@param key\nthe key\n@param attribute\nthe attribute\n@param fieldValue\nthe field value\n@return the object", "role": "user" }, { "content": "private Object onId(Object key, Attribute attribute, Object fieldValue)\n {\n if (SingularAttribute.class.isAssignableFrom(...
[ { "content": "Gets the select expression order.\n\n@param query\nthe query\n@return the select expression order", "role": "user" }, { "content": "public ListIterable<Expression> getSelectExpressionOrder(KunderaQuery query)\n {\n if (!KunderaQueryUtils.isSelectStatement(query.getJpqlExpress...
[ { "content": "Gets the entity objects.\n\n@param clazz\nthe clazz\n@param entityMetadata\nthe entity metadata\n@param entityType\nthe entity type\n@param hits\nthe hits\n@return the entity objects", "role": "user" }, { "content": "private List getEntityObjects(Class clazz, final EntityMetadata entit...
[ { "content": "Returns true, if attribute belongs plural hierarchy.\n\n@param attribute\nthe attribute\n@return true, if attribute belongs plural hierarchy. else false.", "role": "user" }, { "content": "private boolean isPluralAttribute(Field attribute)\n {\n return attribute.getType().equa...
[ { "content": "Gets the persistent attribute type.\n\n@param member\nthe member\n@return the persistent attribute type", "role": "user" }, { "content": "static PersistentAttributeType getPersistentAttributeType(Field member)\n {\n PersistentAttributeType attributeType = PersistentAttributeT...
[ { "content": "Builds the managed type.\n\n@param <X>\nthe generic type\n@param clazz\nthe clazz\n@return the abstract managed type", "role": "user" }, { "content": "private <X> AbstractManagedType<X> buildManagedType(Class<X> clazz, boolean isIdClass)\n {\n AbstractManagedType<X> managedTy...
[ { "content": "Gets the super type.\n\n@param clazz\nthe clazz\n@return the super type", "role": "user" }, { "content": "private AbstractManagedType getType(Class clazz, boolean isIdClass)\n {\n if (clazz != null && !clazz.equals(Object.class))\n {\n return processInternal...
[ { "content": "On declared fields.\n\n@param <X>\nthe generic type\n@param clazz\nthe clazz\n@param managedType\nthe managed type", "role": "user" }, { "content": "private <X> void onDeclaredFields(Class<X> clazz, AbstractManagedType<X> managedType)\n {\n Field[] embeddedFields = clazz.getD...
[ { "content": "Adds the predicates to scanner builder.\n\n@param scannerBuilder\nthe scanner builder\n@param embeddable\nthe embeddable\n@param fields\nthe fields\n@param metaModel\nthe meta model\n@param key\nthe key", "role": "user" }, { "content": "private void addPredicatesToScannerBuilder(KuduSc...
[ { "content": "Populate embedded column.\n\n@param entity\nthe entity\n@param result\nthe result\n@param embeddable\nthe embeddable\n@param metaModel\nthe meta model", "role": "user" }, { "content": "private void populateEmbeddedColumn(Object entity, RowResult result, EmbeddableType embeddable,\n ...
[ { "content": "Delete by column.\n\n@param schemaName\nthe schema name\n@param tableName\nthe table name\n@param columnName\nthe column name\n@param columnValue\nthe column value", "role": "user" }, { "content": "@Override\n public void deleteByColumn(String schemaName, String tableName, String co...
[ { "content": "Populate partial row.\n\n@param row\nthe row\n@param entityMetadata\nthe entity metadata\n@param entity\nthe entity", "role": "user" }, { "content": "private void populatePartialRow(PartialRow row, EntityMetadata entityMetadata, Object entity)\n {\n MetamodelImpl metaModel = ...
[ { "content": "Populate partial row for embedded column.\n\n@param row\nthe row\n@param embeddable\nthe embeddable\n@param EmbEntity\nthe emb entity\n@param metaModel\nthe meta model", "role": "user" }, { "content": "private void populatePartialRowForEmbeddedColumn(PartialRow row, EmbeddableType embe...
[ { "content": "Iterate and populate row.\n\n@param row\nthe row\n@param entity\nthe entity\n@param metaModel\nthe meta model\n@param iterator\nthe iterator", "role": "user" }, { "content": "private void iterateAndPopulateRow(PartialRow row, Object entity, MetamodelImpl metaModel,\n Iterato...
[ { "content": "Adds the primary key to row.\n\n@param row\nthe row\n@param embeddable\nthe embeddable\n@param fields\nthe fields\n@param metaModel\nthe meta model\n@param key\nthe key", "role": "user" }, { "content": "private void addPrimaryKeyToRow(PartialRow row, EmbeddableType embeddable, Field[] ...
[ { "content": "Find object based on primary key either form persistence cache or from\ndatabase\n\n@param entityClass\n@param primaryKey\n@return", "role": "user" }, { "content": "public <E> E findById(final Class<E> entityClass, final Object primaryKey)\n {\n E e = find(entityClass, primar...
[ { "content": "Removes an entity object from persistence cache.", "role": "user" }, { "content": "public void remove(Object e)\n {\n // Invoke Pre Remove Events\n\n // TODO Check for validity also as per JPA\n if (e == null)\n {\n throw new IllegalArgumentExc...
[ { "content": "Remove the given entity from the persistence context, causing a managed\nentity to become detached.", "role": "user" }, { "content": "public void detach(Object entity)\n {\n Node node = getPersistenceCache().getMainCache().getNodeFromCache(entity, getMetadata(entity.getClass(...
[ { "content": "Check if the instance is a managed entity instance belonging to the\ncurrent persistence context.", "role": "user" }, { "content": "boolean contains(Object entity)\n {\n Node node = getPersistenceCache().getMainCache().getNodeFromCache(entity, getMetadata(entity.getClass()), ...
[ { "content": "Refresh the state of the instance from the database, overwriting changes\nmade to the entity, if any.", "role": "user" }, { "content": "public void refresh(Object entity)\n {\n if (contains(entity))\n {\n MainCache mainCache = (MainCache) getPersistenceCache...
[ { "content": "Populates client specific properties.\n\n@param properties\nmap of properties.", "role": "user" }, { "content": "void populateClientProperties(Map properties)\n {\n if (properties != null && !properties.isEmpty())\n {\n Map<String, Client> clientMap = getDel...
[ { "content": "Pre load client specific to persistence unit.\n\n@param persistenceUnit\npersistence unit.\n@param client", "role": "user" }, { "content": "void loadClient(String persistenceUnit, Client client)\n {\n if (!clientMap.containsKey(persistenceUnit) && client != null)\n {\n...
[ { "content": "Executes batch.", "role": "user" }, { "content": "private void execute()\n {\n for (Client client : clientMap.values())\n {\n if (client != null && client instanceof Batcher)\n {\n // if no batch operation performed{may be running i...
[ { "content": "On flushing join table data", "role": "user" }, { "content": "private void flushJoinTableData()\n {\n if (applyFlush())\n {\n for (JoinTableData jtData : flushManager.getJoinTableData())\n {\n if (!jtData.isProcessed())\n ...
[ { "content": "Returns transaction coordinator.\n\n@return", "role": "user" }, { "content": "Coordinator getCoordinator()\n {\n coordinator = new Coordinator();\n try\n {\n for (String pu : clientMap.keySet())\n {\n PersistenceUnitMetadata ...
[ { "content": "Load client metadata.\n\n@param puProperties", "role": "user" }, { "content": "protected void loadClientMetadata(Map<String, Object> puProperties)\r\n {\r\n clientMetadata = new ClientMetadata();\r\n String luceneDirectoryPath = puProperties != null ? (String) puProper...
[ { "content": "Gets the client instance.\n\n@return the client instance", "role": "user" }, { "content": "@Override\r\n public Client getClientInstance()\r\n {\r\n // if threadsafe recycle the same single instance; if not create a new\r\n // instance\r\n\r\n if (isThreadSaf...
[ { "content": "On find key only.\n\n@param filterList\nthe filter list\n@param isFindKeyOnly\nthe is find key only\n@return the filter list", "role": "user" }, { "content": "private FilterList onFindKeyOnly(FilterList filterList, boolean isFindKeyOnly)\n {\n if (isFindKeyOnly)\n {\n ...
[ { "content": "Gets the ext property filters.\n\n@param m\nthe m\n@param filterList\nthe filter list\n@return the ext property filters", "role": "user" }, { "content": "private FilterList getExtPropertyFilters(EntityMetadata m, FilterList filterList)\n {\n Filter filter = getFilter(m.getTab...
[ { "content": "Creates the hbase row.\n\n@param m\nthe m\n@param entity\nthe entity\n@param rowId\nthe row id\n@param relations\nthe relations\n@return the hBase row\n@throws IOException\nSignals that an I/O exception has occurred.", "role": "user" }, { "content": "public HBaseRow createHbaseRow(Enti...
[ { "content": "Gets the relation cell.\n\n@param m\nthe m\n@param rowId\nthe row id\n@param relations\nthe relations\n@return the relation cell\n@throws IOException\nSignals that an I/O exception has occurred.", "role": "user" }, { "content": "private List<HBaseCell> getRelationCell(EntityMetadata m,...
[ { "content": "Write hbase row in a table.\n\n@param tableName\nthe table name\n@param hbaseRow\nthe hbase row\n@throws IOException\nSignals that an I/O exception has occurred.", "role": "user" }, { "content": "private void writeHbaseRowInATable(String tableName, HBaseRow hbaseRow) throws IOException...
[ { "content": "Creates the cells and add to row.\n\n@param entity\nthe entity\n@param metaModel\nthe meta model\n@param attributes\nthe attributes\n@param hbaseRow\nthe hbase row\n@param m\nthe m\n@param count\nthe count\n@param prefix\nthe prefix", "role": "user" }, { "content": "private void create...
[ { "content": "Gets the h table.\n\n@param tableName\nthe table name\n@return the h table\n@throws IOException\nSignals that an I/O exception has occurred.", "role": "user" }, { "content": "public Table gethTable(final String tableName) throws IOException\n {\n return connection.getTable(Ta...
[ { "content": "Populate entity from hBase data.\n\n@param entity\nthe entity\n@param hbaseData\nthe hbase data\n@param m\nthe m\n@param rowKey\nthe row key\n@return the object", "role": "user" }, { "content": "private Object populateEntityFromHBaseData(Object entity, HBaseDataWrapper hbaseData, Entit...
[ { "content": "Write values to entity.\n\n@param entity\nthe entity\n@param hbaseData\nthe hbase data\n@param m\nthe m\n@param metaModel\nthe meta model\n@param attributes\nthe attributes\n@param relationNames\nthe relation names\n@param relations\nthe relations\n@param count\nthe count\n@param prefix\nthe prefi...
[ { "content": "Process embeddable.\n\n@param entity\nthe entity\n@param hbaseData\nthe hbase data\n@param m\nthe m\n@param metaModel\nthe meta model\n@param count\nthe count\n@param prefix\nthe prefix\n@param attribute\nthe attribute\n@param javaType\nthe java type", "role": "user" }, { "content": "p...
[ { "content": "Sets the filter.\n\n@param filter\nthe new filter", "role": "user" }, { "content": "public void setFilter(Filter filter)\n {\n if (this.filter == null)\n {\n this.filter = new FilterList();\n }\n if (filter != null)\n {\n this...
[ { "content": "On read.\n\n@param m\nthe m\n@param columnsToOutput\nthe columns to output\n@param hTable\nthe h table\n@param results\nthe results\n@return the list\n@throws IOException\nSignals that an I/O exception has occurred.", "role": "user" }, { "content": "private List onRead(EntityMetadata m...
[ { "content": "Return entity object list.\n\n@param m\nthe m\n@param results\nthe results\n@param outputResults\nthe output results\n@return the list", "role": "user" }, { "content": "private List returnEntityObjectList(EntityMetadata m, List<HBaseDataWrapper> results, List outputResults)\n {\n ...