翻译
文章平均质量分 93
翻译
顧棟
coding and writing and 承接需求
展开
-
Apache Lucene 7.0 - 索引文件格式
Lucene7.0索引文件格式原创 2023-10-12 20:26:59 · 1288 阅读 · 0 评论 -
JMX官网教程的翻译
java的JMX翻译 2023-10-09 20:11:34 · 158 阅读 · 0 评论 -
本地缓存Guava Cache工具的介绍
本地缓存Guava Cache工具的介绍原创 2023-06-29 20:41:25 · 339 阅读 · 0 评论 -
【ES实战】路由字段(_routing field)
_routing field使用以下公式将文档路由到索引中的特定分片:shard_num = hash(_routing) % num_primary_shards_routing 使用的默认值是文档的 _id 或文档的 _parent ID(如果存在)。7.14版本开始使用以下公式:routing_factor = num_routing_shards / num_primary_shardsshard_num = (hash(_routing) % num_routing_shards)翻译 2021-11-29 14:49:41 · 1532 阅读 · 0 评论 -
【ES实战】Search的滚动查询(Scroll)
滚动查询(Scroll)虽然搜索请求返回结果是单个“页面”,但scroll API 可用于从单个搜索请求中检索大量结果(甚至所有结果),其方式与在传统数据库使用相似。scrolling不是用于实时用户请求,而是用于处理大量数据,例如:为了将一个索引的内容重新索引到具有不同配置的新索引中。为了使用滚动,初始搜索请求应该在查询字符串中指定scroll参数,它告诉 Elasticsearch 它应该保持“搜索上下文”多长时间(请参阅保持搜索上下文活着),例如?scroll=1m。POST /twitter翻译 2021-11-26 17:48:26 · 9229 阅读 · 0 评论 -
Spark 独立部署模式
Spark Standalone Modehttp://spark.apache.org/docs/latest/spark-standalone.html文章目录Spark Standalone ModeSecurityInstalling Spark Standalone to a ClusterStarting a Cluster ManuallyCluster Launch ScriptsResource Allocation and Configuration OverviewConnec翻译 2021-09-14 19:55:26 · 217 阅读 · 0 评论 -
Spark 提交应用
文章目录Submitting ApplicationsBundling Your Application’s DependenciesLaunching Applications with spark-submitMaster URLsLoading Configuration from a FileAdvanced Dependency ManagementMore InformationSubmitting Applicationshttp://spark.apache.org/docs/late翻译 2021-09-14 19:54:33 · 199 阅读 · 0 评论 -
Spark 集群部署模式概述
文章目录Cluster Mode OverviewComponentsCluster Manager TypesSubmitting ApplicationsMonitoringJob SchedulingGlossaryCluster Mode Overviewhttp://spark.apache.org/docs/latest/cluster-overview.html本文档简要概述了 Spark 如何在集群上运行,以便更容易地理解所涉及的组件。 通读 应用程序提交指南 以了解如何在集群上启翻译 2021-09-14 19:53:24 · 404 阅读 · 0 评论 -
【Scala学习】测试类
文章目录SBT AND SCALATESTTHE MOST USED SCALA BUILD TOOL (SBT)The sbt directory structureCreating a “Hello, world” sbt project directory structureCreating a first *build.sbt* fileA “Hello, world” programUSING SCALATEST WITH SBTCreating the project directory str翻译 2021-08-17 15:15:29 · 779 阅读 · 0 评论 -
【Scala学习】函数式编程续 case类
文章目录CASE CLASSESWith `apply` you don’t need `new`No mutator methodsAn `unapply` method`copy` method`equals` and `hashCode` methods`toString` methodsThe biggest advantageCASE OBJECTSCase objectsCreating enumerations with case objectsUsing case objects as me翻译 2021-08-17 15:14:18 · 239 阅读 · 0 评论 -
【Scala学习】之函数式风格编程
FUNCTIONAL PROGRAMMINGhttps://docs.scala-lang.org/overviews/scala-book/functional-programming.htmlScala 允许您以面向对象编程 (OOP) 风格、函数式编程 (FP) 风格甚至混合风格编写代码,结合使用这两种方法。本书假设您是从 Java、C++ 或 C# 等 OOP 语言来到 Scala 的,因此除了涵盖 Scala 类之外,本书中没有任何关于 OOP 的特殊部分。但是由于 FP 风格对于许多开发翻译 2021-08-17 15:12:29 · 303 阅读 · 0 评论 -
【Scala学习】之Tuples和OOP 示例
文章目录A FEW MISCELLANEOUS ITEMSTUPLESA few more tuple detailsReturning a tuple from a methodTuples aren’t collectionsAN OOP EXAMPLEA few classesAdding behavior to PizzaAdding behavior to OrderTesting those classesExperiment with the code yourselfA FEW MISCE翻译 2021-08-06 17:49:19 · 195 阅读 · 0 评论 -
【Scala学习】之SCALA 集合类
文章目录SCALA COLLECTIONSThe main Scala collections classesTHE ARRAYBUFFER CLASSMore ways to work with `ArrayBuffer`THE LIST CLASSCreating ListsAdding elements to a ListHow to remember the method namesHow to loop over listsA little bit of historyTHE VECTOR CLA翻译 2021-08-06 17:42:38 · 269 阅读 · 0 评论 -
【Scala学习】之TRAITS和抽象类
文章目录SCALA TRAITS AND ABSTRACT CLASSESUsing Scala Traits as InterfacesA simple exampleExtending a traitExtending multiple traitsUSING SCALA TRAITS LIKE ABSTRACT CLASSESA first exampleOverriding an implemented methodMixing in multiple traits that have behavi翻译 2021-08-06 17:41:10 · 272 阅读 · 0 评论 -
【Scala学习】之Scala中的类
文章目录SCALA CLASSESBasic class constructor`val` makes fields read-onlyClass constructorsOther Scala class examplesAUXILIARY CLASS CONSTRUCTORSNotesSUPPLYING DEFAULT VALUES FOR CONSTRUCTOR PARAMETERSBenefitsBonus: Named parametersA FIRST LOOK AT SCALA METHODS翻译 2021-08-06 17:39:00 · 282 阅读 · 0 评论 -
OpenTSDB 聚合
文章目录AggregationAggregationInterpolationDownsamplingAvailable AggregatorsAvgCountDevEstimated PercentilesFirst & LastMaxMimMinMimMaxMinNonePercentilesSumZimSumListing AggregatorsAggregation原文地址:http://opentsdb.net/docs/build/html/user_guide/query/agg翻译 2021-08-04 20:31:32 · 975 阅读 · 0 评论 -
OpenTSDB 查询过滤器
文章目录Query FiltersGroupingOpenTSDB 1.x - 2.1ExamplesOpenTSDB 2.2Explicit TagsExamplesBuilt-in 2.x Filtersliteral_oriliteral_ornot_literal_ornot_iliteral_orwildcardiwildcardregexpLoaded FiltersPluginsQuery Filters原文地址:http://opentsdb.net/docs/build/html/u翻译 2021-08-04 20:26:53 · 820 阅读 · 2 评论 -
OpenTSDB 向下采样说明
文章目录DownsamplingCalendar BoundariesFill PoliciesDownsampling原文地址:http://opentsdb.net/docs/build/html/user_guide/query/downsampling.html向下采样(或在信号处理中,抽取)是降低数据采样率或分辨率的过程。 例如,假设温度传感器每秒向 OpenTSDB 系统发送数据。 如果用户在一个小时的时间内查询数据,他们将收到 3,600 个数据点,这些数据可以很容易地绘制成图表。翻译 2021-08-04 20:24:54 · 525 阅读 · 0 评论 -
OpenTSDB HTTP API之/api/query
文章目录/api/queryQuery API EndpointsVerbsRequestsSub QueriesRate OptionsDownsamplingFiltersFilter ConversionsPercentilesMetric Query String FormatTSUID Query String FormatExample Query String RequestsExample Content RequestResponseExample Aggregated Default R翻译 2021-08-03 19:19:43 · 857 阅读 · 0 评论 -
OpenTSDB HTTP API 概述
文章目录HTTP APIOverviewVersion 1.X to 2.xSerializersAuthentication/PermissionsResponse CodesErrorsExample Error ResultVerbsAPI VersioningQuery String Vs. Body ContentCompressed RequestsCORSDocumentationDeprecated APIAPI EndpointsHTTP API原文地址 :http://opents翻译 2021-08-03 19:17:59 · 697 阅读 · 0 评论 -
OpenTSDB 日期时间说明
文章目录Dates and TimesRelativeAbsolute Unix TimeAbsolute Formatted TimeTime ZonesDates and Times原文地址:http://opentsdb.net/docs/build/html/user_guide/query/dates.htmlOpenTSDB 在查询数据时支持多种日期和时间格式。 通过 GUI、CliQuery 工具或 HTTP API 提交的查询支持以下格式。 每个查询都需要一个开始时间和一个可选的结翻译 2021-08-03 19:16:35 · 326 阅读 · 0 评论 -
OpenTSDB 指标和时间序列说明
文章目录Understanding Metrics and Time SeriesYour first datapointsYour first plotAggregatorsDownsamplingTag FiltersAdding More MetricsGetting FancyGuidelines When to Create MetricsTags vs. MetricsCounters and RatesTags are your FriendPrecisions on Metrics and翻译 2021-08-03 19:12:46 · 362 阅读 · 0 评论 -
OpenTSDB 查询数据
文章目录Querying or Reading DataQuery ComponentsTimesFiltersAggregationDownsamplingRateOrder of OperationsQuerying or Reading Data原文地址 http://opentsdb.net/docs/build/html/user_guide/query/index.htmlOpenTSDB 提供了多种提取、操作和分析数据的方法。 可以通过 CLI 工具、HTTP API 查询数据并查看翻译 2021-08-03 19:07:01 · 1907 阅读 · 0 评论 -
【Scala学习】之Scala快速入门
Scala 简单介绍快速入门翻译 2021-08-01 21:37:19 · 322 阅读 · 0 评论 -
Spark SQL 教程翻译(四)与Hive的兼容性
文章目录Compatibility with Apache HiveDeploying in Existing Hive WarehousesSupported Hive FeaturesUnsupported Hive FunctionalityIncompatible Hive UDFCompatibility with Apache HiveSpark SQL 旨在与 Hive Metastore、SerDes 和 UDF 兼容。 目前 Hive SerDes 和 UDF 基于 Hive 1.2.翻译 2021-07-24 15:10:52 · 908 阅读 · 0 评论 -
Spark SQL 教程翻译(三) Data Sources
文章目录Data SourcesGeneric Load/Save FunctionsManually Specifying OptionsRun SQL on files directlySave ModesSaving to Persistent TablesBucketing, Sorting and PartitioningParquet FilesLoading Data ProgrammaticallyPartition DiscoverySchema MergingHive metastore翻译 2021-07-24 14:56:49 · 650 阅读 · 0 评论 -
Spark SQL 教程翻译(二)快速开始
Getting StartedStarting Point: SparkSessionSpark 中所有功能的入口点是 SparkSession 类。 要创建一个基本的 SparkSession,只需使用 SparkSession.builder():import org.apache.spark.sql.SparkSessionval spark = SparkSession .builder() .appName("Spark SQL basic example") .config翻译 2021-07-24 14:22:04 · 245 阅读 · 0 评论 -
Spark SQL 教程翻译(一)Datasets and DataFrames 概述
Spark SQL, DataFrames and Datasets Guide原文地址 https://spark.apache.org/docs/2.3.3/sql-programming-guide.html#spark-sql-dataframes-and-datasets-guide概述Spark SQL 是一个用于结构化数据处理的 Spark 模块。 与基本的 Spark RDD API 不同,Spark SQL 提供的接口为 Spark 提供了有关数据结构和正在执行的计算的更多信息。翻译 2021-07-24 14:19:44 · 166 阅读 · 0 评论 -
Apache Avro简介,java实现官网翻译
文章目录Apache Avro™IntroductionSchemasComparison with other systemsJAVA简单使用Defining a schemaSerializing and deserializing with code generationCompiling the schemaCreating UsersSerializingDeserializingCompiling and running the example codeBeta feature: Generat翻译 2021-07-15 23:43:26 · 408 阅读 · 0 评论 -
kafka消息压缩官方说明翻译
文章目录kafka消息压缩官方说明CompressionDesignOffset management on the consumerBackwards compatibilityConfiguration changesCompression codecs supportedkafka消息压缩官方说明原文地址:https://cwiki.apache.org/confluence/display/KAFKA/CompressionCompression该特性引入了 Kafka 中端到端的块压缩翻译 2021-07-15 16:27:01 · 294 阅读 · 0 评论 -
Kafka Connect官网说明
文章目录Kafka ConnectOverview运行Kafka Connect配置 ConnectorsTransformationsREST APIKafka Connect原文地址:http://kafka.apache.org/11/documentation.html#connectOverviewKafka Connect 是一种用于在 Apache Kafka 和其他系统之间可扩展且可靠地流式传输数据的工具。 它使快速定义将大量数据移入和移出 Kafka 的连接器变得简单。 Kafka翻译 2021-07-15 16:26:05 · 933 阅读 · 0 评论